/// Chunks the data into 256-byte slices.
Chunks the data into 256-byte slices.
Chunks the data into 256 - byte slices .
fn bench_stream(c: &mut Criterion) {
    let mut rng = rand::thread_rng();
    let data: Vec<u8> = (0..1024).map(|_| rng.gen()).collect();
    group_stream!(c,
        "sha1" => Sha1, &data
        "sha2_256" => Sha2_256, &data
        "sha2_512" => Sha2_512, &data
        "sha3_224" => Sha3_224, &data
        "sha3_256" => Sha3_256, &data
        "sha3_384" => Sha3_384, &data
        "sha3_512" => Sha3_512, &data
        "keccak_224" => Keccak224, &data
        "keccak_256" => Keccak256, &data
        "keccak_384" => Keccak384, &data
        "keccak_512" => Keccak512, &data
        "blake2b_256" => Blake2b256, &data
        "blake2b_512" => Blake2b512, &data
        "blake2s_128" => Blake2s128, &data
        "blake2s_256" => Blake2s256, &data
        "blake3_256" => Blake3_256, &data
        "strobe_256" => Strobe256, &data
        "strobe_512" => Strobe512, &data
    );
}
fn bench_stream ( c : & mut Criterion ) { let mut rng = rand :: thread_rng ( ) ; let data : Vec < u8 > = ( 0 .. 1024 ) . map ( | _ | rng . gen ( ) ) . collect ( ) ; group_stream ! ( c " " Sha1 data " " Sha2_256 data " " Sha2_512 data " " Sha3_224 data " " Sha3_256 data " " Sha3_384 data " " Sha3_512 data " " Keccak224 data " " Keccak256 data " " Keccak384 data " " Keccak512 data " " Blake2b256 data " " Blake2b512 data " " Blake2s128 data " " Blake2s256 data " " Blake3_256 data " " Strobe256 data " " Strobe512 data ) ; }
Chunks the data into 256-byte slices.
Chunks the data into 256 - byte slices .
c
&mut Criterion