crypto/qat: fix SHA384-HMAC block size
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 25 Jul 2017 06:33:32 +0000 (07:33 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 27 Jul 2017 14:44:23 +0000 (16:44 +0200)
Block size of SHA384-HMAC algorithm is 128 bytes,
and not 64 bytes.

Fixes: d905ee32d0dc ("crypto/qat: add aes-sha384-hmac capability")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_crypto_capabilities.h

index 07da911..7012007 100644 (file)
                        .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,        \
                        {.auth = {                                      \
                                .algo = RTE_CRYPTO_AUTH_SHA384_HMAC,    \
-                               .block_size = 64,                       \
+                               .block_size = 128,                      \
                                .key_size = {                           \
                                        .min = 1,                       \
                                        .max = 128,                     \