mirror of
https://github.com/RustCrypto/signatures
synced 2026-06-21 13:45:42 +00:00
ed25519: fix Zeroize impl for Signature (#1326)
It wasn't actually using `Zeroize` on the underlying values
This commit is contained in:
+2
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user