[][src]Trait pairing_plus::hash_to_curve::HashToCurve

pub trait HashToCurve<X> where
    X: ExpandMsg
{ fn hash_to_curve<Mt: AsRef<[u8]>, Dt: AsRef<[u8]>>(msg: Mt, dst: Dt) -> Self;
fn encode_to_curve<Mt: AsRef<[u8]>, Dt: AsRef<[u8]>>(
        msg: Mt,
        dst: Dt
    ) -> Self; }

Random oracle and injective maps to curve

Required methods

fn hash_to_curve<Mt: AsRef<[u8]>, Dt: AsRef<[u8]>>(msg: Mt, dst: Dt) -> Self

Random oracle

fn encode_to_curve<Mt: AsRef<[u8]>, Dt: AsRef<[u8]>>(msg: Mt, dst: Dt) -> Self

Injective encoding

Loading content...

Implementors

impl<PtT, X> HashToCurve<X> for PtT where
    PtT: ClearH + IsogenyMap + OSSWUMap,
    <PtT as CurveProjective>::Base: FromRO,
    X: ExpandMsg
[src]

Loading content...