From: Tobias Brunner Date: Fri, 20 Feb 2015 12:34:04 +0000 (+0100) Subject: openssl: Return the proper IV length for OpenSSL crypters X-Git-Tag: 5.3.0dr1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e236a7e153f85c7ada20243702c59843cac851b;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/src/libstrongswan/plugins/openssl/openssl_crypter.c b/src/libstrongswan/plugins/openssl/openssl_crypter.c index 07b96b3200..c2478a4ed9 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,