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:
@@ -135,7 +135,7 @@ METHOD(crypter_t, get_block_size, size_t,
|
|||||||
METHOD(crypter_t, get_iv_size, size_t,
|
METHOD(crypter_t, get_iv_size, size_t,
|
||||||
private_openssl_crypter_t *this)
|
private_openssl_crypter_t *this)
|
||||||
{
|
{
|
||||||
return this->cipher->block_size;
|
return this->cipher->iv_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(crypter_t, get_key_size, size_t,
|
METHOD(crypter_t, get_key_size, size_t,
|
||||||
|
|||||||
Reference in New Issue
Block a user