mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[MISC] Fix comment dealing with aes implementation. (#791)
This commit is contained in:
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
Block a user