pub struct Blake3XofReader { /* private fields */ }Expand description
BLAKE3 extensible-output function (XOF) reader.
Produced by Blake3::finalize_xof. Implements the Xof trait.
Note: a BLAKE3 XOF is an output stream, so Xof::absorb is a no-op
and any bytes passed to it are silently ignored. Add input through
Blake3::update before finalizing instead.
ⓘ
use crypto::{blake3::Blake3, Xof};
let mut hasher = Blake3::new();
hasher.update(b"hello world");
let mut xof = hasher.finalize_xof();
let mut out = [0u8; 64];
xof.squeeze(&mut out);When the zeroize feature is enabled, the retained root/node state — which
for a keyed hash includes key material — is overwritten with zeros when the
reader is dropped.
Trait Implementations§
Source§impl Clone for Blake3XofReader
impl Clone for Blake3XofReader
Source§impl Drop for Blake3XofReader
impl Drop for Blake3XofReader
Source§impl Xof for Blake3XofReader
impl Xof for Blake3XofReader
Auto Trait Implementations§
impl Freeze for Blake3XofReader
impl RefUnwindSafe for Blake3XofReader
impl Send for Blake3XofReader
impl Sync for Blake3XofReader
impl Unpin for Blake3XofReader
impl UnsafeUnpin for Blake3XofReader
impl UnwindSafe for Blake3XofReader
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