Skip to content

Fix forbidden iv length 0 with AES-GCM#2910

Merged
ejohnstown merged 1 commit intowolfSSL:masterfrom
embhorn:zd10169
Apr 16, 2020
Merged

Fix forbidden iv length 0 with AES-GCM#2910
ejohnstown merged 1 commit intowolfSSL:masterfrom
embhorn:zd10169

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 requested a review from JacobBarthelmeh April 16, 2020 16:35
@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