Trait XofReader
trait XofReader
Trait for reader types which are used to extract extendable output from a XOF (extendable-output function) result.
Required Methods
fn read(self: &mut Self, buffer: &mut [u8])Read output into the
buffer. Can be called an unlimited number of times.
Provided Methods
fn read_boxed(self: &mut Self, n: usize) -> Box<[u8]>Read output into a boxed slice of the specified size.
Can be called an unlimited number of times in combination with
read.Box<[u8]>is used instead ofVec<u8>to save stack space, since they have size of 2 and 3 words respectively.
Implementors
impl<T> XofReader for XofReaderCoreWrapper<T>