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:
e4f0020
)
ipsec: DES/3DES fixing the iv_len for openssl crypto
48/27248/1
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 08:48:19 +0000
(08:48 +0000)
Type: fix
Signed-off-by: Rajesh Goel <rajegoel@cisco.com>
Change-Id: I8d128598b4c872f19b64c779c19b5908ba2f2c08
(cherry picked from commit
d1d90f5951df93625594f1904cddd95880838ff0
)
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
7362d6b
..
5458e86
100644
(file)
--- 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;