Skip to content

Commit

Permalink
ipsec: DES/3DES fixing the iv_len for openssl crypto
Browse files Browse the repository at this point in the history
Type: fix

Signed-off-by: Rajesh Goel <rajegoel@cisco.com>
Change-Id: I8d128598b4c872f19b64c779c19b5908ba2f2c08
  • Loading branch information
rajeshgoel9 authored and Neale Ranns committed May 26, 2020
1 parent a4dac8a commit d1d90f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/crypto_openssl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1d90f5

Please sign in to comment.