Return a pointer to the IV stored in a cipher context (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
unsigned char const*
EVP_CIPHER_CTX_iv(EVP_CIPHER_CTX const* ctx);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Description

Prefer EVP_CIPHER_CTX_get_updated_iv() / OSSL_PARAM queries for new code.

Return Value

Internal IV buffer (do not free), or NULL if unavailable.

Parameters

Name

Description

ctx

Cipher context to query.

Created with MrDocs