ed25519: fix Zeroize impl for Signature (#1326)

It wasn't actually using `Zeroize` on the underlying values
This commit is contained in:
Tony Arcieri
2026-05-03 10:06:36 -06:00
committed by GitHub
parent 01e41793c3
commit 9c1e1fc627
+2 -2
View File
@@ -475,7 +475,7 @@ impl<'de> Deserialize<'de> for Signature {
#[cfg(feature = "zeroize")]
impl Zeroize for Signature {
fn zeroize(&mut self) {
self.R = [0; 32];
self.s = [0; 32];
self.R.zeroize();
self.s.zeroize();
}
}