1
0
mirror of https://github.com/golang/go synced 2024-10-04 19:21:21 -06:00
go/src/crypto/cipher
Tilman Dilo 9af83462c6 crypto/cipher: execute AES-GCM decryption example
The decryption example for AES-GCM was not executed, hiding the fact
that the provided ciphertext could not be authenticated.

This commit adds the required output comment, replaces the ciphertext
with a working example, and removes an unnecessary string conversion
along the way.

Change-Id: Ie6729ca76cf4a56c48b33fb3b39872105faa604b
Reviewed-on: https://go-review.googlesource.com/22953
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-05-09 23:03:55 +00:00
..
benchmark_test.go crypto/aes: dedicated asm version of AES-GCM 2015-08-29 21:02:38 +00:00
cbc_aes_test.go
cbc.go crypto/cipher, crypto/aes: add s390x implementation of AES-CBC 2016-04-29 21:17:09 +00:00
cfb_test.go
cfb.go
cipher_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cipher.go all: single space after period. 2016-03-02 00:13:47 +00:00
common_test.go
ctr_aes_test.go
ctr_test.go crypto/cipher: fix CTR infinite loop with large block sizes 2015-10-20 21:38:36 +00:00
ctr.go crypto/cipher, crypto/aes: add s390x implementation of AES-CTR 2016-04-29 21:17:31 +00:00
example_test.go crypto/cipher: execute AES-GCM decryption example 2016-05-09 23:03:55 +00:00
gcm_test.go crypto/cipher: always zero dst buffer on GCM authentication failure. 2016-01-10 19:03:42 +00:00
gcm.go crypto/cipher: always zero dst buffer on GCM authentication failure. 2016-01-10 19:03:42 +00:00
io.go
ofb_test.go
ofb.go
xor_test.go all: use bytes.Equal, bytes.Contains and strings.Contains 2016-04-01 02:05:01 +00:00
xor.go crypto/cipher: enable fastXORBytes on s390x 2016-04-14 18:26:09 +00:00