Struct KeccakState
pub struct KeccakState { /* private fields */ }Expand description
A Keccak-f[1600] sponge in absorbing/squeezing mode.
Implementations§
§impl KeccakState
impl KeccakState
pub fn new(rate: usize, suffix: u8) -> KeccakState
pub fn new(rate: usize, suffix: u8) -> KeccakState
New sponge with the given rate (bytes) and domain suffix
(0x06 for SHA-3, 0x1f for SHAKE, 0x04 for cSHAKE).
Trait Implementations§
§impl Clone for KeccakState
impl Clone for KeccakState
§fn clone(&self) -> KeccakState
fn clone(&self) -> KeccakState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeccakState
impl RefUnwindSafe for KeccakState
impl Send for KeccakState
impl Sync for KeccakState
impl Unpin for KeccakState
impl UnsafeUnpin for KeccakState
impl UnwindSafe for KeccakState
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