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

Optionally implement Zeroize on ArrayVec/ArrayString #240

Merged
merged 2 commits into from Jun 15, 2023

Conversation

elichai
Copy link
Contributor

@elichai elichai commented Jun 12, 2023

This will be very useful as ArrayVec is used in cryptographic libraries so the user might want to zero out the content (See BLAKE3-team/BLAKE3#309)

P.S. I'm not sure about the use of unsafe in the test examples, I can split them into unit tests if wanted.

Cargo.toml Outdated
@@ -19,6 +19,11 @@ version = "1.0"
optional = true
default-features = false

[dependencies.zeroize]
version = "1.0"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe put this as version 1.4

@bluss
Copy link
Owner

bluss commented Jun 12, 2023

looks good to me, can you add the new feature somewhere in the github actions test matrix? In an existing case is fine.

@elichai
Copy link
Contributor Author

elichai commented Jun 13, 2023

looks good to me, can you add the new feature somewhere in the github actions test matrix? In an existing case is fine.

Done :) I used that opportunity to add benches to one of the matrix entries and to enable all features on the miri run

@elichai elichai force-pushed the zeroize branch 2 times, most recently from ccc0ce9 to af23c59 Compare June 14, 2023 12:00
@elichai
Copy link
Contributor Author

elichai commented Jun 14, 2023

Sorry, I used the wrong yaml syntax, fixed and tested locally (with act)

@bluss bluss merged commit 2cd12ef into bluss:master Jun 15, 2023
5 checks passed
@bluss
Copy link
Owner

bluss commented Jun 15, 2023

thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants