RustCrypto / KEMs

Collection of Key Encapsulation Mechanisms written in pure Rust
30 stars 15 forks source link

Support "zeroize" for ML-KEM decapsulation key #40

Closed commial closed 3 months ago

commial commented 3 months ago

Hello,

In the dhkem crate, the Zeroize trait is supported through a feature named zeroize: https://github.com/RustCrypto/KEMs/blob/a8315adc8e21bec8206cd27720c993d9b0728606/dhkem/src/lib.rs#L71

Would it be possible to have the same support for zeroize in mlkem, at least for the decapsulation key? It might be already planned.

tarcieri commented 3 months ago

Yes, it'd be a good idea

tarcieri commented 3 months ago

Fixed in #51