EVP_CIPHER_get_iv_length

Return the IV length in bytes required by a cipher.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_get_iv_length(EVP_CIPHER const* cipher);

Return Value

IV length, or 0 if the cipher does not use an IV.

Parameters

NameDescription
cipherCipher method to query.