Struct sha2_const::Sha512 [−][src]
pub struct Sha512 { /* fields omitted */ }
Expand description
The SHA-512 hash function.
Examples
const DIGEST: [u8; 64] = Sha512::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
hex::encode(&DIGEST[..]),
concat!(
"07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb64",
"2e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6"
)
);
Implementations
The internal block size of the hash function.
The digest size of the hash function.