mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Implement CTAssignable for ExtendedPoint.
This commit is contained in:
parent
738049619b
commit
b6faf7c05e
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
// Constant-time Equality
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue