-
Notifications
You must be signed in to change notification settings - Fork 73
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
secrecy: How to construct SecretBox #546
Comments
The Are you using |
Adding this to the tests in the
shows that
gets the test to compile, but adding
fails with the error
Which is a false positive, |
Thanks for reporting this and the writeup. It seems there are major issues with both Per the conflicting implementations error you're getting, I'm not sure how to address the |
While trying to see what can be done about this, I ran into a differently worded error:
So apparently |
Isn't the problem that pub struct SecretBox<T: Zeroize>(Box<T>); |
@ia0 yes, I've wanted to refactor it to something like that, but haven't had time |
Cool! Thanks for the feedback and no worries. Nothing urgent, just wanted to check my understanding. |
Am I missing something obvious here, or how is a
SecretBox
constructed in practice?There seems to be an impl missing for
Box
.The text was updated successfully, but these errors were encountered: