Skip to main content

hash_module

Macro hash_module 

Source
macro_rules! hash_module {
    ($hasher:ident, $len:expr, $abc_kat:expr, $empty_kat:expr) => { ... };
}
Expand description

Generates a hash module body: DIGEST_LEN, one-shot digest(), an incremental hasher, and tests against the FIPS 180 “abc” and empty-input known answers.