diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-02-20 13:34:04 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-02-23 11:29:07 +0100 |
commit | 4e236a7e153f85c7ada20243702c59843cac851b (patch) | |
tree | 5f2cebfc6c3e3351c7b62861db9ef15a4e1945d4 | |
parent | 57b096eb7a0b50601ea095f0a7a47fcd3c435ad9 (diff) | |
download | strongswan-4e236a7e153f85c7ada20243702c59843cac851b.tar.bz2 strongswan-4e236a7e153f85c7ada20243702c59843cac851b.tar.xz |
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.
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_crypter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_crypter.c b/src/libstrongswan/plugins/openssl/openssl_crypter.c index 07b96b320..c2478a4ed 100644 --- a/src/libstrongswan/plugins/openssl/openssl_crypter.c +++ b/src/libstrongswan/plugins/openssl/openssl_crypter.c @@ -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, |