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

Clearing sensitive data before exiting the code #44

Open
mkaihara opened this issue Apr 3, 2020 · 1 comment
Open

Clearing sensitive data before exiting the code #44

mkaihara opened this issue Apr 3, 2020 · 1 comment
Labels
enhancement New feature or request security issue A (possible) attack vector

Comments

@mkaihara
Copy link

mkaihara commented Apr 3, 2020

Please make sure that sensitive data, such as private keys, that are stored in temporary variables are cleared before exiting the function. It is not safe to just leave it out of scope as it may be exploited with attacks. Also make sure that the function that clears the data is not skipped by optimization of the compiler.

@mkaihara mkaihara added enhancement New feature or request security issue A (possible) attack vector labels Apr 3, 2020
@burdges
Copy link

burdges commented Apr 3, 2020

I'd wait for rust-lang/rfcs#2859 and see how dalek, etc. use it before worrying about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request security issue A (possible) attack vector
Projects
None yet
Development

No branches or pull requests

2 participants