From patchwork Thu Apr 19 16:52:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 133840 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp857281ljf; Thu, 19 Apr 2018 09:55:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+bo+TWN13unVaNpIij9E7WRfLFB5f8fQcmF2fqZT7ofmTtCs8BY6xRVWNA7q0/U9jAukin X-Received: by 2002:adf:afce:: with SMTP id y14-v6mr5632610wrd.249.1524156912915; Thu, 19 Apr 2018 09:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524156912; cv=none; d=google.com; s=arc-20160816; b=Xg5UhhESO2+YrjJwozEpzcr5+rMyc/eWEogRHRB/pilWHgOaAfG9JneHXzxqLO/NIO RzcuD/Lbc9RNmausrBHcJbRH+uUCNmKCTMxxuJi65a7fSMI1FFa499AC64ureNmBfwiF bOwBl8dH1r0vde9VDmkpuUcHkHzlNl1R8Pg56Kbvh++ORF11th3sXedcXENoB6Sqj0xE BEhLV7rWxwkuZIboNds1zpFWUmrDZhNKtRJQyDwtGh5Sgp0205ASHVETAeuapHWk1Xsc bjbK03pDzk8M26DwPAnrNuBMQ32jPQvU771zw94lwc+g+K204fD/bFIRLbgLmyNEsgWD Q5bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=jl7puiHs9kFgZG+UFMcAF1JcgNHXTARrt/1J9cKKEk4=; b=v2LMYWPi4upMR2FUBwuH31SoX7I/YSFdAO4J5R1pKdl8nwMa68SmuOK1PwAPrSPTmD x7TKoXFDmPlbsh58ZEiTYlhRW4eW51nPQV4St+Qrm3njWSz9VCCur90p8NzcYB3qQUMl wuexJNE/Of7fMOPeNmUtoUPyRetUPSXKT1wc2py/zgGqvAX0+MOhZTTPd6yyS62oTTzV /0sieBtnJGg2Tdd9MSpMcyMVWMXUdiy/nyMvHdUh+UQCVLW6BMS0OV7iSGBzZsSYiLYl TDFfUrI7ZmHQoho4vp6srnI1pToReK6MPsuxTgSu4bCTXYXq2T5H4ysi8QjzOSsntGG5 ryFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=n2KHvI5N; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id n129si276525wmn.1.2018.04.19.09.55.12; Thu, 19 Apr 2018 09:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=n2KHvI5N; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 757B51B01E; Thu, 19 Apr 2018 18:54:55 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0066.outbound.protection.outlook.com [104.47.1.66]) by dpdk.org (Postfix) with ESMTP id D4CFBD4CE; Thu, 19 Apr 2018 18:54:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jl7puiHs9kFgZG+UFMcAF1JcgNHXTARrt/1J9cKKEk4=; b=n2KHvI5NlsnMW9K+/ctJI0qI7Uay0nj4X0Ylb8pFQUBKQ6bnG8C7yQujgZwI5mjW2KZ2zEqROXzK7gw2gr5AkP4K1RQZQCYexN9skr+w4ZGFYilCfqMLxiB2MyzaqUibxRsITYVTbrHrnaqbdcincXzmaz6a1polNyODN2VVuKw= Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.15; Thu, 19 Apr 2018 16:54:48 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com, stable@dpdk.org, Nipun Gupta Date: Thu, 19 Apr 2018 22:22:38 +0530 Message-Id: <1524156759-12931-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524156759-12931-1-git-send-email-hemant.agrawal@nxp.com> References: <1524156759-12931-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MAXPR0101CA0055.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::17) To DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0768; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 3:63BBueOJM+xHfPmN6aZpN0FmfrRH978ZUbWgodXASu3RLKA57Q4lQT/nXHwqgViskTsIJsYMH7ZthV8HxZOdY+zGKheQe36NZP0AjanTd6JtA7Tr3MGYTQsgFpxla6XXKjDKVefcN9NxG/Yds9ohb0Z4pBmO9eBskVb2PlEVk0jSLV9M80HzMKLOJpgWXkZbgslkXtqZoQzJe7NuyQBoXRqv8e/sMmttQkkhjDqP3BVJjKyDpdVwN2knBZMJlequ; 25:x4WFrSanXlrH+r1NqOGrtYESl+rOh3sNToJtaS4II1Pohrew9FWcZeNFXkEAigA63AFMNzDn3A/pYK9d5vzhLqZX24InnkNf53TL2P2r6YkHUIIqSdz25wKfhkJnegTKZIgmfE1EW+i23PAcqMtTe8cJPTggkIfMv5Jo328XGJdRiR9jTb2CsjR8yg+kYXQFwGzalcFNhQ3o95QnKTYu9UNI5X/jNGN689rBaPGBX876phs/sbXnKo/+THEQu43FBI/CkWVwgGs/DqZnkai4DH1Jd02qHnNcUp8jiSMizO7GEzZDtqawfote7Lxm0rp6PTjhXAjWqbTSq5dlNkaPqA==; 31:EubFCpx/P7BVMQzMRYm37AFtIg58FjWPK9I0F92/CT8EMhv2kLt2PaoJUAKyKz/ZTWpZBwRzAj0RKU13kmOVIQxWjXQp2YgNQr2W8jsaQCWWMu09P/7rnTK726b4eI2MEced+lVJrK9fCNRlaUuxfs2vm0K12M1fBovnReyXbJbZQvT5QFWm7L314eoRNAjMyECCdLAvpJAKaeVrhpW2rqS+lrnMm7bhzp0LKX5KjdM= X-MS-TrafficTypeDiagnostic: DB4PR04MB0768: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 20:Ft8QClhN+yQdAlSmhifMTeKjguUnUa15U5QycytVH1nxxc6zFDsIb3Cc95SbDvmSk0qxyeKohW+Sg1xasa7y6imn0WAUo1JEptsI3mmYQR98oyNZ2mQi0RV4j+wfPsZLIa/XHWbBDTtKWSKgQr9Svlk9Joohd9Ugwu+JoTXVkunysKqz8y+6VPNLcvi+ccKJ0Yw6qoXiCLT1O4KvwN+eW5cZQWlGq1WQ22BmTeDEW5spuzwqxhUJL4z7vwu5fTYWQL4gJtaG4inDhiiPYrpQioLftLYjaiSG8osiv1ww8X56SHZx//56lkbtW/uHOEVLqFnfokCSHMdbbHStXzONCVyb8PNXY9ZeIqNItQKECGXmJaK+i7WoC8+B4lLDHJ0kzIK7BD4sb+HwnrVtffTSDvaNVfnb2b5PqVwngXfOBXcm0oKBOJMicTLlpH03ftPbIx/Svx216t5GJyjDsJe+Ab6WYRUfskEeyhHNjDeh6kKVo+/Wy98sgXJ7pO7qRYLx; 4:tl4FxafddKLNcVPYrp5GftK9YCUHauqwSKoKtXQX9dEbgV7pp34EjTkuSjlGDRkwp1uHYNF0jRi98TlNBsPQWVP6v5ccdZO73a1Mq/siaYLW1qOvQP2J/rGJpXJaUsW2eaMiMQjMH1GGx7DpT8rs1LJV1CaUGDmJRFMhgWLko02okh+Y5jUSpZ+u+NRPmGP5fzve5BjpuLuyhWbi/8hCquok6eBYWx7EAQ6d1JOFg1QAWg+tL/zki0iIv4DIeYUhmP/3Hydqscpbn7KOxrDJlaOCwekEZyJu5ED518i78RXF/nYdFKS33amx4jTWdNqM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231232)(944501383)(52105095)(3002001)(6055026)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:DB4PR04MB0768; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0768; X-Forefront-PRVS: 0647963F84 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39380400002)(39860400002)(346002)(18543002)(50226002)(476003)(86362001)(26005)(478600001)(316002)(51416003)(16586007)(8676002)(11346002)(16526019)(446003)(55236004)(2351001)(5660300001)(186003)(2361001)(956004)(81166006)(8936002)(2616005)(2906002)(36756003)(6666003)(6486002)(6512007)(66066001)(50466002)(6506007)(386003)(47776003)(6916009)(6116002)(76176011)(5009440100003)(305945005)(48376002)(3846002)(7736002)(25786009)(52116002)(53936002)(44832011)(4326008)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0768; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:nov; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0768; 23:TCdKRAE3qlv5W+POUDHWE0MrqVUVnX3R2QdbE+fSh?= rNPnGnHjlJkrBXBvt8dDh0Z1tQbMVh8239b1siPO0oh3xfiA+stC9MfyMav960iRSeJeb8pUcgyl+bSJTPLBZqRrfcoHUSM6HHVwNnQqhLwMU1DQ3ckFFJ5PW33dTecmccQMGtfF9KcVgvtMpceXLWDoPv5hqxRJroudEACHxoZTfPFj3yf17uWMdeMPjDVb6FHY6ag4ZAVzOwUuuvIq+9KIoXH4ivoNIl8Imqf0BzETwv4TPmPGrp1ZY68eGg9ZLLKCR7QdxAXchffZ5a89UAkSNmFQRgZf5PJOdbzczKlhXcTmZ/pjW5sksR3raUshcgUJdh5U9Mnk4yRtyv4HSk59EXf2mi5yB84yV1szGtgqkyxuPDBsSwRY5Wo1mLh9fS/mRqW4y8ukrDW9gHz85H3UDO9KaDfuiHJJ8qqFebpg+tpQBAYaT07L+ZuUi97q5IjPRgkUBbUXJPM0YKFfegQRyuydN4Dr+/aVb0+UZQuPQOxAR85JgvzLdiRcy/6Xw1Dm3k4YUyb+4SvXV71xumr0jVtUAY+1XUbIdDjwC55byqusDD3srdl4RAI1hWzRQGyNIkGuxCjhFMgmggAbPawBuql38PfIDp4bId/RfQBTBGcy5LBtZDGoOEEekzFfgUv84Jc+2WPK//6+DcwoRLLJO/HckPifRTrgfZ7F3kA2FjaA4F/K5j4v+fLo6FuSP9CCtYtdd/ir5j8kG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jS0KWmv0zdYg60wt1AOZxWBVLb2VfvJ7725Czqib8vxyoLEAOJp3Ti5yn0srzkWAQzBlQG3rNOXEw==; 5:I4YgncqIUhB+O2yrl4o2lSwEfAS8Uyly5f1yLV8CiBS9piY/Dr7E0690yHWrF+gOOmRbINIAblf8KH8GTUUYVuEqdZIdWV1PWbTQn70GiDExzcFUgyuZFuNHbZBPUek8gOjHTK5caFyNgG/sbvEozi5rzqRQhoczb4deIjRZe4w=; 24:eBXetnA73OSF63uoJJ8w+ErMGQWANgY+QnGSrt8Y63RVbTKZ+n/4B/ybLpSBY5trDH0dtsYsyMVxUu1FQIJ6QiGhMonierHBOTmVbmNIQGk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 7:rQ99sJTEKr5S3rm2IIkHH//HXV8qtm7Tav1ASfDMgqbjnex0bRUepvGY74gDdDm40aH8vPhHz8N19L9VbricMnxsudL5xWBICu6iXi6R+0dt2ZSPNQqKOReYx30u8b2QSwixpJ7rSG/lK3CWpFMGfYempy5EdboI/RdDu7/5KhIWltjE+7K9tQqIsNfdyJGdo6Zepq4fGUHMQ2GQYv+qXrGkjpeo3ttg038uq4h5QeAOlm5kfFm/1GfFwdasWgHW X-MS-Office365-Filtering-Correlation-Id: 2838d403-df60-4a40-b059-08d5a61643b6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2018 16:54:48.3174 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2838d403-df60-4a40-b059-08d5a61643b6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0768 Subject: [dpdk-dev] [PATCH 3/4] crypto/dpaa2_sec: fix HMAC supported digest sizes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" For HMAC algorithms (MD5-HMAC, SHAx-HMAC), the supported digest sizes are not a fixed value, but a range between 1 and the maximum digest size for those algorithms. Fixes: f947fd77185f ("crypto/dpaa2_sec: fix HMAC supported key sizes") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) -- 2.7.4 Acked-by: Akhil Goyal diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h index e8ac95b..a9d83eb 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h @@ -185,9 +185,9 @@ static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 16, + .min = 1, .max = 16, - .increment = 0 + .increment = 1 }, .iv_size = { 0 } }, } @@ -206,9 +206,9 @@ static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 20, + .min = 1, .max = 20, - .increment = 0 + .increment = 1 }, .iv_size = { 0 } }, } @@ -227,9 +227,9 @@ static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 28, + .min = 1, .max = 28, - .increment = 0 + .increment = 1 }, .iv_size = { 0 } }, } @@ -248,9 +248,9 @@ static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 32, - .max = 32, - .increment = 0 + .min = 1, + .max = 32, + .increment = 1 }, .iv_size = { 0 } }, } @@ -269,9 +269,9 @@ static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 48, + .min = 1, .max = 48, - .increment = 0 + .increment = 1 }, .iv_size = { 0 } }, } @@ -290,9 +290,9 @@ static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 64, + .min = 1, .max = 64, - .increment = 0 + .increment = 1 }, .iv_size = { 0 } }, }