You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would probably be best if we didn't copy the key just to then copy it into the hardware. Regardless of that, zeroing it on drop sounds reasonable to me, so maybe we should have both?
Motivations
Currently the AES module copies the key, and it is not wiped out after usage.
Solution
Use Zeroize on
Key
to automatically wipe it out on drop. This can be guarded by a feature.Example:
Alternatives
The AES library does not make a copy. Instead it takes only a reference and the caller should wipe it out if necessary.
This changes the API though.
The text was updated successfully, but these errors were encountered: