Rename map_to_curve to map_to_curve_simple_swu.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2021-02-18 23:43:01 +00:00
parent 785ad5375c
commit 6d8c899e16
2 changed files with 3 additions and 3 deletions

View File

@ -700,13 +700,13 @@ macro_rules! impl_projective_curve_specific {
Box::new(move |message| {
let mut us = [Field::zero(); 2];
hashtocurve::hash_to_field(message, domain_separation_tag.as_bytes(), &mut us);
let q0 = hashtocurve::map_to_curve::<$base, $name_affine, $iso_affine>(
let q0 = hashtocurve::map_to_curve_simple_swu::<$base, $name_affine, $iso_affine>(
&us[0],
$name::THETA,
$name::Z,
$name::B_OVER_ZA,
);
let q1 = hashtocurve::map_to_curve::<$base, $name_affine, $iso_affine>(
let q1 = hashtocurve::map_to_curve_simple_swu::<$base, $name_affine, $iso_affine>(
&us[1],
$name::THETA,
$name::Z,

View File

@ -94,7 +94,7 @@ pub fn iso_map<F: FieldExt, C: CurveAffine<Base = F>, I: CurveAffine<Base = F>>(
C::Projective::new_jacobian(xo, yo, zo).unwrap()
}
pub fn map_to_curve<F: FieldExt, C: CurveAffine<Base = F>, I: CurveAffine<Base = F>>(
pub fn map_to_curve_simple_swu<F: FieldExt, C: CurveAffine<Base = F>, I: CurveAffine<Base = F>>(
u: &F,
theta: F,
z: F,