]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: add NewGCMWithNonceAndTagSize for custom tag sizes.
authorConrado Gouvea <conradoplg@gmail.com>
Fri, 14 Jul 2017 01:14:37 +0000 (22:14 -0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Feb 2018 15:32:26 +0000 (15:32 +0000)
commit8cb4327ea3fb9584164fccf3fb4d76c4e567d76d
treeaf33398c14994f2a3fef114eabf685385535f7b9
parentc0094338fb29e00ef9a3bf5613637e27e7b1dc83
crypto/cipher: add NewGCMWithNonceAndTagSize for custom tag sizes.

GCM allows using tag sizes smaller than the block size. This adds a
NewGCMWithNonceAndTagSize function which allows specifying the tag
size.

Fixes #19594

Change-Id: Ib2008c6f13ad6d916638b1523c0ded8a80eaf42d
Reviewed-on: https://go-review.googlesource.com/48510
Reviewed-by: Filippo Valsorda <hi@filippo.io>
Run-TryBot: Filippo Valsorda <hi@filippo.io>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/aes/aes_gcm.go
src/crypto/aes/gcm_s390x.go
src/crypto/aes/modes.go
src/crypto/aes/modes_test.go
src/crypto/cipher/gcm.go
src/crypto/cipher/gcm_test.go