diff options
| author | Tilman Dilo <tilman.dilo@gmail.com> | 2016-05-09 23:37:07 +0200 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-05-09 23:03:55 +0000 |
| commit | 9af83462c6f432b77a846a24b4d8efae9bdf0567 (patch) | |
| tree | 96e83325bec69144606926dc2ae5327d68e7d9f9 /src/encoding/json/encode.go | |
| parent | d88261fb6581106e4e7d8d6c63f0e33c2a24361e (diff) | |
| download | go-9af83462c6f432b77a846a24b4d8efae9bdf0567.tar.xz | |
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>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
