From: Pablo de Lara Date: Tue, 14 Aug 2018 00:38:46 +0000 (+0100) Subject: crypto/aesni_mb: fix truncated digest size for CMAC X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=16a3558e0bd8fce3e90def75fcfcd0a947b469c1;p=dpdk.git crypto/aesni_mb: fix truncated digest size for CMAC The truncated digest size for AES-CMAC is 12 and not 16, as the Multi-buffer library can output both 12 and 16 bytes. Fixes: 6491dbbecebb ("crypto/aesni_mb: support AES CMAC") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara Acked-by: Marko Kovacevic --- diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h index cc5822a825..1e297f0326 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h @@ -64,7 +64,7 @@ static const unsigned auth_truncated_digest_byte_lengths[] = { [SHA_384] = 24, [SHA_512] = 32, [AES_XCBC] = 12, - [AES_CMAC] = 16, + [AES_CMAC] = 12, [AES_CCM] = 8, [NULL_HASH] = 0 };