Browse Source

Tweaks

cherry-pick
Pratyush Mishra 2 years ago
parent
commit
1833cbfb29
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      bls12_377/src/fields/fq2.rs
  2. +1
    -1
      bls12_381/src/fields/fq2.rs

+ 1
- 1
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;

+ 1
- 1
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;
}

Loading…
Cancel
Save