crypto/openssl: fix free of asymmetric crypto keys
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Mon, 1 Jul 2019 14:57:25 +0000 (16:57 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 13:28:14 +0000 (15:28 +0200)
commit77411bd6387b28e91eac1702c872712f09c62c4b
tree73bef96f9caaa806286179329dfc2886217ac312
parentb482a57863da77ba42d815f30067b22be7c83fae
crypto/openssl: fix free of asymmetric crypto keys

In case big number need to be freed, data it contains should
also be cleared before especially if it is critical data like
private keys.

Fixes: 3e9d6bd447fb ("crypto/openssl: add RSA and mod asym operations")
Cc: stable@dpdk.org
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/openssl/rte_openssl_pmd_ops.c