summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorRajesh Goel <rajegoel@cisco.com>2020-05-26 12:04:18 +0530
committerNeale Ranns <nranns@cisco.com>2020-05-26 08:48:28 +0000
commit99fa5f7229dafa98f5c4ff39776dc5db16f1abe7 (patch)
tree626a14ad5a2e4f1258878b28a8965bd48cea81f7 /src/plugins
parentec9ce338f05fb8bc90908ed17b8a0bc9eb8cd9f9 (diff)
ipsec: DES/3DES fixing the iv_len for openssl crypto
Type: fix Signed-off-by: Rajesh Goel <rajegoel@cisco.com> Change-Id: I8d128598b4c872f19b64c779c19b5908ba2f2c08 (cherry picked from commit d1d90f5951df93625594f1904cddd95880838ff0)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/crypto_openssl/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/crypto_openssl/main.c b/src/plugins/crypto_openssl/main.c
index 7362d6bd16e..5458e863a5b 100644
--- a/src/plugins/crypto_openssl/main.c
+++ b/src/plugins/crypto_openssl/main.c
@@ -72,7 +72,8 @@ openssl_ops_enc_cbc (vlib_main_t * vm, vnet_crypto_op_t * ops[], u32 n_ops,
int out_len;
int iv_len;
- if (op->op == VNET_CRYPTO_OP_3DES_CBC_ENC)
+ if (op->op == VNET_CRYPTO_OP_3DES_CBC_ENC
+ || op->op == VNET_CRYPTO_OP_DES_CBC_ENC)
iv_len = 8;
else
iv_len = 16;