Trait hash2curve::ExpandMsg[][src]

pub trait ExpandMsg {
    fn expand_message<M, D>(msg: M, dst: D, len_in_bytes: usize) -> Vec<u8>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>

    where
        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]>
; }

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>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
where
    M: AsRef<[u8]>,
    D: AsRef<[u8]>, 
[src]

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]

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.

Loading content...

Implementors

impl<HashT> ExpandMsg for ExpandMsgXmd<HashT> where
    HashT: Digest + BlockInput
[src]

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

Loading content...