-
Notifications
You must be signed in to change notification settings - Fork 68
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
zeroize: implement Zeroize for CString #509
Comments
I think this would be a good addition, yes. |
Since |
Yep, it would require a new |
Taking a look at this today, I think it might not be possible. Rust's This might not prevent doing some kind of |
We could do something slightly wacky and overwrite internal bytes with |
Moved to RustCrypto/utils#650 |
I have to store a password that will be passed to a C API using the Rust FFI. To avoid unnecessary copies, I store it as a
std::ffi::CString
. But asZeroize
is not implemented forCString
, I can’t wrap this field in aSecret
.Could you please add a
Zeroize
implementation forCString
?The text was updated successfully, but these errors were encountered: