From: Fan Zhang <roy.fan.zhang@intel.com>
To: dev@dpdk.org
Cc: akhil.goyal@nxp.com
Subject: [dpdk-dev] [PATCH v5 2/3] test: add aesni-mb gmac test
Date: Wed, 19 Dec 2018 22:04:30 +0000 [thread overview]
Message-ID: <20181219220431.57710-3-roy.fan.zhang@intel.com> (raw)
In-Reply-To: <20181219220431.57710-1-roy.fan.zhang@intel.com>
This patch adds the GMAC test cases to AESNI-MB crypto unit test.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Damian Nowak <damianx.nowak@intel.com>
---
test/test/test_cryptodev.c | 15 +++++++++++++++
test/test/test_cryptodev_hash_test_vectors.h | 9 +++++++++
2 files changed, 24 insertions(+)
diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c
index 84065eb49..f437321ac 100644
--- a/test/test/test_cryptodev.c
+++ b/test/test/test_cryptodev.c
@@ -9228,6 +9228,7 @@ static struct unit_test_suite cryptodev_aesni_mb_testsuite = {
.setup = testsuite_setup,
.teardown = testsuite_teardown,
.unit_test_cases = {
+#if IMB_VERSION_NUM >= IMB_VERSION(0, 51, 0)
TEST_CASE_ST(ut_setup, ut_teardown,
test_AES_GCM_authenticated_encryption_test_case_1),
TEST_CASE_ST(ut_setup, ut_teardown,
@@ -9341,6 +9342,20 @@ static struct unit_test_suite cryptodev_aesni_mb_testsuite = {
TEST_CASE_ST(ut_setup, ut_teardown,
test_AES_GCM_authenticated_decryption_sessionless_test_case_1),
+ /** AES GMAC Authentication */
+ TEST_CASE_ST(ut_setup, ut_teardown,
+ test_AES_GMAC_authentication_test_case_1),
+ TEST_CASE_ST(ut_setup, ut_teardown,
+ test_AES_GMAC_authentication_verify_test_case_1),
+ TEST_CASE_ST(ut_setup, ut_teardown,
+ test_AES_GMAC_authentication_test_case_2),
+ TEST_CASE_ST(ut_setup, ut_teardown,
+ test_AES_GMAC_authentication_verify_test_case_2),
+ TEST_CASE_ST(ut_setup, ut_teardown,
+ test_AES_GMAC_authentication_test_case_3),
+ TEST_CASE_ST(ut_setup, ut_teardown,
+ test_AES_GMAC_authentication_verify_test_case_3),
+#endif /* IMB_VERSION_NUM >= IMB_VERSION(0, 51, 0) */
TEST_CASE_ST(ut_setup, ut_teardown, test_AES_chain_mb_all),
TEST_CASE_ST(ut_setup, ut_teardown, test_AES_cipheronly_mb_all),
diff --git a/test/test/test_cryptodev_hash_test_vectors.h b/test/test/test_cryptodev_hash_test_vectors.h
index a02dfb3c3..8964a3bac 100644
--- a/test/test/test_cryptodev_hash_test_vectors.h
+++ b/test/test/test_cryptodev_hash_test_vectors.h
@@ -5,6 +5,15 @@
#ifndef TEST_CRYPTODEV_HASH_TEST_VECTORS_H_
#define TEST_CRYPTODEV_HASH_TEST_VECTORS_H_
+#ifdef RTE_LIBRTE_PMD_AESNI_MB
+#include <intel-ipsec-mb.h>
+#endif
+
+#if !defined(IMB_VERSION_NUM)
+#define IMB_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + (c))
+#define IMB_VERSION_NUM IMB_VERSION(0, 49, 0)
+#endif
+
static const uint8_t plaintext_hash[] = {
"What a lousy earth! He wondered how many people "
"were destitute that same night even in his own "
--
2.13.6
next prev parent reply other threads:[~2018-12-19 22:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-15 17:24 [dpdk-dev] [PATCH] crypto/aesni_mb: add gmac support Fan Zhang
2018-12-11 14:24 ` [dpdk-dev] [PATCH v2] " Fan Zhang
2018-12-18 13:51 ` [dpdk-dev] [PATCH v3] " Fan Zhang
2018-12-18 15:22 ` Akhil Goyal
2018-12-19 21:42 ` [dpdk-dev] [PATCH v4 0/3] " Fan Zhang
2018-12-19 21:42 ` [dpdk-dev] [PATCH v4 1/3] " Fan Zhang
2018-12-19 21:42 ` [dpdk-dev] [PATCH v4 2/3] test: add aesni-mb gmac test Fan Zhang
2018-12-19 21:42 ` [dpdk-dev] [PATCH v4 3/3] doc: update release note and PMD information Fan Zhang
2018-12-19 22:04 ` [dpdk-dev] [PATCH v5 0/3] crypto/aesni_mb: add gmac support Fan Zhang
2018-12-19 22:04 ` [dpdk-dev] [PATCH v5 1/3] " Fan Zhang
2018-12-19 22:04 ` Fan Zhang [this message]
2018-12-19 22:04 ` [dpdk-dev] [PATCH v5 3/3] doc: update release note and pmd info Fan Zhang
2018-12-20 12:07 ` [dpdk-dev] [PATCH v6] crypto/aesni_mb: support AES-GMAC Fan Zhang
2019-01-09 22:15 ` De Lara Guarch, Pablo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181219220431.57710-3-roy.fan.zhang@intel.com \
--to=roy.fan.zhang@intel.com \
--cc=akhil.goyal@nxp.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).