CRYPTO_cts128_decrypt_block

Decrypt CS1 ciphertext stealing using a single-block decrypt/encrypt pair via block.

Synopsis

Declared in <openssl/modes.h>

size_t
CRYPTO_cts128_decrypt_block(
    unsigned char const* in,
    unsigned char* out,
    size_t len,
    void const* key,
    unsigned char ivec[],
    block128_f block);

Return Value

Number of plaintext bytes written, or 0 on error.

Parameters

NameDescription
inInput ciphertext of length len (must be greater than 16).
outOutput plaintext buffer of length len.
lenNumber of ciphertext bytes.
keyCipher-specific expanded key for block.
ivec16-byte IV updated like CBC.
blockBlock cipher function used by the CTS decrypt path.