Skip to content

Optionally implement Zeroize on ArrayVec/ArrayString#240

Merged
bluss merged 2 commits into
bluss:masterfrom
elichai:zeroize
Jun 15, 2023
Merged

Optionally implement Zeroize on ArrayVec/ArrayString#240
bluss merged 2 commits into
bluss:masterfrom
elichai:zeroize

Conversation

@elichai
Copy link
Copy Markdown
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.

Comment thread Cargo.toml Outdated
default-features = false

[dependencies.zeroize]
version = "1.0"
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@bluss
Copy link
Copy Markdown
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.

2 participants