Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeySize = 32 NonceSize = 12 )
Variables ¶
View Source
var ( ErrEncrypt = errors.New("secret: encryption failed") ErrDecrypt = errors.New("secret: decryption failed") )
Functions ¶
func GenerateNonce ¶
GenerateNonce generates a new AES-GCM nonce.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.