crypto/aesni_gcm: support all truncated digest sizes
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 14 Aug 2018 00:54:30 +0000 (01:54 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 26 Sep 2018 10:43:57 +0000 (12:43 +0200)
commitceb863938708d3e38414650827a8cf433d42e035
tree4358d1f5623852bd76e8f0ad2e8f2b9ac9bbe275
parentc7c29f105876f2b60a0a816d45ae5a45d50128f6
crypto/aesni_gcm: support all truncated digest sizes

The full digest size of GCM/GMAC algorithms is 16 bytes.
However, it is sometimes truncated to a smaller size (such as in IPSec).
This commit allows a user to generate a digest of any size
up to the full size.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
drivers/crypto/aesni_gcm/aesni_gcm_pmd.c
drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c
drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h