AES256CBCEncrypt::Encrypt

Encrypt a buffer of arbitrary length in CBC mode.

Synopsis

Declared in <crypto/aes.h>

int
Encrypt(
    unsigned char const* data,
    int size,
    unsigned char* out) const;

Return Value

The number of ciphertext bytes written.

Parameters

NameDescription
dataThe plaintext to encrypt.
sizeThe number of plaintext bytes.
outOutput buffer receiving the ciphertext.