tiny_keccak

Trait Xof

Source
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..]);

Required Methods§

Source

fn squeeze(&mut self, output: &mut [u8])

A method used to retrieve another part of hash function output.

Implementors§