Debian Codegraph @

debian/rust-vendor/sha3/tests/mod.rs

raw
1 use digest::dev::fixed_reset_test;
2 use digest::new_test;
3
4 new_test!(sha3_224_kat, sha3::Sha3_224, fixed_reset_test);
5 new_test!(sha3_256_kat, sha3::Sha3_256, fixed_reset_test);
6 new_test!(sha3_384_kat, sha3::Sha3_384, fixed_reset_test);
7 new_test!(sha3_512_kat, sha3::Sha3_512, fixed_reset_test);
8
9 // Test vectors from https://github.com/kazcw/yellowsun/blob/test-keccak/src/lib.rs#L171
10 new_test!(keccak_224_kat, sha3::Keccak224, fixed_reset_test);
11 new_test!(keccak_256_kat, sha3::Keccak256, fixed_reset_test);
12 new_test!(keccak_384_kat, sha3::Keccak384, fixed_reset_test);
13 new_test!(keccak_512_kat, sha3::Keccak512, fixed_reset_test);
14
15 new_test!(keccak_256_full_kat, sha3::Keccak256Full, fixed_reset_test);