CRYPTO_nistcts128_decrypt

Decrypt NIST CS2/CS3-style ciphertext stealing using a CBC decrypt function.

Synopsis

Declared in <openssl/modes.h>

size_t
CRYPTO_nistcts128_decrypt(
    unsigned char const* in,
    unsigned char* out,
    size_t len,
    void const* key,
    unsigned char ivec[],
    cbc128_f cbc);

Return Value

Number of plaintext bytes written, or 0 on error.

Parameters

NameDescription
inInput ciphertext of length len (must be at least 16).
outOutput plaintext buffer of length len.
lenNumber of ciphertext bytes.
keyCipher-specific expanded key for cbc.
ivec16-byte IV updated like CBC.
cbcCBC-mode decrypt function for the underlying cipher.