logo
pub trait ExpandMsg<'a> {
    type Expander: Expander + Sized;

    fn expand_message(
        msgs: &[&[u8]],
        dst: &'a [u8],
        len_in_bytes: usize
    ) -> Result<Self::Expander>; }
Available on crate feature hash2curve only.
Expand description

Trait for types implementing expand_message interface for hash_to_field.

Errors

See implementors of ExpandMsg for errors.

Required Associated Types

Type holding data for the Expander.

Required Methods

Expands msg to the required number of bytes.

Returns an expander that can be used to call read until enough bytes have been consumed

Implementors

ExpandMsgXmd implements expand_message_xmd for the ExpandMsg trait

ExpandMsgXof implements expand_message_xof for the ExpandMsg trait