Encrypt with a 128‐bit block cipher in CBC mode.

Synopsis

Declared in <openssl/modes.h>

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

Parameters

Name

Description

in

Input plaintext of length len.

out

Output ciphertext buffer of length len (may equal in).

len

Number of bytes to encrypt.

key

Cipher‐specific expanded key for block.

ivec

16‐byte IV; updated to the last ciphertext block on return.

block

Block‐encrypt function for the underlying cipher.

Created with MrDocs