[#CAST_cbc_encrypt] = CAST_cbc_encrypt :mrdocs: Encrypt or decrypt data with CAST in CBC mode (deprecated; prefer EVP). == Synopsis Declared in `<openssl/cast.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] void CAST_cbc_encrypt( unsigned char const* in, unsigned char* out, long length, xref:CAST_KEY.adoc[CAST_KEY] const* ks, unsigned char* iv, int 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. | *ks* | Expanded CAST key from CAST_set_key(). | *iv* | 8‐byte IV updated in place to the last ciphertext block. | *enc* | CAST_ENCRYPT to encrypt, or CAST_DECRYPT to decrypt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#