Matching to latest test vectors with metadata mode (#3)

This commit is contained in:
Kevin Lewi
2021-09-13 16:02:09 -07:00
committed by GitHub
parent fe3222d148
commit 485d18deec
10 changed files with 1317 additions and 141 deletions
+7 -2
View File
@@ -149,12 +149,17 @@ impl Group for ProjectivePoint {
self * &Self::Scalar::from_bytes_reduced(scalar)
}
fn is_identity(&self) -> bool {
self == &Self::identity()
fn identity() -> Self {
Self::identity()
}
fn ct_equal(&self, other: &Self) -> bool {
self.ct_eq(other).into()
}
fn ct_equal_scalar(s1: &Self::Scalar, s2: &Self::Scalar) -> bool {
s1.ct_eq(s2).into()
}
}
/// Corresponds to the map_to_curve_simple_swu() function defined in