Skip to content

Commit 147b588

Browse files
committed
salsa20: fix more merge conflicts
1 parent 78a86e5 commit 147b588

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

salsa20/src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,6 @@ impl<R: Unsigned> KeyIvInit for SalsaCore<R, U16> {
205205

206206
state[15] = CONSTANTS_16[3];
207207

208-
cfg_if! {
209-
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
210-
state = [
211-
state[0], state[5], state[10], state[15],
212-
state[4], state[9], state[14], state[3],
213-
state[8], state[13], state[2], state[7],
214-
state[12], state[1], state[6], state[11],
215-
];
216-
}
217-
}
218-
219208
Self {
220209
state,
221210
rounds: PhantomData,

salsa20/tests/ecrypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ fn salsa20_ecrypt16() {
5151
let mut buf = [0u8; 64];
5252
c.apply_keystream(&mut buf);
5353

54-
assert_eq!(buf, expected);
54+
assert_eq!(buf, tv.expected);
5555
}
5656
}

0 commit comments

Comments
 (0)