pub struct TurboShake256<const DS: u8 = 31> { /* private fields */ }Expand description
TurboSHAKE256 hasher with domain separator.
Domain separator DS MUST be in the range 0x01..=0x7f, the default value is 0x1F.
Using DS outside of the range will result in a panic during initialization.
Trait Implementations§
Source§impl<const DS: u8> AlgorithmName for TurboShake256<DS>
impl<const DS: u8> AlgorithmName for TurboShake256<DS>
Source§impl<const DS: u8> BlockSizeUser for TurboShake256<DS>
impl<const DS: u8> BlockSizeUser for TurboShake256<DS>
Source§impl<const DS: u8> Clone for TurboShake256<DS>
impl<const DS: u8> Clone for TurboShake256<DS>
Source§fn clone(&self) -> TurboShake256<DS>
fn clone(&self) -> TurboShake256<DS>
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<const DS: u8> CollisionResistance for TurboShake256<DS>
impl<const DS: u8> CollisionResistance for TurboShake256<DS>
Source§impl<const DS: u8> Debug for TurboShake256<DS>
impl<const DS: u8> Debug for TurboShake256<DS>
Source§impl<const DS: u8> Default for TurboShake256<DS>
impl<const DS: u8> Default for TurboShake256<DS>
Source§impl<const DS: u8> ExtendableOutput for TurboShake256<DS>
impl<const DS: u8> ExtendableOutput for TurboShake256<DS>
Source§type Reader = TurboShake256Reader
type Reader = TurboShake256Reader
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 DS: u8> ExtendableOutputReset for TurboShake256<DS>
impl<const DS: u8> ExtendableOutputReset for TurboShake256<DS>
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.Source§impl<const DS: u8> Reset for TurboShake256<DS>
impl<const DS: u8> Reset for TurboShake256<DS>
Source§impl<const DS: u8> Update for TurboShake256<DS>
impl<const DS: u8> Update for TurboShake256<DS>
impl<const DS: u8> HashMarker for TurboShake256<DS>
Auto Trait Implementations§
impl<const DS: u8> Freeze for TurboShake256<DS>
impl<const DS: u8> RefUnwindSafe for TurboShake256<DS>
impl<const DS: u8> Send for TurboShake256<DS>
impl<const DS: u8> Sync for TurboShake256<DS>
impl<const DS: u8> Unpin for TurboShake256<DS>
impl<const DS: u8> UnsafeUnpin for TurboShake256<DS>
impl<const DS: u8> UnwindSafe for TurboShake256<DS>
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> SmallBlockSizeUser for T
impl<T> SmallBlockSizeUser for T
Source§type _BlockSize = <T as BlockSizeUser>::BlockSize
type _BlockSize = <T as BlockSizeUser>::BlockSize
Helper associated type equal to
<Self as BlockSizeUser>::BlockSize.