pub trait Xof {
const BLOCK_LEN: usize;
// Required methods
fn new() -> Self;
fn update(&mut self, data: &[u8]);
fn squeeze(&mut self, out: &mut [u8]);
}Expand description
Trait for extendable-output functions (XOF) such as SHAKE128 / SHAKE256.
Unlike a fixed-output Hasher, an XOF can be squeeze-d for any
number of bytes after absorption is complete. The internal sponge
state is mutated by every squeeze call, so successive squeezes
extend the output stream rather than restart it.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.