Skip to content
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

Support Zeroize #14

Closed
afck opened this issue Nov 12, 2019 · 1 comment · Fixed by #74
Closed

Support Zeroize #14

afck opened this issue Nov 12, 2019 · 1 comment · Fixed by #74

Comments

@afck
Copy link

afck commented Nov 12, 2019

Cryptographic applications should be able to wipe sensitive data from memory before deallocating it. E.g. the elements of Fr can be used as secret BLS keys.

Without support from the bls12_381 crate itself, any attempt to clear such data necessarily depends on an implementation detail of bls12_381 that is not part of the public API, e.g. Fr not using any pointers internally.

The safest way to support this would be to add explicit methods for clearing, or to impl Zeroize for Fr. If the added zeroize dependency is a concern, it could be made optional, and put behind a feature flag.

@ebfull
Copy link
Contributor

ebfull commented Nov 13, 2019

Thanks! I love zeroize and definitely think we should support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants