pub struct ExpandMsgXmd<HashT>(PhantomData<HashT>)
where
HashT: BlockSizeUser + Default + FixedOutput + HashMarker,
HashT::OutputSize: IsLessOrEqual<HashT::BlockSize, Output = True>;Expand description
Implements expand_message_xof via the ExpandMsg trait:
https://www.rfc-editor.org/rfc/rfc9380.html#name-expand_message_xmd
§Errors
See ExpandMsgXmdError for details.
Tuple Fields§
§0: PhantomData<HashT>Trait Implementations§
Source§impl<HashT> Debug for ExpandMsgXmd<HashT>where
HashT: BlockSizeUser + Default + FixedOutput + HashMarker + Debug,
HashT::OutputSize: IsLessOrEqual<HashT::BlockSize, Output = True>,
impl<HashT> Debug for ExpandMsgXmd<HashT>where
HashT: BlockSizeUser + Default + FixedOutput + HashMarker + Debug,
HashT::OutputSize: IsLessOrEqual<HashT::BlockSize, Output = True>,
Source§impl<HashT, K> ExpandMsg<K> for ExpandMsgXmd<HashT>where
HashT: BlockSizeUser + Default + FixedOutput + HashMarker,
HashT::OutputSize: IsLessOrEqual<HashT::BlockSize, Output = True> + IsGreaterOrEqual<Prod<K, U2>, Output = True>,
K: Mul<U2>,
impl<HashT, K> ExpandMsg<K> for ExpandMsgXmd<HashT>where
HashT: BlockSizeUser + Default + FixedOutput + HashMarker,
HashT::OutputSize: IsLessOrEqual<HashT::BlockSize, Output = True> + IsGreaterOrEqual<Prod<K, U2>, Output = True>,
K: Mul<U2>,
Source§type Expander<'dst> = ExpanderXmd<'dst, HashT>
type Expander<'dst> = ExpanderXmd<'dst, HashT>
Type holding data for the
Expander.Source§type Error = ExpandMsgXmdError
type Error = ExpandMsgXmdError
Error returned by
ExpandMsg::expand_message.Auto Trait Implementations§
impl<HashT> Freeze for ExpandMsgXmd<HashT>
impl<HashT> RefUnwindSafe for ExpandMsgXmd<HashT>where
HashT: RefUnwindSafe,
impl<HashT> Send for ExpandMsgXmd<HashT>where
HashT: Send,
impl<HashT> Sync for ExpandMsgXmd<HashT>where
HashT: Sync,
impl<HashT> Unpin for ExpandMsgXmd<HashT>where
HashT: Unpin,
impl<HashT> UnsafeUnpin for ExpandMsgXmd<HashT>
impl<HashT> UnwindSafe for ExpandMsgXmd<HashT>where
HashT: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more