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 64929A034C; Wed, 29 Jun 2022 11:52:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DEBF42684; Wed, 29 Jun 2022 11:52:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 1A79E41138 for ; Wed, 29 Jun 2022 11:52:41 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25T3s2oQ030838; Wed, 29 Jun 2022 02:52:41 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=aNGqdEUAzac6L8nekJfufXGOlNHxJIA/svwHEOg2vmY=; b=a9B3m68ExT/caP5MkTiUVhAZD3llYHhEZE6j+u7RXRbDQ533CQ1XiXviVBhyy+ngjvgV iG61eYelvXpBjqcuL2pAUszC1aQmGgP8MPibbEIn0ZL8aZIOZm8RcRv64ZY9uS0AcbgR 9wVTPMKcZxE5b4U85qq2Ce0v4LPtBMxOS8wrQLdH2hT6IerMU0cfpzjy1p0EWAd7J8Up vA3x/3rqI+ecePgYlBrNJh+KGleU67Yo1vnsZocKKiyUMfG5qwjUmLbyHLaC5mdlmPlW 83uyHG06E9rB49y/Jma6UXszHh3mdqsHblEIhKWZ6XVVSu4Mj7+VHgVk3HCEO6hBB+/q tA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3h0f859a03-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 Jun 2022 02:52:41 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 29 Jun 2022 02:52:39 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 29 Jun 2022 02:52:39 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id 809BF3F7097; Wed, 29 Jun 2022 02:52:37 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: Fan Zhang , Brian Dooley , Anoob Joseph , "Archana Muniganti" , Jerin Jacob , Gowrishankar Muthukrishnan Subject: [PATCH v3 1/3] examples/fips_validation: add aes_cbc specific enum Date: Wed, 29 Jun 2022 15:22:30 +0530 Message-ID: <2dafd9d3e4bd8e5a23e7d0db4b86eaae59b63a65.1656495592.git.gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: If0n1Fpce5p3sztdwFZz2BgjeCetPunB X-Proofpoint-ORIG-GUID: If0n1Fpce5p3sztdwFZz2BgjeCetPunB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-28_11,2022-06-28_01,2022-06-22_01 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 Add algorithm enum specifically for AES_CBC instead of relying on AES as such. Fixes: 8b8546aaedf ("examples/fips_validation: add parsing for AES-CBC") Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Fan Zhang --- examples/fips_validation/fips_validation.c | 2 +- examples/fips_validation/fips_validation.h | 1 + examples/fips_validation/main.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index 324abccb14..68b5572db2 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -463,7 +463,7 @@ fips_test_parse_one_json_vector_set(void) else if (strstr(algo_str, "CMAC")) info.algo = FIPS_TEST_ALGO_AES_CMAC; else if (strstr(algo_str, "AES-CBC")) - info.algo = FIPS_TEST_ALGO_AES; + info.algo = FIPS_TEST_ALGO_AES_CBC; else return -EINVAL; diff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h index 69d738b718..819236983d 100644 --- a/examples/fips_validation/fips_validation.h +++ b/examples/fips_validation/fips_validation.h @@ -34,6 +34,7 @@ enum fips_test_algorithms { FIPS_TEST_ALGO_AES = 0, + FIPS_TEST_ALGO_AES_CBC, FIPS_TEST_ALGO_AES_GCM, FIPS_TEST_ALGO_AES_CMAC, FIPS_TEST_ALGO_AES_CCM, diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index ceabea788e..9c4951595d 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -1781,6 +1781,7 @@ static int init_test_ops(void) { switch (info.algo) { + case FIPS_TEST_ALGO_AES_CBC: case FIPS_TEST_ALGO_AES: test_ops.prepare_op = prepare_cipher_op; test_ops.prepare_xform = prepare_aes_xform; -- 2.25.1