macro_rules! test {
($mod_name:ident, $test_name:expr, $hash:ty $(, $t:ident)?) => {
mod $mod_name {
}
};
}
test!(md5_rfc2104, "md5", md5::Md5);
test!(sha224_rfc4231, "sha224", sha2::Sha224);
test!(sha256_rfc4231, "sha256", sha2::Sha256);
test!(sha384_rfc4231, "sha384", sha2::Sha384);
test!(sha512_rfc4231, "sha512", sha2::Sha512);
test!(treebog256, "streebog256", streebog::Streebog256);
test!(streebog512, "streebog512", streebog::Streebog512);
test!(sha1_wycheproof, "wycheproof-sha1", sha1::Sha1, trunc_left);
test!(
sha256_wycheproof,
"wycheproof-sha256",
sha2::Sha256,
trunc_left
);
test!(
sha384_wycheproof,
"wycheproof-sha384",
sha2::Sha384,
trunc_left
);
test!(
sha512_wycheproof,
"wycheproof-sha512",
sha2::Sha512,
trunc_left
);