Trait digest::ExtendableOutput
source · [−]pub trait ExtendableOutput: Sized {
type Reader: XofReader;
fn xof_result(self) -> Self::Reader;
fn vec_result(self, n: usize) -> Vec<u8> { ... }
}
Expand description
Trait which describes extendable-output functions (XOF).
Associated Types
Required methods
fn xof_result(self) -> Self::Reader
fn xof_result(self) -> Self::Reader
Retrieve XOF reader and consume hasher instance.
Provided methods
fn vec_result(self, n: usize) -> Vec<u8>
fn vec_result(self, n: usize) -> Vec<u8>
Retrieve result into vector of specified length.