AES_cbc_encrypt

Encrypt or decrypt data with AES in CBC mode (deprecated; prefer EVP).

Synopsis

Declared in <openssl/aes.h>

[[deprecated]]
void
AES_cbc_encrypt(
    unsigned char const* in,
    unsigned char* out,
    size_t length,
    AES_KEY const* key,
    unsigned char* ivec,
    int const enc);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
inInput bytes of length length.
outOutput buffer of length length (may equal in).
lengthNumber of bytes to process (should be a multiple of AES_BLOCK_SIZE).
keyExpanded AES key schedule matching enc.
ivec16-byte IV updated in place to the last ciphertext block.
encAES_ENCRYPT to encrypt, or AES_DECRYPT to decrypt.