openssl: Return the proper IV length for OpenSSL crypters

For instance, the NULL cipher has a block size of 1 but an IV length
of 0.

Fixes #854.
This commit is contained in:
Tobias Brunner
2015-02-23 11:29:07 +01:00
parent 57b096eb7a
commit 4e236a7e15
@@ -135,7 +135,7 @@ METHOD(crypter_t, get_block_size, size_t,
METHOD(crypter_t, get_iv_size, size_t,
private_openssl_crypter_t *this)
{
return this->cipher->block_size;
return this->cipher->iv_len;
}
METHOD(crypter_t, get_key_size, size_t,