]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: Support unusual GCM nonce lengths
authorCarl Jackson <carl@stripe.com>
Fri, 17 Apr 2015 07:52:40 +0000 (00:52 -0700)
committerAdam Langley <agl@golang.org>
Tue, 9 Jun 2015 18:46:13 +0000 (18:46 +0000)
commit50e657fbfa10d5dbc7e5a5f3210b06e23cfeb4af
tree77037ba96efdcec3cc71f4da6d4ae2406aaa12d3
parent30ab39ac7643633716de44840172816ba5658637
crypto/cipher: Support unusual GCM nonce lengths

GCM is traditionally used with a 96-bit nonce, but the standard allows
for nonces of any size. Non-standard nonce sizes are required in some
protocols, so add support for them in crypto/cipher's GCM
implementation.

Change-Id: I7feca7e903eeba557dcce370412b6ffabf1207ab
Reviewed-on: https://go-review.googlesource.com/8946
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
src/crypto/cipher/gcm.go
src/crypto/cipher/gcm_test.go