Skip to content

Commit

Permalink
Resolve TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis committed Jul 22, 2021
1 parent 43a7320 commit aff2239
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/elliptic/curves/p256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,9 @@ impl ECPoint for Secp256r1Point {
}

fn scalar_mul(&self, fe: &Self::Scalar) -> Secp256r1Point {
// TODO: p256 v0.5.0 cannot multiply AffinePoint * Scalar, but can multiply
// ProjectivePoint * Scalar. It was fixed in v0.9.0
Secp256r1Point {
purpose: "scalar_mul",
ge: (ProjectivePoint::from(self.ge) * *fe.fe).to_affine(),
ge: (self.ge * *fe.fe).to_affine(),
}
}

Expand Down

0 comments on commit aff2239

Please sign in to comment.