Documentation
¶
Overview ¶
Package aesgcm provides an AES-256-GCM implementation of the cipher.Cipher interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct{}
Cipher implements cipher.Cipher using AES-256-GCM. Ciphertext format: [12-byte nonce][ciphertext][16-byte GCM auth tag]. Safe for concurrent use.
func (*Cipher) Decrypt ¶
Decrypt decrypts ciphertext with the given key using AES-256-GCM. The key must be exactly 32 bytes. Expects [nonce][ciphertext][tag] format.
Click to show internal directories.
Click to hide internal directories.