1
0
mirror of https://github.com/golang/go synced 2024-11-18 00:24:48 -07:00
go/src/crypto/aes
Filippo Valsorda 75d15a2082 crypto: panic on illegal input and output overlap
Normalized all panic checks and added inexact aliasing panics across
Stream, Block, BlockMode and AEAD implementations.

Also, tweaked the aliasing docs of cipher.AEAD, as they did not account
for the append nature of the API.

Fixes #21624

Change-Id: I075c4415f59b3c06e3099bd9f76de6d12af086bf
Reviewed-on: https://go-review.googlesource.com/109697
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-19 21:06:50 +00:00
..
aes_gcm.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
aes_test.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
asm_amd64.s
asm_arm64.s
asm_ppc64le.s
asm_s390x.s
block.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
cbc_s390x.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
cipher_amd64.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
cipher_arm64.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
cipher_generic.go
cipher_ppc64le.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
cipher_s390x.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
cipher.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
const.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
ctr_s390x.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
gcm_amd64.s
gcm_s390x.go crypto: panic on illegal input and output overlap 2018-06-19 21:06:50 +00:00
modes_test.go
modes.go