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

Add advisory for broken blake2 impls #151

Merged
merged 1 commit into from
Sep 6, 2019
Merged

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Sep 6, 2019

BLAKE2b and BLAKE2s were implemented using the wrong block size. All versions of the blake2 crate prior to v0.8.1 compute incorrect digests.

See: RustCrypto/MACs#19

@newpavlov
Copy link
Contributor

newpavlov commented Sep 6, 2019

All versions of the blake2 crate prior to v0.8.1 compute incorrect digests

Only HMAC values, since we have provided an incorrect value (twice smaller than it should be) for BlockSize associated type, and AFAIK only hmac uses it. Digest values themselves are correct.

@tarcieri
Copy link
Member Author

tarcieri commented Sep 6, 2019

@newpavlov will push a fix, 1s

BLAKE2b and BLAKE2s were implemented using the wrong block size. All
versions of the `blake2` crate prior to v0.8.1 compute incorrect
digests.

See: RustCrypto/MACs#19
@tarcieri
Copy link
Member Author

tarcieri commented Sep 6, 2019

Updated to note this only impacts HMAC-BLAKE2

@tarcieri tarcieri merged commit 06b81b5 into master Sep 6, 2019
@tarcieri tarcieri deleted the broken-blake2-impls branch September 6, 2019 20:44
tarcieri added a commit that referenced this pull request Sep 6, 2019
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