summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrisivasubramanian S <ssrinivasan@caviumnetworks.com>2017-07-30 16:53:01 +0530
committerYuanhan Liu <yliu@fridaylinux.org>2017-08-29 14:50:28 +0800
commitca611e549fd72dbd1a2aa8c8e556d93364844705 (patch)
tree513ca5ab83465a90f5f40b10bf96b11e406c954d
parent6a15185f8e66fae8781fccb7a34b177b70ce3742 (diff)
downloaddpdk-stable-ca611e549fd72dbd1a2aa8c8e556d93364844705.zip
dpdk-stable-ca611e549fd72dbd1a2aa8c8e556d93364844705.tar.gz
dpdk-stable-ca611e549fd72dbd1a2aa8c8e556d93364844705.tar.xz
crypto/armv8: fix HMAC supported key sizes
[ upstream commit 0f89def76127d694f946d1cf9bd960ebb0323ac2 ] For HMAC algorithms (SHAx-HMAC), the supported key sizes are not a fixed value, but a range between 1 and the block size. Fixes: 169ca3db550c ("crypto/armv8: add PMD optimized for ARMv8 processors") Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
-rw-r--r--drivers/crypto/armv8/rte_armv8_pmd_ops.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/crypto/armv8/rte_armv8_pmd_ops.c b/drivers/crypto/armv8/rte_armv8_pmd_ops.c
index 4d9ccbf..d171069 100644
--- a/drivers/crypto/armv8/rte_armv8_pmd_ops.c
+++ b/drivers/crypto/armv8/rte_armv8_pmd_ops.c
@@ -50,9 +50,9 @@ static const struct rte_cryptodev_capabilities
.algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.block_size = 64,
.key_size = {
- .min = 16,
- .max = 128,
- .increment = 0
+ .min = 1,
+ .max = 64,
+ .increment = 1
},
.digest_size = {
.min = 20,
@@ -71,9 +71,9 @@ static const struct rte_cryptodev_capabilities
.algo = RTE_CRYPTO_AUTH_SHA256_HMAC,
.block_size = 64,
.key_size = {
- .min = 16,
- .max = 128,
- .increment = 0
+ .min = 1,
+ .max = 64,
+ .increment = 1
},
.digest_size = {
.min = 32,