pub struct Kt<const RATE: usize> { /* private fields */ }Expand description
KangarooTwelve hasher generic over rate.
Only 136 and 168 rates are supported which correspond to KT256 and KT128 respectively.
Using other rates will result in a compilation error.
Trait Implementations§
Source§impl<const RATE: usize> AlgorithmName for Kt<RATE>
impl<const RATE: usize> AlgorithmName for Kt<RATE>
Source§impl<const RATE: usize> ExtendableOutput for Kt<RATE>
impl<const RATE: usize> ExtendableOutput for Kt<RATE>
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 Kt<RATE>
impl<const RATE: usize> ExtendableOutputReset for Kt<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 Kt<RATE>
Auto Trait Implementations§
impl<const RATE: usize> Freeze for Kt<RATE>
impl<const RATE: usize> RefUnwindSafe for Kt<RATE>
impl<const RATE: usize> Send for Kt<RATE>
impl<const RATE: usize> Sync for Kt<RATE>
impl<const RATE: usize> Unpin for Kt<RATE>
impl<const RATE: usize> UnsafeUnpin for Kt<RATE>
impl<const RATE: usize> UnwindSafe for Kt<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