pub trait ExpandMsg<'a> {
type Expander: Expander + Sized;
// Required method
fn expand_message(
msgs: &[&[u8]],
dsts: &'a [&'a [u8]],
len_in_bytes: usize,
) -> Result<Self::Expander>;
}
Available on crate feature
hash2curve
only.Expand description
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl<'a, HashT> ExpandMsg<'a> for ExpandMsgXmd<HashT>where
HashT: BlockSizeUser + Default + FixedOutput + HashMarker,
HashT::OutputSize: IsLess<U256> + IsLessOrEqual<HashT::BlockSize>,
ExpandMsgXmd implements expand_message_xmd for the ExpandMsg trait
impl<'a, HashT> ExpandMsg<'a> for ExpandMsgXmd<HashT>where
HashT: BlockSizeUser + Default + FixedOutput + HashMarker,
HashT::OutputSize: IsLess<U256> + IsLessOrEqual<HashT::BlockSize>,
ExpandMsgXmd implements expand_message_xmd for the ExpandMsg trait
type Expander = ExpanderXmd<'a, HashT>
Source§impl<'a, HashT> ExpandMsg<'a> for ExpandMsgXof<HashT>
ExpandMsgXof implements expand_message_xof
for the ExpandMsg
trait
impl<'a, HashT> ExpandMsg<'a> for ExpandMsgXof<HashT>
ExpandMsgXof implements expand_message_xof
for the ExpandMsg
trait