crypto/openssl: fix CCM processing 0 length source
authorCiara Power <ciara.power@intel.com>
Mon, 23 Aug 2021 12:47:14 +0000 (12:47 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Mon, 6 Sep 2021 19:54:57 +0000 (21:54 +0200)
commit589f5e033d0d8489e0d4bf2f54332febf483f764
tree2160eff8725054710fb0af21dc2198527fa8beea
parent9772dcf7c135d2fc825973ba858e150afceb3dee
crypto/openssl: fix CCM processing 0 length source

When given a source length 0 for CCM, the encryption and decryption
functions did not call the EVP_ENCRYPTUPDATE/EVP_DECRYPTUPDATE functions
with a src and dst, causing some FIPS validation failures for testcases
with PLen=0:

process_openssl_auth_encryption_ccm() line 1131:
Process openssl auth encryption ccm failed

Fixes: 1a4998dc4d94 ("crypto/openssl: support AES-CCM")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/openssl/rte_openssl_pmd.c