EVP_CIPHER_CTX_get_original_iv

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

NameDescription
ctxCipher context previously initialized with an IV.
bufDestination buffer for the IV bytes.
lenCapacity of buf in bytes (must be at least the IV length).