mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Support zeroizing for SubgroupPoint (#682)
This commit is contained in:
parent
6a0caa1b98
commit
868d614020
1 changed files with 7 additions and 0 deletions
|
|
@ -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")]
|
#[cfg(feature = "group")]
|
||||||
impl group::Group for SubgroupPoint {
|
impl group::Group for SubgroupPoint {
|
||||||
type Scalar = Scalar;
|
type Scalar = Scalar;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue