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