Repository: dalek-cryptography/curve25519-dalek (language: rust)

Issue:
`curve25519_dalek::SubgroupPoint`: missing traits
`curve25519_dalek::SubgroupPoint` does not implement certain traits, although it only wraps `curve25519_dalek::EdwardsPoint` which does implement these traits:

* `Zeroize`
* `ConstantTimeEq`
* `ConditionallySelectable`
* `TryFrom<EdwardsPoint>`


Discussion / hints:

Fix patch:
diff --git a/curve25519-dalek/src/edwards.rs b/curve25519-dalek/src/edwards.rs
index 811764b47..d6672bd3e 100644
--- a/curve25519-dalek/src/edwards.rs
+++ b/curve25519-dalek/src/edwards.rs
@@ -1532,6 +1532,13 @@ impl ConditionallySelectable for SubgroupPoint {
     }
 }
 
+#[cfg(all(feature = "group", feature = "zeroize"))]
+impl Zeroize for SubgroupPoint {
+    fn zeroize(&mut self) {
+        self.0.zeroize();
+    }
+}
+
 #[cfg(feature = "group")]
 impl group::Group for SubgroupPoint {
     type Scalar = Scalar;


Test patch: