Skip to content

Commit

Permalink
Fuzz: Update Poly1305 with new poly1305::init return type
Browse files Browse the repository at this point in the history
  • Loading branch information
brycx committed Nov 23, 2018
1 parent 4616489 commit 54592ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/poly1305.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fuzz_target!(|data: &[u8]| {
let (key, message) = poly1305_setup(data);
// Test both stream and one-shot
let orion_key = OneTimeKey::from_slice(&key).unwrap();
let mut poly1305_state = init(&orion_key).unwrap();
let mut poly1305_state = init(&orion_key);
poly1305_state.update(&message).unwrap();
let orion_stream_tag = poly1305_state.finalize().unwrap();
let orion_oneshot_tag = poly1305(&orion_key, &message).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/poly1305_compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fuzz_target!(|data: &[u8]| {
let (key, message) = poly1305_setup(data);
let orion_key = OneTimeKey::from_slice(&key).unwrap();

let mut poly1305_state = init(&orion_key).unwrap();
let mut poly1305_state = init(&orion_key);
poly1305_state.update(&message).unwrap();
let orion_stream_tag = poly1305_state.finalize().unwrap();

Expand Down

0 comments on commit 54592ec

Please sign in to comment.