Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In many AEAD implementations we pass the key directly onto `NewBlockCipher`, e.g. in the `aes-gcm` crate: https://github.com/RustCrypto/AEADs/blob/af9926e/aes-gcm/src/lib.rs#L183 This makes an unnecessary copy of the key which therefore necessitates zeroing it out. If we borrow the key at the time the cipher is initialized, we can avoid making this copy.
- Loading branch information