Trait hash2field::ExpandMsg[][src]

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

Trait for types implementing expand_message interface for hash_to_field

Required methods

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

Expand description

Expands msg to the required number of bytes in buf

Loading content...

Implementors

impl<HashT, const LEN_IN_BYTES: usize> ExpandMsg<LEN_IN_BYTES> for ExpandMsgXmd<HashT> where
    HashT: Digest + BlockInput
[src]

ExpandMsgXmd implements expand_message_xmd for the ExpandMsg trait

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

ExpandMsgXof implements expand_message_xof for the ExpandMsg trait

Loading content...