Skip to content

Commit

Permalink
fix compilation issues with cargo bench (RustCrypto#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
froydnj authored and newpavlov committed Sep 20, 2019
1 parent 8dc3507 commit cf53e81
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion md5/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use test::Bencher;
#[bench]
fn bench_compress(b: &mut Bencher) {
let mut state = Default::default();
let data = Default::default();
let data = [0u8; 64];

b.iter(|| {
md5_asm::compress(&mut state, &data);
Expand Down
2 changes: 1 addition & 1 deletion sha1/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use test::Bencher;
#[bench]
fn bench_compress(b: &mut Bencher) {
let mut state = Default::default();
let data = Default::default();
let data = [0u8; 64];

b.iter(|| {
sha1_asm::compress(&mut state, &data);
Expand Down
4 changes: 2 additions & 2 deletions sha2/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use test::Bencher;
#[bench]
fn bench_compress256(b: &mut Bencher) {
let mut state = Default::default();
let data = Default::default();
let data = [0u8; 64];

b.iter(|| {
sha2_asm::compress256(&mut state, &data);
Expand All @@ -20,7 +20,7 @@ fn bench_compress256(b: &mut Bencher) {
#[bench]
fn bench_compress512(b: &mut Bencher) {
let mut state = Default::default();
let data = Default::default();
let data = [0u8; 128];

b.iter(|| {
sha2_asm::compress512(&mut state, &data);
Expand Down
4 changes: 2 additions & 2 deletions whirlpool/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use test::Bencher;

#[bench]
fn bench_compress(b: &mut Bencher) {
let mut state = Default::default();
let data = Default::default();
let mut state = [0u8; 64];
let data = [0u8; 64];

b.iter(|| {
whirlpool_asm::compress(&mut state, &data);
Expand Down

0 comments on commit cf53e81

Please sign in to comment.