From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f49.google.com (mail-pg0-f49.google.com [74.125.83.49]) by dpdk.org (Postfix) with ESMTP id 9877D9157 for ; Mon, 21 Aug 2017 11:35:57 +0200 (CEST) Received: by mail-pg0-f49.google.com with SMTP id y129so96852037pgy.4 for ; Mon, 21 Aug 2017 02:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=67pAu4Xfgil4KtZGF19+BdlrR+ibBj4xn8KBLuNWI54=; b=W+PxThhsnK970PskX/FEGwyWu6osj0huQXVv0YTbp35AT9jwdXk7ybV8wHbje9tov2 qTno+eEgrUzFI8VP1stBOybj/gVH+r4shHdRjl/xzl86BGqdcOKcEfWeqt1FDcONS7Rh cw+l48Y7j1MB2nb8+6rtOR3cGz9EaQY98TA4/t8D5ViKsbgFSspQAeh9XsjkD2B6v+WG JCHqdRaFGo6bCUx4l87ym8aa9TI5D57Xcfe+1rza1CGY3GrzN05ThinF9czYZtVXIZQM hVdBhzNFPgMxisO81cWLjIHzoY5AbxM74qMIgkTLhGdKlt6EPAV48/oT5jMBSWJAZGpj /8Kw== 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=67pAu4Xfgil4KtZGF19+BdlrR+ibBj4xn8KBLuNWI54=; b=FSc2XnPPd+lbVGJi9SQ0KVsM5twIw2ToPlcqPhtBUtcndm+TkEWKFK8xwVty5TVDeO qUuju2z8+pNeoBJCarFZtlGBxLDFsHma+1om0HPIBqfIBwdK59OeSLEuNusgrTO+cww2 9whYYXXIlSZbURtiPwcZjU/xyYqPWi+VRbpgkDZE6lY6bWwlhI1GB0hkJlBLgVIQe0oj Yho/1i5+1rgxHuEK7GPT54K6CoWVhbJ1mhjF8oVMDHmYnC9NSozzJSVWgCT3J8NKyoIg bgYlBKND97Hb8sK4kkM0D85+in+5bEdUByhzTq20NYT+1CheMM4qR+GbifRC8gc/1KdF P+RA== X-Gm-Message-State: AHYfb5jIJN+XtcxG5fYxu/24WgPU9JrMfzUSoGHMLOEc2CHQALgcGtby uXDbPz56R7CBf8pObcevdQ== X-Received: by 10.98.147.138 with SMTP id r10mr16367100pfk.47.1503308156953; Mon, 21 Aug 2017 02:35:56 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.35.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:35:55 -0700 (PDT) From: Yuanhan Liu To: Pablo de Lara Cc: Fiona Trahe , dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:47 +0800 Message-Id: <1503307878-16728-33-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'crypto/qat: fix HMAC supported key sizes' has been queued to stable release 17.05.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, 21 Aug 2017 09:35:58 -0000 Hi, FYI, your patch has been queued to stable release 17.05.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 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From fb82da7b5683847419b8e381baac2e4c79264a56 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Tue, 25 Jul 2017 06:24:57 +0100 Subject: [PATCH] crypto/qat: fix HMAC supported key sizes [ upstream commit 5668da1eb5897a96b672ac3b610bd3542e3e5cbe ] For HMAC algorithms (MD5-HMAC, SHAx-HMAC), the supported key sizes are not a fixed value, but a range between 1 and the block size. Fixes: 26c2e4ad5ad4 ("cryptodev: add capabilities discovery") Signed-off-by: Pablo de Lara Acked-by: Fiona Trahe --- drivers/crypto/qat/qat_crypto_capabilities.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/qat/qat_crypto_capabilities.h b/drivers/crypto/qat/qat_crypto_capabilities.h index 1294f24..05dfcae 100644 --- a/drivers/crypto/qat/qat_crypto_capabilities.h +++ b/drivers/crypto/qat/qat_crypto_capabilities.h @@ -43,9 +43,9 @@ .algo = RTE_CRYPTO_AUTH_SHA1_HMAC, \ .block_size = 64, \ .key_size = { \ - .min = 64, \ + .min = 1, \ .max = 64, \ - .increment = 0 \ + .increment = 1 \ }, \ .digest_size = { \ .min = 20, \ @@ -64,9 +64,9 @@ .algo = RTE_CRYPTO_AUTH_SHA224_HMAC, \ .block_size = 64, \ .key_size = { \ - .min = 64, \ + .min = 1, \ .max = 64, \ - .increment = 0 \ + .increment = 1 \ }, \ .digest_size = { \ .min = 28, \ @@ -85,9 +85,9 @@ .algo = RTE_CRYPTO_AUTH_SHA256_HMAC, \ .block_size = 64, \ .key_size = { \ - .min = 64, \ + .min = 1, \ .max = 64, \ - .increment = 0 \ + .increment = 1 \ }, \ .digest_size = { \ .min = 32, \ @@ -106,9 +106,9 @@ .algo = RTE_CRYPTO_AUTH_SHA384_HMAC, \ .block_size = 64, \ .key_size = { \ - .min = 128, \ + .min = 1, \ .max = 128, \ - .increment = 0 \ + .increment = 1 \ }, \ .digest_size = { \ .min = 48, \ @@ -127,9 +127,9 @@ .algo = RTE_CRYPTO_AUTH_SHA512_HMAC, \ .block_size = 128, \ .key_size = { \ - .min = 128, \ + .min = 1, \ .max = 128, \ - .increment = 0 \ + .increment = 1 \ }, \ .digest_size = { \ .min = 64, \ @@ -148,9 +148,9 @@ .algo = RTE_CRYPTO_AUTH_MD5_HMAC, \ .block_size = 64, \ .key_size = { \ - .min = 8, \ + .min = 1, \ .max = 64, \ - .increment = 8 \ + .increment = 1 \ }, \ .digest_size = { \ .min = 16, \ -- 2.7.4