File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,12 +126,12 @@ pub type XNonce = Array<u8, U24>;
126126/// Number of 32-bit words in the Salsa20 state
127127const STATE_WORDS : usize = 16 ;
128128
129- /// State initialization constant for 32-byte keys ("expand 32-byte k")
130- const CONSTANTS_32 : [ u32 ; 4 ] = [ 0x6170_7865 , 0x3320_646e , 0x7962_2d32 , 0x6b20_6574 ] ;
131-
132129/// State initialization constant for 16-byte keys ("expand 16-byte k")
133130const CONSTANTS_16 : [ u32 ; 4 ] = [ 0x6170_7865 , 0x3120_646e , 0x7962_2d36 , 0x6b20_6574 ] ;
134131
132+ /// State initialization constant for 32-byte keys ("expand 32-byte k")
133+ const CONSTANTS_32 : [ u32 ; 4 ] = [ 0x6170_7865 , 0x3320_646e , 0x7962_2d32 , 0x6b20_6574 ] ;
134+
135135/// The Salsa20 core function.
136136pub struct SalsaCore < R : Unsigned , KeySize = U32 > {
137137 /// Internal state of the core function
You can’t perform that action at this time.
0 commit comments