[dpdk-dev] [PATCH v1 1/2] crypto/openssl: changes for RSA verify operation

2018-10-11 Thread Akash Saxena
Add tmp buffer to pass to OpenSSL sign API and memcmp output with original plain text to verify signature match. Set op->status = RTE_CRYPO_OP_STATUS_ERROR on signature mismatch. Signed-off-by: Ayuj Verma Signed-off-by: Akash Saxena Signed-off-by: Shally Verma --- drivers/crypto/open

[dpdk-dev] [PATCH v1 0/2] Changes for RSA verify operation in OpenSSL PMD and unit tests

2018-10-11 Thread Akash Saxena
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 Signed-off-by: Akash Saxena Signed-off-by: Shally Verma ---

[dpdk-dev] [PATCH v1 2/2] test/crypto: remove data verification at rsa verify operation

2018-10-11 Thread Akash Saxena
Change unit test app to check only for op->status = RTE_CRYPTO_OP_STATUS_SUCCESS/ERROR instead of calling rsa_verify(). Signed-off-by: Ayuj Verma Signed-off-by: Shally Verma --- test/test/test_cryptodev_asym.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/tes

[dpdk-dev] [PATCH v2 0/2] Changes for RSA verify operation in OpenSSL PMD and unit tests

2018-10-25 Thread Akash Saxena
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. --- Akash Saxena (2): crypto/op

[dpdk-dev] [PATCH v2 2/2] test/crypto: remove data verification at rsa verify operation

2018-10-25 Thread Akash Saxena
Change unit test app to check only for op->status = RTE_CRYPTO_OP_STATUS_SUCCESS/ERROR instead of calling rsa_verify(). Signed-off-by: Ayuj Verma Signed-off-by: Akash Saxena Signed-off-by: Shally Verma --- test/test/test_cryptodev_asym.c | 9 ++--- 1 file changed, 6 insertions(+)

[dpdk-dev] [PATCH v2 1/2] crypto/openssl: changes for RSA verify operation

2018-10-25 Thread Akash Saxena
Add tmp buffer to pass to OpenSSL sign API and memcmp output with original plain text to verify signature match. Set op->status = RTE_CRYPO_OP_STATUS_ERROR on signature mismatch. Signed-off-by: Ayuj Verma Signed-off-by: Akash Saxena Signed-off-by: Shally Verma --- drivers/crypto/open

[dpdk-dev] [PATCH] crypto/openssl: Remove if condition prior to BN_free

2018-11-23 Thread Akash Saxena
Remove if() condition prior to calling BN_free() as BN_free(a) does nothing if a is NULL. Signed-off-by: Akash Saxena Signed-off-by: Shally Verma --- drivers/crypto/openssl/rte_openssl_pmd.c | 21 + drivers/crypto/openssl/rte_openssl_pmd_ops.c | 45