-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Labels
peripheral:aesAES peripheralAES peripheral
Description
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:
#[derive(ZeroizeOnDrop)]
struct Key {}
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
peripheral:aesAES peripheralAES peripheral
Type
Projects
Status
Todo