[PATCH 21.11] crypto/qat: fix NULL algorithm digest placement
    Kevin Traynor 
    ktraynor at redhat.com
       
    Thu Nov 23 11:47:43 CET 2023
    
    
  
On 09/11/2023 14:28, Ciara Power wrote:
> [upstream commit 8b4618a7b453dec02ca8ea40871fb124100f98f4]
> 
> 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.
> 
> Fixes: db0e952a5c01 ("crypto/qat: add NULL capability")
> 
> Signed-off-by: Ciara Power<ciara.power at intel.com>
> ---
>   drivers/crypto/qat/qat_sym.c     | 6 +++---
>   drivers/crypto/qat/qat_sym.h     | 2 ++
>   drivers/crypto/qat/qat_sym_pmd.c | 5 +++++
>   3 files changed, 10 insertions(+), 3 deletions(-)
Applied to 21.11. Thanks for backporting.
    
    
More information about the stable
mailing list