crypto/openssl: fix big numbers after computations
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Thu, 7 Feb 2019 10:54:39 +0000 (11:54 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 6 Mar 2019 16:30:43 +0000 (17:30 +0100)
commit990b180290203c32b8df9e1179f989270354cd13
tree7ac460bfced2b3135ba8b9d7329cb94e37c60841
parentab3dec55a56d6db3e0f7b8859d1bda31e1e43300
crypto/openssl: fix big numbers after computations

After performing mod exp and mod inv big numbers (BIGNUM) should
be cleared as data already is copied into op fields and this BNs would
very likely contain private information for unspecified amount of time
(duration of the session).

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>
Acked-by: Shally Verma <shallyv@marvell.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/openssl/rte_openssl_pmd.c