Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESCryptor ¶
type AESCryptor interface {
CBCEncrypt(plaintext []byte) ([]byte, error)
CBCDecrypt(ciphertext []byte) ([]byte, error)
GCMEncrypt(plaintext, iv, aad []byte) ([]byte, error)
GCMDecrypt(ciphertext, iv, aad []byte) ([]byte, error)
}
func NewAESCryptor ¶
func NewAESCryptor(key []byte) AESCryptor
Click to show internal directories.
Click to hide internal directories.