From patchwork Thu Jul 1 06:58:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: danat@marvell.com X-Patchwork-Id: 95099 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4FEA9A0A0C; Thu, 1 Jul 2021 08:59:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B6CE412A2; Thu, 1 Jul 2021 08:59:02 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B328F4067C; Thu, 1 Jul 2021 08:59:00 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1616tGED016825; Wed, 30 Jun 2021 23:59:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=djVF+UPzVKJXGEV/Qyr0U/U59AlhXvy5eAvkNwI6aho=; b=JOhNeB81joDferaKC6+p9AYu4mzvUyit/nItzbv0pdARr1QXm3MowcDA3DOJaMDDaEdE F3tUBxyqhP4rtChWYdSRA2iOYKbla8O+SA1lM2pWYsr7+r/XKajNvcW8yrXFGxAocjiQ DgqdlEH5kQbuGjjD+/S6zzB6BBZisMM3sANFHpPpiwDYJbu8BFe2KVcNJ+z2gkHFLtK7 t9vWWCpsueYNz5bw4Jdl0swzz7yFB87Ujmszi1WZH3Ra+G0Pzf3eqOT2LLGp368L/7QC mqTFEEOB5cCfu5rsyxR54//HkoIeOxPRg4/Aj8MAUx9o1l2JZBeerWbYd29hQg9Zk6dm Ow== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 39gxj0j80j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 30 Jun 2021 23:59:00 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 30 Jun 2021 23:58:57 -0700 Received: from jupiter077.il.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 30 Jun 2021 23:58:56 -0700 From: To: CC: , , , , Date: Thu, 1 Jul 2021 09:58:53 +0300 Message-ID: <20210701065853.31052-1-danat@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-GUID: rG8Kk0N1wmYhWIc6Iyh8NvUzBtdwXW8y X-Proofpoint-ORIG-GUID: rG8Kk0N1wmYhWIc6Iyh8NvUzBtdwXW8y X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-01_01:2021-06-30, 2021-07-01 signatures=0 Subject: [dpdk-dev] [PATCH] crypto/mvsam: fix capabilities for crypto algorithms 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 Sender: "dev" From: Michael Shamis Increased AAD max size up to 64B and allowed AAD increment step 1B according to EIP197 token HW limitation. In addition, some capabilities were found incorrect due to running FIPS tests. The patch fix the capabilities. Fixes: 8a61c83af2f ("crypto/mrvl: add mrvl crypto driver") Fixes: 2c22aa4f8f6 ("crypto/mvsam: update hash digest sizes") Fixes: a84226fc055 ("crypto/mvsam: support HMAC SHA224") Cc: stable@dpdk.org Signed-off-by: Michael Shamis Reviewed-by: Liron Himi Tested-by: Liron Himi --- drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c index e4dfda7fa..3cb7e3b9c 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c @@ -112,7 +112,7 @@ static const struct rte_cryptodev_capabilities .increment = 1 }, .digest_size = { - .min = 28, + .min = 12, .max = 28, .increment = 0 }, @@ -233,7 +233,7 @@ static const struct rte_cryptodev_capabilities }, .digest_size = { .min = 12, - .max = 48, + .max = 64, .increment = 4 }, }, } @@ -253,7 +253,7 @@ static const struct rte_cryptodev_capabilities }, .digest_size = { .min = 12, - .max = 48, + .max = 64, .increment = 0 }, }, } @@ -337,9 +337,9 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .aad_size = { - .min = 8, - .max = 12, - .increment = 4 + .min = 0, + .max = 64, + .increment = 1 }, .iv_size = { .min = 12,