Trait hash2curve::ExpandMsg [−][src]
Trait for types implementing expand_message interface for hash_to_field
Required methods
fn expand_message<M, D>(msg: M, dst: D, len_in_bytes: usize) -> Vec<u8>ⓘ where
M: AsRef<[u8]>,
D: AsRef<[u8]>,
[src]
M: AsRef<[u8]>,
D: AsRef<[u8]>,
Expand the message with the domain separation tag into a random byte sequence
fn expand_message_in_place<M, D>(
msg: M,
dst: D,
len_in_bytes: usize,
out: &mut [u8]
) where
M: AsRef<[u8]>,
D: AsRef<[u8]>,
[src]
msg: M,
dst: D,
len_in_bytes: usize,
out: &mut [u8]
) where
M: AsRef<[u8]>,
D: AsRef<[u8]>,
Expand the message with the domain separation tag into a random byte sequence
and store it in out
. out
must be big enough to hold all computational storage.
Implementors
impl<HashT> ExpandMsg for ExpandMsgXmd<HashT> where
HashT: Digest + BlockInput,
[src]
HashT: Digest + BlockInput,
fn expand_message<M, D>(msg: M, dst: D, len_in_bytes: usize) -> Vec<u8>ⓘ where
M: AsRef<[u8]>,
D: AsRef<[u8]>,
[src]
M: AsRef<[u8]>,
D: AsRef<[u8]>,
fn expand_message_in_place<M, D>(
msg: M,
dst: D,
len_in_bytes: usize,
out: &mut [u8]
) where
M: AsRef<[u8]>,
D: AsRef<[u8]>,
[src]
msg: M,
dst: D,
len_in_bytes: usize,
out: &mut [u8]
) where
M: AsRef<[u8]>,
D: AsRef<[u8]>,
impl<HashT> ExpandMsg for ExpandMsgXof<HashT> where
HashT: Default + ExtendableOutput + Update,
[src]
HashT: Default + ExtendableOutput + Update,