]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: execute AES-GCM decryption example
authorTilman Dilo <tilman.dilo@gmail.com>
Mon, 9 May 2016 21:37:07 +0000 (23:37 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 9 May 2016 23:03:55 +0000 (23:03 +0000)
commit9af83462c6f432b77a846a24b4d8efae9bdf0567
tree96e83325bec69144606926dc2ae5327d68e7d9f9
parentd88261fb6581106e4e7d8d6c63f0e33c2a24361e
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>
src/crypto/cipher/example_test.go