Skip to content

Commit 2dbf8a4

Browse files
committed
fmt
1 parent f620805 commit 2dbf8a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

salsa20/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ pub type XNonce = Array<u8, U24>;
128128
/// Number of 32-bit words in the Salsa20 state
129129
const STATE_WORDS: usize = 16;
130130

131-
/// State initialization constant for 32-byte keys ("expand 32-byte k")
132-
const CONSTANTS_32: [u32; 4] = [0x6170_7865, 0x3320_646e, 0x7962_2d32, 0x6b20_6574];
133-
134131
/// State initialization constant for 16-byte keys ("expand 16-byte k")
135132
const CONSTANTS_16: [u32; 4] = [0x6170_7865, 0x3120_646e, 0x7962_2d36, 0x6b20_6574];
136133

134+
/// State initialization constant for 32-byte keys ("expand 32-byte k")
135+
const CONSTANTS_32: [u32; 4] = [0x6170_7865, 0x3320_646e, 0x7962_2d32, 0x6b20_6574];
136+
137137
/// The Salsa20 core function.
138138
pub struct SalsaCore<R: Unsigned, KeySize = U32> {
139139
/// Internal state of the core function

salsa20/tests/ecrypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ fn salsa20_ecrypt16() {
4747

4848
assert_eq!(buf, expected);
4949
}
50-
}
50+
}

0 commit comments

Comments
 (0)