Documentation
¶
Overview ¶
Package crypto provides an AES-GCM helper for encrypting small at-rest payloads such as RSA private keys. Callers bring their own 32-byte master key (typically loaded from a secret store).
Index ¶
Constants ¶
View Source
const KeySize = 32
KeySize is the required master key length in bytes (AES-256).
Variables ¶
View Source
var ( ErrKeySize = errors.New("crypto: master key must be 32 bytes") ErrCiphertext = errors.New("crypto: ciphertext too short") )
Sentinel errors returned by Encrypt and Decrypt.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.