Encrypt with NIST CS2/CS3‐style ciphertext stealing using a CBC encrypt function.
Synopsis
Declared in <openssl/modes.h>
size_t
CRYPTO_nistcts128_encrypt(
unsigned char const* in,
unsigned char* out,
size_t len,
void const* key,
unsigned char ivec[],
cbc128_f cbc);
Return Value
Number of ciphertext bytes written, or 0 on error.
Parameters
Name |
Description |
in |
Input plaintext of length |
out |
Output ciphertext buffer of length |
len |
Number of plaintext bytes. |
key |
Cipher‐specific expanded key for |
ivec |
16‐byte IV updated like CBC. |
cbc |
CBC‐mode encrypt function for the underlying cipher. |
Created with MrDocs