Skip to content

Commit 868d614

Browse files
Support zeroizing for SubgroupPoint (#682)
1 parent 6a0caa1 commit 868d614

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

curve25519-dalek/src/edwards.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,13 @@ impl ConditionallySelectable for SubgroupPoint {
15321532
}
15331533
}
15341534

1535+
#[cfg(all(feature = "group", feature = "zeroize"))]
1536+
impl Zeroize for SubgroupPoint {
1537+
fn zeroize(&mut self) {
1538+
self.0.zeroize();
1539+
}
1540+
}
1541+
15351542
#[cfg(feature = "group")]
15361543
impl group::Group for SubgroupPoint {
15371544
type Scalar = Scalar;

0 commit comments

Comments
 (0)