From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 92271A034C; Fri, 19 Aug 2022 11:46:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 826B940A7B; Fri, 19 Aug 2022 11:46:30 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id F1D2C4067B for ; Fri, 19 Aug 2022 11:46:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660902389; x=1692438389; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iDsn3S0qneqB/zam7AbWC400oKgWt5IR+KI6pcxekEQ=; b=CCdadoRrvBdiQDFhKWE2yQzTtpO5zZR3FUP0Z/+uPfKhdhEUFxIA8JT+ JETXjE80E0WjDlpSOGpsjcEVp2etYbUae8iLkBBSiIj8nlvp1xfPWF/JT DZDV6MDi68eJEC1wQOIEeHKD2rXfz8W+HKddFhqOxU4rQRs5Jhu1V2sUe lyM0bfzXpTRBq1/VMPwV7upNc2gqI2nxlvHtzaaC2CrNaMU51rvgnnM+h thPin9u+HBftitf+VBQt9cgbtuc8AFMhJM0ijxky/6HonHxV8h8Rt6otY t/GO6mFUpD9YzgSSNgiKICcp154IkCdHtuf2CC4rck6lAJ+bYMNsisz3A Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10443"; a="291735153" X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="291735153" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2022 02:46:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="697508619" Received: from silpixa00400883.ir.intel.com ([10.243.22.74]) by FMSMGA003.fm.intel.com with ESMTP; 19 Aug 2022 02:46:26 -0700 From: Brian Dooley To: Fan Zhang , Brian Dooley Cc: dev@dpdk.org, gmuthukrishn@marvell.com, gakhil@marvell.com, kai.ji@intel.com Subject: [PATCH v1] examples/fips_validation: add parsing for AES GMAC Date: Fri, 19 Aug 2022 09:46:08 +0000 Message-Id: <20220819094608.7874-1-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Added functionality to parse algorithm for AES GMAC test Signed-off-by: Brian Dooley --- examples/fips_validation/fips_validation.c | 2 ++ examples/fips_validation/fips_validation.h | 1 + examples/fips_validation/main.c | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index 12b9b03f56..5c7ecce412 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -458,6 +458,8 @@ fips_test_parse_one_json_vector_set(void) /* Vector sets contain the algorithm type, and nothing else we need. */ if (strstr(algo_str, "AES-GCM")) info.algo = FIPS_TEST_ALGO_AES_GCM; + else if (strstr(algo_str, "AES-GMAC")) + info.algo = FIPS_TEST_ALGO_AES_GMAC; else if (strstr(algo_str, "HMAC")) info.algo = FIPS_TEST_ALGO_HMAC; else if (strstr(algo_str, "CMAC")) diff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h index 5c1abcbd91..24edab68da 100644 --- a/examples/fips_validation/fips_validation.h +++ b/examples/fips_validation/fips_validation.h @@ -36,6 +36,7 @@ enum fips_test_algorithms { FIPS_TEST_ALGO_AES = 0, FIPS_TEST_ALGO_AES_CBC, FIPS_TEST_ALGO_AES_GCM, + FIPS_TEST_ALGO_AES_GMAC, FIPS_TEST_ALGO_AES_CMAC, FIPS_TEST_ALGO_AES_CCM, FIPS_TEST_ALGO_AES_XTS, diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index 8bd5a66889..070a42e8dd 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -1817,6 +1817,11 @@ init_test_ops(void) else test_ops.test = fips_generic_test; break; + case FIPS_TEST_ALGO_AES_GMAC: + test_ops.prepare_op = prepare_auth_op; + test_ops.prepare_xform = prepare_gmac_xform; + test_ops.test = fips_generic_test; + break; case FIPS_TEST_ALGO_AES_GCM: test_ops.prepare_op = prepare_aead_op; test_ops.prepare_xform = prepare_gcm_xform; @@ -1994,6 +1999,7 @@ fips_test_one_test_group(void) json_object_set_new(json_info.json_write_group, "tests", write_tests); switch (info.algo) { + case FIPS_TEST_ALGO_AES_GMAC: case FIPS_TEST_ALGO_AES_GCM: ret = parse_test_gcm_json_init(); break; -- 2.25.1