Struct sha2_const::Sha224 [−][src]
pub struct Sha224 { /* fields omitted */ }
Expand description
The SHA-224 hash function.
The SHA-256 algorithm with the SHA-224 initialization vector, truncated to 224 bits.
Examples
const DIGEST: [u8; 28] = Sha224::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
hex::encode(&DIGEST[..]),
"730e109bd7a8a32b1cb9d9a09aa2325d2430587ddbc0c38bad911525"
);
Implementations
The internal block size of the hash function.
The digest size of the hash function.