From 543ed4c8508c15b29933f2425b78db4b79ed27bb Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 23 Dec 2020 01:41:19 +0800 Subject: [PATCH] fix comment --- pkg/utils/strings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/strings.go b/pkg/utils/strings.go index 66053724..8b417277 100644 --- a/pkg/utils/strings.go +++ b/pkg/utils/strings.go @@ -139,7 +139,7 @@ func AESGCMEncrypt(key []byte, plainText []byte) ([]byte, error) { return result, nil } -// AESGCMEncrypt returns a decrypted string by aes-gcm +// AESGCMDecrypt returns a decrypted string by aes-gcm func AESGCMDecrypt(key []byte, ciphertext []byte) ([]byte, error) { block, err := aes.NewCipher(key)