1
0
mirror of https://github.com/golang/go synced 2024-11-13 20:10:32 -07:00
go/src/crypto
Adam Langley 210ac4d5e0 crypto/cipher: enforce message size limits for GCM.
The maximum input plaintext for GCM is 64GiB - 64. Since the GCM
interface is one-shot, it's very hard to hit this in Go (one would need
a 64GiB buffer in memory), but we should still enforce this limit.

Thanks to Quan Nguyen for pointing it out.

Change-Id: Icced47bf8d4d5dfbefa165cf13e893205c9577b8
Reviewed-on: https://go-review.googlesource.com/28410
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-09-02 16:23:15 +00:00
..
aes crypto/cipher: enforce message size limits for GCM. 2016-09-02 16:23:15 +00:00
cipher crypto/cipher: enforce message size limits for GCM. 2016-09-02 16:23:15 +00:00
des
dsa
ecdsa math/big: add assembly implementation of arith for ppc64{le} 2016-08-29 21:03:21 +00:00
elliptic crypto/ecdsa: reject negative inputs. 2016-05-18 14:18:48 +00:00
hmac crypto/hmac: don't test for length equality in Equal. 2016-08-17 23:23:28 +00:00
md5 crypto/*, runtime: nacl asm fixes 2016-08-22 19:50:41 +00:00
rand
rc4 all: fix assembly vet issues 2016-08-25 18:52:31 +00:00
rsa
sha1 crypto/*, runtime: nacl asm fixes 2016-08-22 19:50:41 +00:00
sha256 crypto/sha256: add examples for New, Sum256 2016-08-31 05:13:48 +00:00
sha512 crypto/sha512: add s390x assembly implementation 2016-04-26 17:37:45 +00:00
subtle crypto/subtle: expand abbreviation to eliminate confusion 2016-06-09 15:30:48 +00:00
tls crypto/tls: add Config.Clone 2016-09-01 04:26:12 +00:00
x509 crypto/x509: Fix bug in UnknownAuthorityError.Error 2016-08-31 00:09:58 +00:00
crypto.go