ExpandMsg

Trait ExpandMsg 

Source
pub trait ExpandMsg<const OUT: usize> {
    // Required method
    fn expand_message(msg: &[u8], dst: &[u8]) -> [u8; OUT];
}
Expand description

Trait for types implementing expand_message interface for hash_to_field

Required Methods§

Source

fn expand_message(msg: &[u8], dst: &[u8]) -> [u8; OUT]

Expands msg to the required number of bytes in buf

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<HashT, const LEN_IN_BYTES: usize> ExpandMsg<LEN_IN_BYTES> for ExpandMsgXmd<HashT>
where HashT: Digest + BlockInput,

ExpandMsgXmd implements expand_message_xmd for the ExpandMsg trait

Source§

impl<HashT, const LEN_IN_BYTES: usize> ExpandMsg<LEN_IN_BYTES> for ExpandMsgXof<HashT>
where HashT: Default + ExtendableOutput + Update,

ExpandMsgXof implements expand_message_xof for the ExpandMsg trait