Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a4dac8a
)
ipsec: DES/3DES fixing the iv_len for openssl crypto
39/27239/2
author
Rajesh Goel
<rajegoel@cisco.com>
Tue, 26 May 2020 06:34:18 +0000
(12:04 +0530)
committer
Neale Ranns
<nranns@cisco.com>
Tue, 26 May 2020 07:44:27 +0000
(07:44 +0000)
Type: fix
Signed-off-by: Rajesh Goel <rajegoel@cisco.com>
Change-Id: I8d128598b4c872f19b64c779c19b5908ba2f2c08
src/plugins/crypto_openssl/main.c
patch
|
blob
|
history
diff --git
a/src/plugins/crypto_openssl/main.c
b/src/plugins/crypto_openssl/main.c
index
1dea175
..
10d01a1
100644
(file)
--- 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;