Skip to content

Commit

Permalink
Support zeroizing for SubgroupPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeickert committed Aug 2, 2024
1 parent 0964f80 commit 4bba214
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions curve25519-dalek/src/edwards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4bba214

Please sign in to comment.