summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRajesh Goel <rajegoel@cisco.com>2020-05-26 12:04:18 +0530
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-05-26 11:30:18 +0000
commit61f368a80f73486ea70b59d7af9ad9b09889a690 (patch)
tree9090cc4af9a348810f0f739ca1a04479bf21bd8a /src
parent0f878da203b0725071fdfcc3648ed67d5ada2af7 (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')
-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 1dea1756df5..10d01a17380 100644
--- a/src/plugins/crypto_openssl/main.c
+++ b/src/plugins/crypto_openssl/main.c
@@ -76,7 +76,8 @@ openssl_ops_enc_cbc (vlib_main_t * vm, vnet_crypto_op_t * ops[],
int out_len = 0;
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;