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 d1d90f5951
)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user