Documentation ¶
Overview ¶
Package agcm provides the AES-GCM content encryption algorithm.
Index ¶
- func New128() enc.Algorithm
- func New192() enc.Algorithm
- func New256() enc.Algorithm
- type Algorithm
- func (alg *Algorithm) Decrypt(cek, iv, aad, ciphertext, authTag []byte) (plaintext []byte, err error)
- func (alg *Algorithm) Encrypt(cek, iv, aad, plaintext []byte) (ciphertext, authTag []byte, err error)
- func (alg *Algorithm) GenerateCEK() ([]byte, error)
- func (alg *Algorithm) GenerateIV() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algorithm ¶
type Algorithm struct {
// contains filtered or unexported fields
}
func (*Algorithm) GenerateCEK ¶ added in v0.0.3
func (*Algorithm) GenerateIV ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.