From 94a63edabbf1a585d473b3a2972705fbe902d46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Michaud?= Date: Sun, 29 Mar 2020 00:07:05 +0100 Subject: [PATCH] [MISC] Fix comment dealing with aes implementation. (#791) --- internal/session/encrypting_serializer.go | 3 --- internal/utils/aes.go | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/session/encrypting_serializer.go b/internal/session/encrypting_serializer.go index f54bae6b8..7117f37d4 100644 --- a/internal/session/encrypting_serializer.go +++ b/internal/session/encrypting_serializer.go @@ -8,9 +8,6 @@ import ( "github.com/fasthttp/session" ) -// The implementation of Encode and Decode method comes from -// https://github.com/gtank/cryptopasta/blob/master/hash.go - // EncryptingSerializer a serializer encrypting the data with AES-GCM with 256-bit keys. type EncryptingSerializer struct { key [32]byte diff --git a/internal/utils/aes.go b/internal/utils/aes.go index a137aaf3b..2cfb64811 100644 --- a/internal/utils/aes.go +++ b/internal/utils/aes.go @@ -8,6 +8,9 @@ import ( "io" ) +// The implementation of Encrypt and Decrypt methods comes from +// https://github.com/gtank/cryptopasta + // Encrypt encrypts data using 256-bit AES-GCM. This both hides the content of // the data and provides a check that it hasn't been altered. Output takes the // form nonce|ciphertext|tag where '|' indicates concatenation.