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