summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkash Saxena <akash.saxena@caviumnetworks.com>2018-10-25 10:01:01 +0000
committerAkhil Goyal <akhil.goyal@nxp.com>2018-11-02 12:25:39 +0100
commit6e5efb27b33f9c3b6478728ece5e89d80f7e8994 (patch)
tree51962b959f8b41c5063242bf3a142979254ed434 /test
parentfe1606e0138cdfd460a21cd3d5ac2a81884ee288 (diff)
downloaddpdk-6e5efb27b33f9c3b6478728ece5e89d80f7e8994.zip
dpdk-6e5efb27b33f9c3b6478728ece5e89d80f7e8994.tar.gz
dpdk-6e5efb27b33f9c3b6478728ece5e89d80f7e8994.tar.xz
test/crypto: remove redundant RSA verification
Change unit test app to check only for op->status = RTE_CRYPTO_OP_STATUS_SUCCESS/ERROR instead of calling rsa_verify(). as the cryptodev API is expected to return error incase of data mismatch. 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')
-rw-r--r--test/test/test_cryptodev_asym.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/test/test_cryptodev_asym.c b/test/test/test_cryptodev_asym.c
index 2fdfc1d..a899f99 100644
--- a/test/test/test_cryptodev_asym.c
+++ b/test/test/test_cryptodev_asym.c
@@ -153,10 +153,13 @@ test_rsa_sign_verify(void)
goto error_exit;
}
status = TEST_SUCCESS;
- int ret = 0;
- ret = rsa_verify(&rsaplaintext, result_op);
- if (ret)
+ if (result_op->status != RTE_CRYPTO_OP_STATUS_SUCCESS) {
+ RTE_LOG(ERR, USER1,
+ "line %u FAILED: %s",
+ __LINE__, "Failed to process asym crypto op");
status = TEST_FAILED;
+ goto error_exit;
+ }
error_exit: