pub struct Shake128 { /* private fields */ }
Expand description
SHAKE128 extendable output (XOF) hash function
Trait Implementations
sourceimpl ExtendableOutputDirty for Shake128
impl ExtendableOutputDirty for Shake128
type Reader = Sha3XofReader
type Reader = Sha3XofReader
Reader
sourcefn finalize_xof_dirty(&mut self) -> Sha3XofReaderⓘNotable traits for Sha3XofReaderimpl Read for Sha3XofReader
fn finalize_xof_dirty(&mut self) -> Sha3XofReaderⓘNotable traits for Sha3XofReaderimpl Read for Sha3XofReader
Retrieve XOF reader. Read more
sourceimpl Write for Shake128
impl Write for Shake128
sourcefn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
sourcefn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
1.0.0 · sourcefn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
sourcefn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Shake128
impl Send for Shake128
impl Sync for Shake128
impl Unpin for Shake128
impl UnwindSafe for Shake128
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
sourceimpl<X> ExtendableOutput for X where
X: ExtendableOutputDirty + Reset,
impl<X> ExtendableOutput for X where
X: ExtendableOutputDirty + Reset,
type Reader = <X as ExtendableOutputDirty>::Reader
type Reader = <X as ExtendableOutputDirty>::Reader
Reader
sourcepub fn finalize_xof(self) -> <X as ExtendableOutput>::Reader
pub fn finalize_xof(self) -> <X as ExtendableOutput>::Reader
Retrieve XOF reader and consume hasher instance.
sourcepub fn finalize_xof_reset(&mut self) -> <X as ExtendableOutput>::Reader
pub fn finalize_xof_reset(&mut self) -> <X as ExtendableOutput>::Reader
Retrieve XOF reader and reset hasher instance state.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more