pub struct Shake256 { /* private fields */ }Expand description
SHAKE256 extensible-output function (XOF) as defined in FIPS 202.
Implements both the Xof and Hasher traits.
§One-shot API
ⓘ
use crypto::sha3::Shake256;
let mut output = [0u8; 64];
Shake256::hash(b"hello world", &mut output);§Incremental XOF API
ⓘ
use crypto::{sha3::Shake256, Xof};
let mut shake = Shake256::new();
shake.absorb(b"hello ");
shake.absorb(b"world");
let mut out = [0u8; 64];
shake.squeeze(&mut out);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shake256
impl RefUnwindSafe for Shake256
impl Send for Shake256
impl Sync for Shake256
impl Unpin for Shake256
impl UnsafeUnpin for Shake256
impl UnwindSafe for Shake256
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