mirror of https://github.com/golang/go.git
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> |
||
|---|---|---|
| .. | ||
| benchmark_test.go | ||
| cbc.go | ||
| cbc_aes_test.go | ||
| cfb.go | ||
| cfb_test.go | ||
| cipher.go | ||
| cipher_test.go | ||
| common_test.go | ||
| ctr.go | ||
| ctr_aes_test.go | ||
| ctr_test.go | ||
| example_test.go | ||
| gcm.go | ||
| gcm_test.go | ||
| io.go | ||
| ofb.go | ||
| ofb_test.go | ||
| xor.go | ||
| xor_test.go | ||