diff --git a/src/boolean/cmp.rs b/src/boolean/cmp.rs index 744279a0..ef6adfac 100644 --- a/src/boolean/cmp.rs +++ b/src/boolean/cmp.rs @@ -16,7 +16,7 @@ impl CmpGadget for Boolean { } impl Boolean { - /// Enforces that `bits`, when interpreted as a integer, is less than + /// Enforces that `bits`, when interpreted as an integer, is less than /// `F::characteristic()`, That is, interpret bits as a little-endian /// integer, and enforce that this integer is "in the field Z_p", where /// `p = F::characteristic()` . diff --git a/src/fields/mod.rs b/src/fields/mod.rs index bc77cffc..364e6e0c 100644 --- a/src/fields/mod.rs +++ b/src/fields/mod.rs @@ -218,7 +218,7 @@ pub trait FieldVar: Ok(res) } - /// Computes `self^S`, where S is interpreted as an little-endian + /// Computes `self^S`, where S is interpreted as a little-endian /// u64-decomposition of an integer. fn pow_by_constant>(&self, exp: S) -> Result { let mut res = Self::one(); diff --git a/src/groups/curves/short_weierstrass/mod.rs b/src/groups/curves/short_weierstrass/mod.rs index 8604c052..e2674b47 100644 --- a/src/groups/curves/short_weierstrass/mod.rs +++ b/src/groups/curves/short_weierstrass/mod.rs @@ -247,7 +247,7 @@ where // step(s) of the algorithm // // Adapted from code in - // https://github.com/RustCrypto/elliptic-curves/blob/master/p256/src/arithmetic/projective.rs + // https://github.com/RustCrypto/elliptic-curves/blob/master/p256/tests/projective.rs let three_b = P::COEFF_B.double() + &P::COEFF_B; let (x1, y1, z1) = (&self.x, &self.y, &self.z); let (x2, y2) = (&other.x, &other.y); @@ -460,7 +460,7 @@ where // step(s) of the algorithm // // Adapted from code in - // https://github.com/RustCrypto/elliptic-curves/blob/master/p256/src/arithmetic/projective.rs + // https://github.com/RustCrypto/elliptic-curves/blob/master/p256/tests/projective.rs let three_b = P::COEFF_B.double() + &P::COEFF_B; let xx = self.x.square()?; // 1 @@ -637,7 +637,7 @@ impl_bounded_ops!( // step(s) of the algorithm // // Adapted from code in - // https://github.com/RustCrypto/elliptic-curves/blob/master/p256/src/arithmetic/projective.rs + // https://github.com/RustCrypto/elliptic-curves/blob/master/p256/tests/projective.rs let three_b = P::COEFF_B.double() + &P::COEFF_B; let (x1, y1, z1) = (&this.x, &this.y, &this.z); let (x2, y2, z2) = (&other.x, &other.y, &other.z);