From: Arek Kusztal Date: Thu, 13 Oct 2016 10:03:46 +0000 (+0100) Subject: app/test: add corrupted data for qat X-Git-Tag: spdx-start~5426 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7013c57f4ab97833bfbf5aad12d21c42b527c732;p=dpdk.git app/test: add corrupted data for qat This commit adds tests with corrupted data to the Intel QuickAssist Technology tests suite in test_cryptodev.c Signed-off-by: Arek Kusztal Acked-by: Deepak Kumar Jain --- diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 7d0389903f..c7e88c4dea 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -6161,6 +6161,20 @@ static struct unit_test_suite cryptodev_qat_testsuite = { TEST_CASE_ST(ut_setup, ut_teardown, test_kasumi_cipher_auth_test_case_1), + /** Negative tests */ + TEST_CASE_ST(ut_setup, ut_teardown, + authentication_verify_HMAC_SHA1_fail_data_corrupt), + TEST_CASE_ST(ut_setup, ut_teardown, + authentication_verify_HMAC_SHA1_fail_tag_corrupt), + TEST_CASE_ST(ut_setup, ut_teardown, + authentication_verify_AES128_GMAC_fail_data_corrupt), + TEST_CASE_ST(ut_setup, ut_teardown, + authentication_verify_AES128_GMAC_fail_tag_corrupt), + TEST_CASE_ST(ut_setup, ut_teardown, + auth_decryption_AES128CBC_HMAC_SHA1_fail_data_corrupt), + TEST_CASE_ST(ut_setup, ut_teardown, + auth_decryption_AES128CBC_HMAC_SHA1_fail_tag_corrupt), + TEST_CASES_END() /**< NULL terminate unit test array */ } };