Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions ecdsa/src/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ use {
},
digest::{Digest, Update},
elliptic_curve::{
AffinePoint, CurveArithmetic, FieldBytes, FieldBytesSize, Group, PrimeField,
AffinePoint, CurveArithmetic, CurveGroup, FieldBytes, FieldBytesSize, PrimeField,
ProjectivePoint, Scalar,
bigint::CheckedAdd,
field,
ops::Invert,
ops::LinearCombination,
ops::{Invert, MulByGeneratorVartime},
point::DecompressPoint,
sec1::{self, FromSec1Point, ToSec1Point},
subtle::CtOption,
Expand Down Expand Up @@ -383,8 +382,8 @@ where
let r_inv = *r.invert();
let u1 = -(r_inv * z);
let u2 = r_inv * *s;
let pk = ProjectivePoint::<C>::lincomb(&[(ProjectivePoint::<C>::generator(), u1), (R, u2)]);
Self::from_affine(pk.into())
let pk = ProjectivePoint::<C>::mul_by_generator_and_mul_add_vartime(&u1, &u2, &R);
Self::from_affine(pk.to_affine())
}
}

Expand Down