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

smollish improvement suggestions for memory (in openssl and for sensitive info) #23

Open
matu3ba opened this issue Oct 7, 2022 · 0 comments

Comments

@matu3ba
Copy link

matu3ba commented Oct 7, 2022

I have used openssl recently (more in a hacky fashion).
You can take a look at this example:
https://github.com/matu3ba/dotfiles/blob/3831a171410f9bb2535648c9032e6e5ed8b5770f/example/openssl_aes.c#L192
It is very annoying that they renamed it from cleanup to free without adding a compile error on usage of the old function.

Note, that I dont use bzero to zero out memory, which should be done for sensitive information.
https://www.quaxio.com/wtf/openssl_wtf.html
I think @memset should do the same in Zig, but unfortunately the manual does not specify, if intrinsics could be optimized away by nasty LLVM.

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

No branches or pull requests

1 participant