Skip to content

blake2: implement ZeroizeOnDrop for Blake2b and Blake2s - #970

Open
shengwen0928 wants to merge 1 commit into
RustCrypto:masterfrom
shengwen0928:fix-912-blake2-zeroize-on-drop
Open

shengwen0928 wants to merge 1 commit into
RustCrypto:masterfrom
shengwen0928:fix-912-blake2-zeroize-on-drop

Conversation

@shengwen0928

Copy link
Copy Markdown

Small fix for #912.

Blake2b512 and the other fixed-output hashers didn't implement ZeroizeOnDrop even though the variable-output cores and the MAC types do, so generic code that needs the bound couldn't use them. I added the impls for Blake2b and Blake2s. Dropping already cleared the state through the core and buffer, so this just closes the gap in the API. I added a test asserting the bound and a changelog entry.

Blake2b and Blake2s did not implement ZeroizeOnDrop even though
the variable-output cores and the MAC types do. The state was
already cleared on drop through the core and buffer, so this only
closes the gap in the API.

Fixes RustCrypto#912.

This branch has not been deployed

No deployments
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.

1 participant