crypto/dpaax_sec: enhance GCM descs to not skip AAD
authorVakul Garg <vakul.garg@nxp.com>
Mon, 14 Oct 2019 06:53:24 +0000 (12:23 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 23 Oct 2019 14:57:06 +0000 (16:57 +0200)
commit7a4a6da47007a1ab1abeb83633d35db29e13cbef
treed5e63da2670533f7e8603ecc0de3e9ad10576150
parent98e84273902045640b2c6ecc438412c4f1202e15
crypto/dpaax_sec: enhance GCM descs to not skip AAD

The GCM descriptors needlessly skip auth_only_len bytes from output
buffer. Due to this, workarounds have to be made in dpseci driver code.
Also this leads to failing of one cryptodev test case for gcm. In this
patch, we change the descriptor construction and adjust dpaaX_sec
accordingly. The test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_1seg
now passes.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
drivers/crypto/dpaa2_sec/hw/desc/algo.h
drivers/crypto/dpaa_sec/dpaa_sec.c