Skip to main content

sha512

Function sha512 

Source
pub fn sha512(data: &[u8]) -> [u8; 64]
Available on (crate features hash-blake3 or hash-sha2) and crate feature hash-sha2 only.
Expand description

Compute a 64-byte SHA-512 digest of data.

ยงExample

use crypt_io::hash;
let d = hash::sha512(b"abc");
assert_eq!(d.len(), 64);