[][src]Trait digest::ExtendableOutput

pub trait ExtendableOutput: Sized {
    type Reader: XofReader;
    fn xof_result(self) -> Self::Reader;

    fn vec_result(self, n: usize) -> Vec<u8> { ... }
}
[]

Trait which describes extendable-output functions (XOF).

Associated Types

type Reader: XofReader

Required methods

fn xof_result(self) -> Self::Reader[]

Retrieve XOF reader and consume hasher instance.

Provided methods

fn vec_result(self, n: usize) -> Vec<u8>[]

Retrieve result into vector of specified length.

Implementors