Documentation ¶
Overview ¶
Package acbc provides the AES_CBC_HMAC_SHA2 content encryption algorithm.
Index ¶
- func New128CBC_HS256() enc.Algorithm
- func New192CBC_HS384() enc.Algorithm
- func New256CBC_HS512() 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 ¶
func New128CBC_HS256 ¶
func New192CBC_HS384 ¶
func New256CBC_HS512 ¶
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.