From b6faf7c05e7e9e4cf973ffa3522a40272f91fd96 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Sun, 14 May 2017 02:31:36 +0000 Subject: [PATCH] Implement CTAssignable for ExtendedPoint. --- src/curve.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/curve.rs b/src/curve.rs index 7dd0c14..811d4b6 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -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 // ------------------------------------------------------------------------