]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.14] crypto/cipher: require non-zero nonce size for AES-GCM
authorKatie Hockman <katie@golang.org>
Fri, 7 Feb 2020 19:44:58 +0000 (14:44 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Mon, 24 Feb 2020 20:07:06 +0000 (20:07 +0000)
commitf63e55b54171c48087f67b31b2e6ef3181b3ea0d
tree6a415050ea6e07daaf6d2bfb59ac8e1be47f313f
parent17acbdb3571b9720dac8eb71f4df385e16c8c91e
[release-branch.go1.14] crypto/cipher: require non-zero nonce size for AES-GCM

Also fix typo in crypto/cipher/gcm_test.go.

Updates #37118
Fixes #37416

Change-Id: I8544d1eeeb1f0336cebb977b8c5bfa5e4c5ad8c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/218500
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
(cherry picked from commit 4e8badbbc2fe7854bb1c12a9ee42315b4d535051)
Reviewed-on: https://go-review.googlesource.com/c/go/+/220651
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
src/crypto/cipher/gcm.go
src/crypto/cipher/gcm_test.go