diff --git a/curve25519-dalek/src/edwards.rs b/curve25519-dalek/src/edwards.rs index 53ad4fef7..2c87d79fd 100644 --- a/curve25519-dalek/src/edwards.rs +++ b/curve25519-dalek/src/edwards.rs @@ -1524,6 +1524,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;