mod algorithm;
use algorithm::define_hash_algorithm;
pub type Word = u32;
pub type MessageLen = u64;
pub const N_DIGEST_WORDS: usize = 4; pub const N_CHUNK_BYTES: usize = 64; pub const N_ROUNDS: usize = 64;
pub const INITIAL_DIGEST: [Word; N_DIGEST_WORDS] = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476];
define_hash_algorithm!();
crate::test_macros::define_hash_tests!(
[
[
0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04, 0xe9, 0x80, 0x09, 0x98, 0xec, 0xf8,
0x42, 0x7e
],
[
0x90, 0x01, 0x50, 0x98, 0x3c, 0xd2, 0x4f, 0xb0, 0xd6, 0x96, 0x3f, 0x7d, 0x28, 0xe1,
0x7f, 0x72
],
[
0x82, 0x15, 0xef, 0x07, 0x96, 0xa2, 0x0b, 0xca, 0xaa, 0xe1, 0x16, 0xd3, 0x87, 0x6c,
0x66, 0x4a
],
[
0x03, 0xdd, 0x88, 0x07, 0xa9, 0x31, 0x75, 0xfb, 0x06, 0x2d, 0xfb, 0x55, 0xdc, 0x7d,
0x35, 0x9c
],
[
0x77, 0x07, 0xd6, 0xae, 0x4e, 0x02, 0x7c, 0x70, 0xee, 0xa2, 0xa9, 0x35, 0xc2, 0x29,
0x6f, 0x21
]
],
[
0xd3, 0x38, 0x13, 0x91, 0x69, 0xd5, 0x0f, 0x55, 0x52, 0x61, 0x94, 0xc7, 0x90, 0xec, 0x04,
0x48
]
);