[MISC] Fix comment dealing with aes implementation. (#791)

pull/794/head^2
Clément Michaud 2020-03-29 00:07:05 +01:00 committed by GitHub
parent 6f116202f4
commit 94a63edabb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.