Skip to content

Commit

Permalink
remove commented test code
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthz committed Jan 16, 2022
1 parent 4d3c498 commit 0ebd24c
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions src/chacha/sse2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,48 +191,3 @@ impl<const ROUNDS: usize> State<ROUNDS> {
}
}
}

mod test {
/*
use super::super::reference;
use super::*;
fn assert_state_equivalent(doing: &'static str, refere: &reference::State, sse: &State) {
let mut output1 = [0u8; 64];
let mut output2 = [0u8; 64];
sse.output_bytes(&mut output1);
refere.output_bytes(&mut output2);
assert_eq!(&output1[0..], &output2[0..], "doing: {}", doing);
}
#[test]
pub fn test_same_ref() {
let key = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
let nonce = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
let st_initial = State::init(&key, &nonce);
let r_initial = reference::State::init(&key, &nonce);
let mut st = st_initial.clone();
let mut r = r_initial.clone();
assert_state_equivalent("init", &r, &st);
st.round20();
r.round20();
assert_state_equivalent("round", &r, &st);
st.add_back(&st_initial);
r.add_back(&r_initial);
assert_state_equivalent("add_back", &r, &st);
st.increment();
r.increment();
assert_state_equivalent("increment", &r, &st);
}
*/
}

0 comments on commit 0ebd24c

Please sign in to comment.