pub struct Sha224(_);
Expand description
An object which calculates a SHA224 hash of some data.
Implementations§
source§impl Sha224
impl Sha224
sourcepub fn new() -> Sha224
pub fn new() -> Sha224
Creates a new hasher.
This corresponds to SHA224_Init
.
sourcepub fn update(&mut self, buf: &[u8])
pub fn update(&mut self, buf: &[u8])
Feeds some data into the hasher.
This can be called multiple times.
This corresponds to SHA224_Update
.
sourcepub fn finish(self) -> [u8; 28]
pub fn finish(self) -> [u8; 28]
Returns the hash of the data.
This corresponds to SHA224_Final
.