pub struct Sha512Hash;Expand description
A struct that implements libcrux_traits::digest traits.
Sha512Hasher is a convenience hasher for this struct.
Trait Implementations§
Source§impl Clone for Sha512Hash
impl Clone for Sha512Hash
Source§fn clone(&self) -> Sha512Hash
fn clone(&self) -> Sha512Hash
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 Sha512Hash
impl Default for Sha512Hash
Source§fn default() -> Sha512Hash
fn default() -> Sha512Hash
Returns the “default value” for a type. Read more
Source§impl DigestIncremental<64> for Sha512Hash
impl DigestIncremental<64> for Sha512Hash
Source§impl DigestIncremental for Sha512Hash
impl DigestIncremental for Sha512Hash
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 Sha512Hash
impl DigestIncrementalBase for Sha512Hash
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 = Sha512
type IncrementalState = Sha512
The digest state.
Source§impl Hash<64> for Sha512Hash
impl Hash<64> for Sha512Hash
Auto Trait Implementations§
impl Freeze for Sha512Hash
impl RefUnwindSafe for Sha512Hash
impl Send for Sha512Hash
impl Sync for Sha512Hash
impl Unpin for Sha512Hash
impl UnwindSafe for Sha512Hash
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