[#CRYPTO_cts128_encrypt] = CRYPTO_cts128_encrypt :mrdocs: Encrypt with CS1 ciphertext stealing using a CBC encrypt function. == Synopsis Declared in `<openssl/modes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- size_t CRYPTO_cts128_encrypt( unsigned char const* in, unsigned char* out, size_t len, void const* key, unsigned char ivec[], xref:cbc128_f.adoc[cbc128_f] cbc); ---- == Return Value Number of ciphertext bytes written, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *in* | Input plaintext of length `len` (must be greater than 16). | *out* | Output ciphertext buffer of length `len.` | *len* | Number of plaintext bytes. | *key* | Cipher‐specific expanded key for `cbc.` | *ivec* | 16‐byte IV updated like CBC. | *cbc* | CBC‐mode encrypt function for the underlying cipher. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#