From 1833cbfb298526f880fb3df0d6fe2952586258da Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Thu, 22 Sep 2022 14:11:14 -0700 Subject: [PATCH] Tweaks --- bls12_377/src/fields/fq2.rs | 2 +- bls12_381/src/fields/fq2.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bls12_377/src/fields/fq2.rs b/bls12_377/src/fields/fq2.rs index fa479e1..60d3888 100644 --- a/bls12_377/src/fields/fq2.rs +++ b/bls12_377/src/fields/fq2.rs @@ -41,7 +41,7 @@ impl Fp2Config for Fq2Config { *y += x; } - fn mul_fp_by_nonresidue_in_place_and_add(y: &mut Self::Fp, x: &Self::Fp) { + fn mul_fp_by_nonresidue_and_add(y: &mut Self::Fp, x: &Self::Fp) { let mut original = *y; original.double_in_place().double_in_place(); original += &*y; diff --git a/bls12_381/src/fields/fq2.rs b/bls12_381/src/fields/fq2.rs index 34f0f6c..7f13919 100644 --- a/bls12_381/src/fields/fq2.rs +++ b/bls12_381/src/fields/fq2.rs @@ -35,7 +35,7 @@ impl Fp2Config for Fq2Config { *y = *x; } - fn mul_fp_by_nonresidue_in_place_and_add(y: &mut Self::Fp, x: &Self::Fp) { + fn mul_fp_by_nonresidue_and_add(y: &mut Self::Fp, x: &Self::Fp) { y.neg_in_place(); *y += x; }