summaryrefslogtreecommitdiff
path: root/libgo/go/crypto/cipher/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/crypto/cipher/example_test.go')
-rw-r--r--libgo/go/crypto/cipher/example_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/crypto/cipher/example_test.go b/libgo/go/crypto/cipher/example_test.go
index 9abe782bca5..956cc2eaca6 100644
--- a/libgo/go/crypto/cipher/example_test.go
+++ b/libgo/go/crypto/cipher/example_test.go
@@ -14,7 +14,7 @@ import (
"os"
)
-func ExampleNewGCMEncrypter() {
+func ExampleNewGCM_encrypt() {
// The key argument should be the AES key, either 16 or 32 bytes
// to select AES-128 or AES-256.
key := []byte("AES256Key-32Characters1234567890")
@@ -40,7 +40,7 @@ func ExampleNewGCMEncrypter() {
fmt.Printf("%x\n", ciphertext)
}
-func ExampleNewGCMDecrypter() {
+func ExampleNewGCM_decrypt() {
// The key argument should be the AES key, either 16 or 32 bytes
// to select AES-128 or AES-256.
key := []byte("AES256Key-32Characters1234567890")