pub trait Xof {
// Required method
fn squeeze(&mut self, output: &mut [u8]);
}
Expand description
Extendable-output function (XOF
) is a function on bit strings in which the output can be
extended to any desired length.
§Example
let mut output = [0u8; 64];
xof.squeeze(&mut output[0..32]);
xof.squeeze(&mut output[32..]);