Struct k12::KangarooTwelve
source · [−]pub struct KangarooTwelve { /* private fields */ }
Expand description
The KangarooTwelve extendable-output function (XOF).
Implementations
sourceimpl KangarooTwelve
impl KangarooTwelve
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new KangarooTwelve
instance.
sourcepub fn new_with_customization(customization: impl AsRef<[u8]>) -> Self
pub fn new_with_customization(customization: impl AsRef<[u8]>) -> Self
Create a new KangarooTwelve
instance with the given customization.
Trait Implementations
sourceimpl Debug for KangarooTwelve
impl Debug for KangarooTwelve
sourceimpl Default for KangarooTwelve
impl Default for KangarooTwelve
sourcefn default() -> KangarooTwelve
fn default() -> KangarooTwelve
Returns the “default value” for a type. Read more
sourceimpl ExtendableOutput for KangarooTwelve
impl ExtendableOutput for KangarooTwelve
sourcefn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Retrieve XOF reader and consume hasher instance.
sourcefn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Finalize XOF and write result into out
.
sourceimpl ExtendableOutputReset for KangarooTwelve
impl ExtendableOutputReset for KangarooTwelve
sourcefn finalize_xof_reset(&mut self) -> Self::Reader
fn finalize_xof_reset(&mut self) -> Self::Reader
Retrieve XOF reader and reset hasher instance state.
sourcefn 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.
sourceimpl Reset for KangarooTwelve
impl Reset for KangarooTwelve
sourceimpl Update for KangarooTwelve
impl Update for KangarooTwelve
impl HashMarker for KangarooTwelve
Auto Trait Implementations
impl RefUnwindSafe for KangarooTwelve
impl Send for KangarooTwelve
impl Sync for KangarooTwelve
impl Unpin for KangarooTwelve
impl UnwindSafe for KangarooTwelve
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more