Skip to content

Commit

Permalink
Update ml-kem/src/kem.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tony Arcieri <[email protected]>
  • Loading branch information
bifurcation and tarcieri authored Aug 17, 2024
1 parent 5a24082 commit 5199e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ml-kem/src/kem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ where
}

#[cfg(feature = "zeroize")]
impl<P> Zeroize for DecapsulationKey<P>
impl<P> Drop for DecapsulationKey<P>
where
P: KemParams,
{
fn zeroize(&mut self) {
fn drop(&mut self) {
self.dk_pke.zeroize();
self.z.zeroize();
}
Expand Down

0 comments on commit 5199e66

Please sign in to comment.