summaryrefslogtreecommitdiff
path: root/test/test/test_cryptodev_asym.c
diff options
context:
space:
mode:
authorAkash Saxena <akash.saxena@caviumnetworks.com>2018-10-25 10:00:56 +0000
committerAkhil Goyal <akhil.goyal@nxp.com>2018-11-02 12:25:39 +0100
commitfe1606e0138cdfd460a21cd3d5ac2a81884ee288 (patch)
tree34e5103de7f7c5aeb61ccc303c324dd2d10c5f4c /test/test/test_cryptodev_asym.c
parentc4160d303026ed11707e4a3a7a2e12b9be863d5a (diff)
downloaddpdk-fe1606e0138cdfd460a21cd3d5ac2a81884ee288.zip
dpdk-fe1606e0138cdfd460a21cd3d5ac2a81884ee288.tar.gz
dpdk-fe1606e0138cdfd460a21cd3d5ac2a81884ee288.tar.xz
crypto/openssl: fix RSA verify operation
In lib cryptodev, RSA verify operation inputs plain message text and corresponding signature and expected to return RTE_CRYPTO_OP_STATUS_SUCCESS/FAILURE on a signature match/mismatch. Current OpenSSL PMD RSA verify implementation overrides application passed sign input by decrypted output which isn't expected. This patch addresses this issue in OpenSSL PMD. Now, OpenSSL PMD use tmp buffer to pass to OpenSSL sign API and memcmp output with original plain text to verify signature match. Set op->status = RTE_CRYPTO_OP_STATUS_ERROR on signature mismatch. Fixes: 3e9d6bd447fb ("crypto/openssl: add RSA and mod asym operations") Cc: stable@dpdk.org Signed-off-by: Ayuj Verma <ayuj.verma@caviumnetworks.com> Signed-off-by: Akash Saxena <akash.saxena@caviumnetworks.com> Signed-off-by: Shally Verma <shally.verma@caviumnetworks.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
Diffstat (limited to 'test/test/test_cryptodev_asym.c')
0 files changed, 0 insertions, 0 deletions