mbox series

[v1,0/2] Changes for RSA verify operation in OpenSSL PMD and unit tests

Message ID 1539265391-9606-1-git-send-email-akash.saxena@caviumnetworks.com (mailing list archive)
Headers
Series Changes for RSA verify operation in OpenSSL PMD and unit tests |

Message

Akash Saxena Oct. 11, 2018, 1:43 p.m. UTC
  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 store sign operation decrypted output and test application to 
only check for STATUS_SUCCESS/FAILURE.

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>

---
Akash Saxena (2):
  crypto/openssl: changes for RSA verify operation
  test/crypto: check for operation status only at output of RSA verify
    crypto operation

 drivers/crypto/openssl/rte_openssl_pmd.c | 20 +++++++++++++-------
 test/test/test_cryptodev_asym.c          |  9 ++++++---
 2 files changed, 19 insertions(+), 10 deletions(-)