Decrypt CS1 ciphertext stealing using a CBC decrypt function.
Declared in <openssl/modes.h>
size_t
CRYPTO_cts128_decrypt(
unsigned char const* in,
unsigned char* out,
size_t len,
void const* key,
unsigned char ivec[],
cbc128_f cbc);
Number of plaintext bytes written, or 0 on error.
| Name | Description |
|---|---|
| in | Input ciphertext of length len (must be greater than 16). |
| out | Output plaintext buffer of length len. |
| len | Number of ciphertext bytes. |
| key | Cipher-specific expanded key for cbc. |
| ivec | 16-byte IV updated like CBC. |
| cbc | CBC-mode decrypt function for the underlying cipher. |