From: Pablo de Lara Date: Wed, 6 Apr 2016 15:39:31 +0000 (+0100) Subject: aesni_gcm: fix supported key sizes X-Git-Tag: spdx-start~7061 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6acc17bc0ae9a387a50bdd0c5eb44eee30948141;p=dpdk.git aesni_gcm: fix supported key sizes AES-GCM PMD only supports 128-bit keys, but not 192 and 256, which the capabilities structure was reporting. Fixes: 26c2e4ad5ad4 ("cryptodev: add capabilities discovery") Signed-off-by: Pablo de Lara --- diff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c index 4dec8dd5f4..e824d4b3df 100644 --- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c +++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c @@ -48,8 +48,8 @@ static const struct rte_cryptodev_capabilities aesni_gcm_pmd_capabilities[] = { .block_size = 16, .key_size = { .min = 16, - .max = 32, - .increment = 8 + .max = 16, + .increment = 0 }, .digest_size = { .min = 8, @@ -73,8 +73,8 @@ static const struct rte_cryptodev_capabilities aesni_gcm_pmd_capabilities[] = { .block_size = 16, .key_size = { .min = 16, - .max = 32, - .increment = 8 + .max = 16, + .increment = 0 }, .iv_size = { .min = 16,