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.