Struct Sha256
openssl::sha
pub struct Sha256(_);
An object which calculates a SHA256 hash of some data.
impl Sha256
fn new() -> Sha256
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; 32]
Returns the hash of the data.