]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: replace NewGCMWithNonceAndTagSize with NewGCMWithTagSize
author212472270 <ggp493@gmail.com>
Tue, 5 Jun 2018 23:15:40 +0000 (16:15 -0700)
committerFilippo Valsorda <filippo@golang.org>
Thu, 7 Jun 2018 01:19:13 +0000 (01:19 +0000)
commit33f1768381f0070d5ea8062a36f366d8a3142d96
treeee485722dacdbdb5715261ce904243bdb8511fb6
parentc08b01ecb4488fb3a95fd5cc7baa8b31812e7b76
crypto/cipher: replace NewGCMWithNonceAndTagSize with NewGCMWithTagSize

This function was added during the Go 1.11 dev cycle and isn't part of
the API compatibility promise yet.

In the previous implementation, NewGCMWithNonceAndTagSize was being used
as a helper function for NewGCM, NewGCMWithTagSize, and NewGCMWithNonceSize.
With the removal of Nonce size from the name and parameters, we needed to
add an unexported helper function newGCMWithNonceAndTagSize.

Fixes #24977

Change-Id: Ie70f2a192d0556c4f890deb62e68cff6bbbccd33
Reviewed-on: https://go-review.googlesource.com/116435
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/cipher/gcm.go
src/crypto/cipher/gcm_test.go