[#AES_cbc_encrypt] = AES_cbc_encrypt :mrdocs: Encrypt or decrypt data with AES in CBC mode (deprecated; prefer EVP). == Synopsis Declared in `<openssl/aes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] void AES_cbc_encrypt( unsigned char const* in, unsigned char* out, size_t length, xref:AES_KEY.adoc[AES_KEY] const* key, unsigned char* ivec, int const enc); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Parameters [cols="1,4"] |=== | Name| Description | *in* | Input bytes of length `length.` | *out* | Output buffer of length `length` (may equal `in).` | *length* | Number of bytes to process (should be a multiple of AES_BLOCK_SIZE). | *key* | Expanded AES key schedule matching `enc.` | *ivec* | 16‐byte IV updated in place to the last ciphertext block. | *enc* | AES_ENCRYPT to encrypt, or AES_DECRYPT to decrypt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#