]> Cypherpunks repositories - gostls13.git/commit
crypto/cipher: Add AES-GCM encryption and decryption example
authorKevin Kirsche <kev.kirsche@gmail.com>
Fri, 22 Jan 2016 16:04:07 +0000 (11:04 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 26 Jan 2016 15:58:42 +0000 (15:58 +0000)
commit980364b7a2425657a5c66dcad4e52f6cd3723a77
tree931a4342cbdc50acbd92f3a9685820f7ea04a11c
parent830143fa3dd344a72d5c00643983ab62abb88a72
crypto/cipher: Add AES-GCM encryption and decryption example

Add example of how to use the aes package to
implement AES encryption and decryption
within an application.

Per feedback, use more secure AES-GCM implementation as an
example in crypto/cipher instead of AES directly.

Change-Id: I84453ebb18e0bc79344a24171a031ec0d7ccec2e
Reviewed-on: https://go-review.googlesource.com/18803
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/cipher/example_test.go