Implement CTAssignable for ExtendedPoint.

This commit is contained in:
Isis Lovecruft 2017-05-14 02:31:36 +00:00
parent 738049619b
commit b6faf7c05e
Failed to extract signature

View file

@ -447,6 +447,15 @@ impl CTAssignable for AffineNielsPoint {
}
}
impl CTAssignable for ExtendedPoint {
fn conditional_assign(&mut self, other: &ExtendedPoint, choice: u8) {
self.X.conditional_assign(&other.X, choice);
self.Y.conditional_assign(&other.Y, choice);
self.Z.conditional_assign(&other.Z, choice);
self.T.conditional_assign(&other.T, choice);
}
}
// ------------------------------------------------------------------------
// Constant-time Equality
// ------------------------------------------------------------------------