Trait ascon_hash::XofReader

source ·
pub trait XofReader {
    // Required method
    fn read(&mut self, buffer: &mut [u8]);
}
Expand description

Trait for reader types which are used to extract extendable output from a XOF (extendable-output function) result.

Required Methods§

source

fn read(&mut self, buffer: &mut [u8])

Read output into the buffer. Can be called an unlimited number of times.

Implementors§

source§

impl<T> XofReader for XofReaderCoreWrapper<T>where T: XofReaderCore, <T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>, <<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,