[][src]Trait tiny_keccak::Xof

pub trait Xof {
    fn squeeze(&mut self, output: &mut [u8]);
}

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

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

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

Loading content...

Implementors

impl Xof for CShake[src]

impl Xof for KangarooTwelveXof[src]

impl Xof for KmacXof[src]

impl Xof for ParallelHashXof[src]

impl Xof for Shake[src]

impl Xof for TupleHashXof[src]

Loading content...