-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider zeroing memory on drop for key #3791
Comments
Currently the codebase seems to partially use Zeroise. what need to add zeroise support:
|
Some keys have zeroize support already. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now that all crypto is implemented in Rust, we may be able to use zeroise (but maybe not: RustCrypto/AEADs#65)
I guess we should use zeroize:
Footnotes
My current guess is this is possible given we have wrapped the Sodiumoxide/RustCrypto key structure in our own key structure, so we could do something like
struct MyPrivateKey { key: Zeroizing<SodiumOxidePrivateKey> }
which should do the trick (well unless the key is actually stored on the head, or is copied during decryption :/) ↩The text was updated successfully, but these errors were encountered: