pub trait Expander {
    // Required method
    fn fill_bytes(&mut self, okm: &mut [u8]);
}
Available on crate feature hash2curve only.
Expand description

Expander that, call read until enough bytes have been consumed.

Required Methods§

source

fn fill_bytes(&mut self, okm: &mut [u8])

Fill the array with the expanded bytes

Implementors§

source§

impl<'a, HashT> Expander for ExpanderXmd<'a, HashT>where HashT: BlockSizeUser + Default + FixedOutput + HashMarker, HashT::OutputSize: IsLess<U256> + IsLessOrEqual<HashT::BlockSize>,

source§

impl<HashT> Expander for ExpandMsgXof<HashT>where HashT: Default + ExtendableOutput + Update,