[PATCH 21.11] crypto/qat: fix raw API null algorithm digest
Kevin Traynor
ktraynor at redhat.com
Thu Nov 23 11:48:33 CET 2023
On 21/11/2023 16:22, Ciara Power wrote:
> [ upstream commit d7d52b37e89132f07121323c449ac838e6448ae0 ]
>
> QAT HW generates bytes of 0x00 digest, even when a digest of len 0 is
> requested for NULL. This caused test failures when the test vector had
> digest len 0, as the buffer has unexpected changed bytes.
>
> By placing the digest into the cookie for NULL authentication,
> the buffer remains unchanged as expected, and the digest
> is placed to the side, as it won't be used anyway.
>
> This fix was previously added for the main QAT code path, but it also
> needs to be included for the raw API code path.
>
> Fixes: db0e952a5c01 ("crypto/qat: add NULL capability")
>
> Signed-off-by: Ciara Power<ciara.power at intel.com>
> ---
> drivers/crypto/qat/qat_sym_hw_dp.c | 42 +++++++++++++++++++++++++++---
> 1 file changed, 38 insertions(+), 4 deletions(-)
Applied to 21.11 branch. Thanks for backporting.
More information about the stable
mailing list