Struct Sha512
openssl::sha
pub struct Sha512(_);
An object which calculates a SHA512 hash of some data.
impl Sha512
fn new() -> Sha512
Creates a new hasher.
fn update(&mut self, buf: &[u8])
Feeds some data into the hasher.
This can be called multiple times.
fn finish(self) -> [u8; 64]
Returns the hash of the data.