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