From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id 04BBE2B9D for ; Wed, 9 Aug 2017 05:46:30 +0200 (CEST) Received: by mail-pf0-f178.google.com with SMTP id o86so22553732pfj.1 for ; Tue, 08 Aug 2017 20:46:30 -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; bh=KzYbU8mxTfjEQToLQwhb6Usc3bQI4+UzPGKd0H4dhD8=; b=osSBrFuyd4k8eYaamAXGYrRf1onZWkRZ4M68HooX7S17SWC4qohgStRiay233AxLhe sdlKLCcmBRzALsgNVe1bimkrwIjBd0/nsPPXCG9iwfhmWsHMQm9wZWJSxwPKpi+ARy0M kxopxMsmUnGHYfQIeR2RDs7Vq9xTyM6YY5UcmoHUWUII0JmCsr1kWt7w2sp67frpUUHm dbhqYRsp7MHLDi6Ie4b6wsc9pboy47klDLt5TE0oK2dR9dDjrwZ4xAo4m8MUtlmfw9mu jFPby/+z/VZn9LjOlfHQzQxO199u64hELMDkPpOPdeKIbjKBJRCJrMwHIj3bWs9Mj6NU YRlQ== 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; bh=KzYbU8mxTfjEQToLQwhb6Usc3bQI4+UzPGKd0H4dhD8=; b=BbUAtpfJknFFBtuZUBFtbFTrK9/w4plsFWzN0OEZBn/EPh+XEGJ2OluarXEWrydG4i aTo4vAVBzB01U/NnWIn00SNHFKlM8v4NzO9PmbYX116EhVBXcOoX8WqXa4Ju54H6LTkO orkP2jsJ3+1/Bbo7AvZdiuURFISnDtMWVjZj7TMrDhWybwbWAlW4loxIdAC1vve1PerG 5bVIZv1PLwR93gGN/B5Dm+GN+ePt+ev1uG2Ehox+Ahe7L5OEV1B5OsfvAoeWr81+75D3 LXTeUT91cF1PHENQOO5lug6yvCxg99mtlHLAPiZ7xWCOeT5h0H9yb/T2eKzE1dzclvrA BmLA== X-Gm-Message-State: AHYfb5h69N3ijazR25pE6cNvmbJZW1P9GxfVbJXBK9qgxPUnrhHgQgZG B7a/t6f1EB9odHe5 X-Received: by 10.99.175.1 with SMTP id w1mr6319272pge.390.1502250389996; Tue, 08 Aug 2017 20:46:29 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id q3sm5093921pfl.89.2017.08.08.20.46.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 20:46:28 -0700 (PDT) From: Yuanhan Liu To: Pablo de Lara Cc: Declan Doherty , dpdk stable , Yuanhan Liu Date: Wed, 9 Aug 2017 11:43:43 +0800 Message-Id: <1502250240-6599-1-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-stable] patch 'crypto/aesni_mb: fix HMAC supported key sizes' has been queued to LTS release 16.11.3 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: Wed, 09 Aug 2017 03:46:31 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.3 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/11/17. So please shout if anyone has objections. Thanks. --yliu --- >>From bcd974baebf9b16deb13f944034356c40196660b Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Tue, 25 Jul 2017 06:24:55 +0100 Subject: [PATCH] crypto/aesni_mb: fix HMAC supported key sizes [ upstream commit cefa431162fcef7f1ef0804beb25d7a9883fc54a ] 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: Declan Doherty --- drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c index 3d49e2a..287c8a5 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c @@ -48,9 +48,9 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .algo = RTE_CRYPTO_AUTH_MD5_HMAC, .block_size = 64, .key_size = { - .min = 64, + .min = 1, .max = 64, - .increment = 0 + .increment = 1 }, .digest_size = { .min = 12, @@ -69,9 +69,9 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .algo = RTE_CRYPTO_AUTH_SHA1_HMAC, .block_size = 64, .key_size = { - .min = 64, + .min = 1, .max = 64, - .increment = 0 + .increment = 1 }, .digest_size = { .min = 12, @@ -90,9 +90,9 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .algo = RTE_CRYPTO_AUTH_SHA224_HMAC, .block_size = 64, .key_size = { - .min = 64, + .min = 1, .max = 64, - .increment = 0 + .increment = 1 }, .digest_size = { .min = 14, @@ -111,9 +111,9 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .algo = RTE_CRYPTO_AUTH_SHA256_HMAC, .block_size = 64, .key_size = { - .min = 64, + .min = 1, .max = 64, - .increment = 0 + .increment = 1 }, .digest_size = { .min = 16, @@ -132,9 +132,9 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .algo = RTE_CRYPTO_AUTH_SHA384_HMAC, .block_size = 128, .key_size = { - .min = 128, + .min = 1, .max = 128, - .increment = 0 + .increment = 1 }, .digest_size = { .min = 24, @@ -153,9 +153,9 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .algo = RTE_CRYPTO_AUTH_SHA512_HMAC, .block_size = 128, .key_size = { - .min = 128, + .min = 1, .max = 128, - .increment = 0 + .increment = 1 }, .digest_size = { .min = 32, -- 2.7.4