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

Fix forbidden iv length 0 with AES-GCM #2910

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Conversation

embhorn
Copy link
Member

@embhorn embhorn commented Apr 16, 2020

wolfCrypt successfully encrypts using AES_128_GCM with an IV of length 0. According to the Wycheproof test suite, this is forbidden: "AES-GCM does not allow an IV of length 0. Encrypting with such an IV leaks the authentication key. Hence using an IV of length 0 is insecure even if the key itself is only used for a single encryption.

Thanks to Monorail, cryptoFuzz and G.V. for the report.

This fixes a defect in ZD10169

@embhorn embhorn self-assigned this Apr 16, 2020
@embhorn embhorn force-pushed the zd10169 branch 2 times, most recently from ac6893a to 1145440 Compare April 16, 2020 17:16
@ejohnstown ejohnstown merged commit f87f09f into wolfSSL:master Apr 16, 2020
@embhorn embhorn deleted the zd10169 branch June 4, 2020 19:56
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