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