Copy the original IV from a cipher context into buf.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_get_original_iv(
    EVP_CIPHER_CTX* ctx,
    void* buf,
    size_t len);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

Cipher context previously initialized with an IV.

buf

Destination buffer for the IV bytes.

len

Capacity of buf in bytes (must be at least the IV length).

Created with MrDocs