Documentation
¶
Overview ¶
Package AESGCM implement AES encryption with GCM authentication according to the paper at ref: https://eprint.iacr.org/2015/102.pdf
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESGCM ¶
type AESGCM struct {
// contains filtered or unexported fields
}
AESGCM implements the Encrypt/Decrypt methods using AES-GCM: https://eprint.iacr.org/2015/102.pdf
func New ¶
New makes a new AES/GCM Cryptor. In order to select AES-256, a 32-byte key is enforced.
ref: https://github.com/gtank/cryptopasta/blob/master/encrypt.go
func (*AESGCM) Decrypt ¶
Decrypt decrypts data using 256-bit AES-GCM. This both hides the content of the data and provides a check that it hasn't been altered. Expects input form nonce|ciphertext|tag where '|' indicates concatenation.
Click to show internal directories.
Click to hide internal directories.