Decrypt NIST CS2/CS3‐style ciphertext stealing using a block decrypt function.

Synopsis

Declared in <openssl/modes.h>

size_t
CRYPTO_nistcts128_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

Name

Description

in

Input ciphertext of length len (must be at least 16).

out

Output plaintext buffer of length len.

len

Number of ciphertext bytes.

key

Cipher‐specific expanded key for block.

ivec

16‐byte IV updated like CBC.

block

Block‐decrypt function for the underlying cipher.

Created with MrDocs