aesni_gcm: fix supported key sizes
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 6 Apr 2016 15:39:31 +0000 (16:39 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 6 Apr 2016 16:48:04 +0000 (18:48 +0200)
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 <pablo.de.lara.guarch@intel.com>
drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c

index 4dec8dd..e824d4b 100644 (file)
@@ -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,