CRYPTO_cbc128_decrypt

Decrypt with a 128-bit block cipher in CBC mode.

Synopsis

Declared in <openssl/modes.h>

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

Parameters

NameDescription
inInput ciphertext of length len.
outOutput plaintext buffer of length len (may equal in).
lenNumber of bytes to decrypt.
keyCipher-specific expanded key for block.
ivec16-byte IV; updated to the last ciphertext block on return.
blockBlock-decrypt function for the underlying cipher.