pub struct Sha224Hash;Expand description
A struct that implements libcrux_traits::digest traits.
Sha224Hasher is a convenience hasher for this struct.
Trait Implementations§
Source§impl Clone for Sha224Hash
impl Clone for Sha224Hash
Source§fn clone(&self) -> Sha224Hash
fn clone(&self) -> Sha224Hash
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for Sha224Hash
impl Default for Sha224Hash
Source§fn default() -> Sha224Hash
fn default() -> Sha224Hash
Returns the “default value” for a type. Read more
Source§impl DigestIncremental<28> for Sha224Hash
impl DigestIncremental<28> for Sha224Hash
Source§impl DigestIncremental for Sha224Hash
impl DigestIncremental for Sha224Hash
Source§fn finish(
state: &mut Self::IncrementalState,
digest: &mut [u8],
) -> Result<usize, FinishError>
fn finish( state: &mut Self::IncrementalState, digest: &mut [u8], ) -> Result<usize, FinishError>
Writes the digest into
digest. Read moreSource§impl DigestIncrementalBase for Sha224Hash
impl DigestIncrementalBase for Sha224Hash
Source§fn update(
state: &mut Self::IncrementalState,
payload: &[u8],
) -> Result<(), UpdateError>
fn update( state: &mut Self::IncrementalState, payload: &[u8], ) -> Result<(), UpdateError>
Add the payload to the digest.
Will return an error if payload is longer than u32::MAX to ensure that hacl-rs can
process it.
Source§fn reset(state: &mut Self::IncrementalState)
fn reset(state: &mut Self::IncrementalState)
Reset the digest state.
Source§type IncrementalState = Sha224
type IncrementalState = Sha224
The digest state.
Source§impl Hash<28> for Sha224Hash
impl Hash<28> for Sha224Hash
Auto Trait Implementations§
impl Freeze for Sha224Hash
impl RefUnwindSafe for Sha224Hash
impl Send for Sha224Hash
impl Sync for Sha224Hash
impl Unpin for Sha224Hash
impl UnwindSafe for Sha224Hash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<const OUTPUT_LEN: usize, D> DigestIncremental<OUTPUT_LEN> for Dwhere
D: DigestIncremental<OUTPUT_LEN>,
impl<const OUTPUT_LEN: usize, D> DigestIncremental<OUTPUT_LEN> for Dwhere
D: DigestIncremental<OUTPUT_LEN>,
Source§fn finish(
state: &mut <D as DigestIncrementalBase>::IncrementalState,
) -> [u8; OUTPUT_LEN]
fn finish( state: &mut <D as DigestIncrementalBase>::IncrementalState, ) -> [u8; OUTPUT_LEN]
Returns the digest as an array. Read more