EVP_CIPHER_CTX_get_iv_length

Return the IV length in bytes for the cipher currently set on ctx.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_get_iv_length(EVP_CIPHER_CTX const* ctx);

Return Value

IV length in bytes, or 0 if the cipher uses no IV / on error.

Parameters

NameDescription
ctxInitialised cipher context.