diff --git a/crypto/dkg/src/encryption.rs b/crypto/dkg/src/encryption.rs index 652fbbea..3e5b5b7c 100644 --- a/crypto/dkg/src/encryption.rs +++ b/crypto/dkg/src/encryption.rs @@ -92,7 +92,7 @@ impl Zeroize for Encryption { fn zeroize(&mut self) { self.enc_key.zeroize(); self.enc_pub_key.zeroize(); - for (_, value) in self.enc_keys.drain() { + for (_, mut value) in self.enc_keys.drain() { value.zeroize(); } }