Versions in this module Expand all Collapse all v0 v0.5.0 Apr 28, 2024 Changes in this version + var ErrAESGCMDecrypt = errors.New("ErrAESGCMDecrypt") + var ErrAESGCMEncrypt = errors.New("ErrAESGCMEncrypt") + var ErrCreateAESCypher = errors.New("ErrCreateAESCypher") + var ErrCreateAESGCM = errors.New("ErrCreateAESGCM") + var ErrCypherTestIsTooShort = errors.New("ErrCypherTestIsTooShort") + func RandomBytes(n int) ([]byte, error) + type AesGcmCypher struct + func NewAesGcmCypher(key string) (*AesGcmCypher, error) + func (c *AesGcmCypher) Decrypt(ct []byte) ([]byte, error) + func (c *AesGcmCypher) Encrypt(pt []byte) ([]byte, error) + type Cipher interface + Decrypt func([]byte) ([]byte, error) + Encrypt func([]byte) ([]byte, error)