From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id EAE841DBB for ; Mon, 30 Apr 2018 16:44:32 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id a67so6022021wmf.3 for ; Mon, 30 Apr 2018 07:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7H0e2u7taTf40xci/ZeSzDSDEJIJRE9MqXm+uybwH74=; b=ZsD8a+6CSeZl7IQWNt9d9I9CHoDSoZbTf2r6mS1iVg4WSKoya7GI1TRPKWVq/mB8f5 W2Y8z7ahhENaqFcBIgGTHe2QwEmH/MedaBUWiTeUXdw5c+xqfaJN6kyMgacV1XBREgUO l/0we7RU2wf3i0XaL3iTL7br2IGtlBN0eLTBGScTE1ttd06GLpQa7SN4BRLodUt7JICp JN2cIUTEhXG3gsHjkUinSrE80KUazKEYGxVg0D4cPO0Tt0Qd92BBsIWQI5rFfnN2opb1 R6ABB4CtnxyXE/Bsq+0JPxtrfdBeUawzSTt2SzSL7P1H2QX/P5bEmobxh+heTaPweVgJ J5ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7H0e2u7taTf40xci/ZeSzDSDEJIJRE9MqXm+uybwH74=; b=qUI4z/PQLLzsLADle8mQCSBraFc5PCtoxNL792btiao7R7kbKAbKtoBHoY5r20+ap1 oXA3XeP0liFsrwUvf4YMZs73eeyBJbD4qcJUtSQcbLLgV8dgFGLgfQZfUJk/fa7LH5r0 zy4ACwtf6A8rho3TaIeuJPxRAaeWqwmqQq3PmgIJrppe8fkdWYXKQjy2s86oqEXx3xmg BHpnVxtKZu1Wq92p9drFa4x8VYeDvv/iGCH5k1hFCYynPr6aGyWrSqK3NqB+k4b+I+0e yce58kwvIiI0TZn62X++mD/qPqL46FHcwvcUpCzfxDy+mEmXG09A58fdxL9Hd/60A/Iy vvOw== X-Gm-Message-State: ALQs6tA7bEbEzdiSBYX9xH7FD6ajlv30bSu3rM5Iwe0QPN6o1LoZOKIW OP8P8uczJVWAKl7ch3wYooV3FnKz7W4= X-Google-Smtp-Source: AB8JxZp+upf1cuSmFsluwTDUpNRuYhhK7XhgVJCl0u98U3/ttS7TIadn39jlxvy+ERZ9i9V/gGVU3Q== X-Received: by 10.28.66.205 with SMTP id k74mr7423998wmi.81.1525099472628; Mon, 30 Apr 2018 07:44:32 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id o12-v6sm7445938wri.78.2018.04.30.07.44.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:44:31 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Nipun Gupta , Akhil Goyal , dpdk stable Date: Mon, 30 Apr 2018 15:41:35 +0100 Message-Id: <20180430144223.18657-80-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'crypto/dpaa_sec: fix HMAC supported digest sizes' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:44:33 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 75ec713a91518424e8b09284ff3fcd3532314c33 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Thu, 19 Apr 2018 22:22:37 +0530 Subject: [PATCH] crypto/dpaa_sec: fix HMAC supported digest sizes [ upstream commit 6c9c2e4667e1e0988c67378ca7075f0f50ed4b13 ] 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. Also setting iv_size as 0. Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform") Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal Acked-by: Akhil Goyal --- drivers/crypto/dpaa_sec/dpaa_sec.h | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.h b/drivers/crypto/dpaa_sec/dpaa_sec.h index b8f7bd23e..143359580 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.h +++ b/drivers/crypto/dpaa_sec/dpaa_sec.h @@ -185,10 +185,11 @@ static const struct rte_cryptodev_capabilities dpaa_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 16, + .min = 1, .max = 16, - .increment = 0 + .increment = 1 }, + .iv_size = { 0 } }, } }, } }, @@ -205,10 +206,11 @@ static const struct rte_cryptodev_capabilities dpaa_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 20, + .min = 1, .max = 20, - .increment = 0 + .increment = 1 }, + .iv_size = { 0 } }, } }, } }, @@ -225,10 +227,11 @@ static const struct rte_cryptodev_capabilities dpaa_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 28, + .min = 1, .max = 28, - .increment = 0 + .increment = 1 }, + .iv_size = { 0 } }, } }, } }, @@ -245,10 +248,11 @@ static const struct rte_cryptodev_capabilities dpaa_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 32, + .min = 1, .max = 32, - .increment = 0 + .increment = 1 }, + .iv_size = { 0 } }, } }, } }, @@ -265,10 +269,11 @@ static const struct rte_cryptodev_capabilities dpaa_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 48, + .min = 1, .max = 48, - .increment = 0 + .increment = 1 }, + .iv_size = { 0 } }, } }, } }, @@ -285,10 +290,11 @@ static const struct rte_cryptodev_capabilities dpaa_sec_capabilities[] = { .increment = 1 }, .digest_size = { - .min = 64, + .min = 1, .max = 64, - .increment = 0 + .increment = 1 }, + .iv_size = { 0 } }, } }, } }, -- 2.14.2