pub fn hash_xof(mode: Mode<'_>, input: &[u8]) -> OutputReader ⓘExpand description
The extended output of input in mode: an OutputReader that
gives as many bytes as the program reads (the first 32 are
hash_with’s).
use blake3_servil_core::{Mode, convenience};
let mut out = [0u8; 100];
convenience::hash_xof(Mode::Plain, b"foo").fill(&mut out);
assert_eq!(&out[..32], convenience::hash(b"foo").as_bytes());