pub struct Shake<const RATE: usize> { /* private fields */ }Expand description
SHAKE hasher generic over rate.
Rate MUST be either 168 or 136 for SHAKE128 and SHAKE256 respectively.
Trait Implementations§
Source§impl<const RATE: usize> AlgorithmName for Shake<RATE>
impl<const RATE: usize> AlgorithmName for Shake<RATE>
Source§impl<const RATE: usize> ExtendableOutput for Shake<RATE>
impl<const RATE: usize> ExtendableOutput for Shake<RATE>
Source§type Reader = ShakeReader<RATE>
type Reader = ShakeReader<RATE>
Reader
Source§fn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Retrieve XOF reader and consume hasher instance.
Source§fn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Finalize XOF and write result into
out.Source§impl<const RATE: usize> ExtendableOutputReset for Shake<RATE>
impl<const RATE: usize> ExtendableOutputReset for Shake<RATE>
Source§fn finalize_xof_reset(&mut self) -> Self::Reader
fn finalize_xof_reset(&mut self) -> Self::Reader
Retrieve XOF reader and reset hasher instance state.
Source§fn finalize_xof_reset_into(&mut self, out: &mut [u8])
fn finalize_xof_reset_into(&mut self, out: &mut [u8])
Finalize XOF, write result into
out, and reset the hasher state.impl<const RATE: usize> HashMarker for Shake<RATE>
impl<const RATE: usize> ZeroizeOnDrop for Shake<RATE>
Available on crate feature
zeroize only.Auto Trait Implementations§
impl<const RATE: usize> Freeze for Shake<RATE>
impl<const RATE: usize> RefUnwindSafe for Shake<RATE>
impl<const RATE: usize> Send for Shake<RATE>
impl<const RATE: usize> Sync for Shake<RATE>
impl<const RATE: usize> Unpin for Shake<RATE>
impl<const RATE: usize> UnsafeUnpin for Shake<RATE>
impl<const RATE: usize> UnwindSafe for Shake<RATE>
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