summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArek Kusztal <arkadiuszx.kusztal@intel.com>2016-12-23 08:24:52 +0000
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2017-01-18 21:48:56 +0100
commit39dc49db37b9539cda685c7922fe9258a36613a8 (patch)
tree14b48efa310abcbf064d67212acd284d27139203
parentb9719b996a7c0c0dd4d80a142ddb26fabafd0ce9 (diff)
downloaddpdk-39dc49db37b9539cda685c7922fe9258a36613a8.zip
dpdk-39dc49db37b9539cda685c7922fe9258a36613a8.tar.gz
dpdk-39dc49db37b9539cda685c7922fe9258a36613a8.tar.xz
crypto/aesni_gcm: fix IV size in capabilities
This patch sets iv size in aesni gcm PMD to 12 bytes to be conformant with nist SP800-38D. Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations") Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com> Acked-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
-rw-r--r--drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c
index e824d4b..c51f82a 100644
--- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c
+++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c
@@ -77,8 +77,8 @@ static const struct rte_cryptodev_capabilities aesni_gcm_pmd_capabilities[] = {
.increment = 0
},
.iv_size = {
- .min = 16,
- .max = 16,
+ .min = 12,
+ .max = 12,
.increment = 0
}
}, }