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:
1 parent
57b096eb7a
commit
4e236a7e15
1 file changed
+1
-1
@@ -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