crypto/mvsam: fix AES-GCM session parameters
authorDana Vardi <danat@marvell.com>
Thu, 1 Jul 2021 06:58:12 +0000 (09:58 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 7 Jul 2021 19:28:39 +0000 (21:28 +0200)
commit22918d8400dc9e69ce889aed03066c4547e3fae6
tree5a2b430d3a10b86f4cfce608dae38d58a54f87d2
parent6e90229e22e6906b90c82c0c137f68d9c2968bf5
crypto/mvsam: fix AES-GCM session parameters

For AEAD session and AES-GCM mode, IV offset will
set to include the Nonce.
In addition, the following operations order will define:
first encryption and then authentication.

Fixes: 8a61c83af2fa ("crypto/mrvl: add mrvl crypto driver")
Cc: stable@dpdk.org
Signed-off-by: Dana Vardi <danat@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
Tested-by: Liron Himi <lironh@marvell.com>
drivers/crypto/mvsam/rte_mrvl_pmd.c