Documentation ¶
Overview ¶
Package aes256cbc implements Advanced Encryption Standard with a 256 bit key length, using Chain Block Cipher mode (AES-256-CBC).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decrypter ¶
type Decrypter struct {
// contains filtered or unexported fields
}
Decrypter will decrypt data using AES256CBC method
func NewDecrypter ¶
NewDecrypter create a new decrypter attaching the private key to it
func (Decrypter) Decrypt ¶
func (d Decrypter) Decrypt(data mc.EncryptedContent) (mc.PlainContent, error)
Decrypt data using recipient private key with AES in CBC mode.
type Encrypter ¶
type Encrypter struct {
// contains filtered or unexported fields
}
Encrypter will encrypt data using AES256CBC method
func NewEncrypter ¶
NewEncrypter create a new encrypter with crypto rand for reader and attaching the public key to the encrypter.
func (Encrypter) Encrypt ¶
func (e Encrypter) Encrypt(message mc.PlainContent) (mc.EncryptedContent, error)
Encrypt data using recipient public key with AES in CBC mode. Generate an ephemeral private key and IV.
Click to show internal directories.
Click to hide internal directories.