[MISC] Fix comment dealing with aes implementation. (#791)
parent
6f116202f4
commit
94a63edabb
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue