crypto: zynqmp-sha - Fix partial block implementation
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 4 May 2025 06:13:50 +0000 (14:13 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 May 2025 10:20:46 +0000 (18:20 +0800)
commitecd71c95a60e7298acfabe81189439f350bd0e18
tree27e76efa321da7a99c4599ba7d306e0bebc0b50e
parent7c234e138c67c1157b17f1fab8cc95d62f8f4444
crypto: zynqmp-sha - Fix partial block implementation

The zynqmp-sha partial block was based on an old design of the
partial block API where the leftover calculation was done in the
Crypto API.  As the leftover calculation is now done by the
algorithm, fix this by passing the partial blocks to the fallback.

Also zero the stack descriptors.

Fixes: 201e9ec3b621 ("crypto: zynqmp-sha - Use API partial block handling")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/xilinx/zynqmp-sha.c
include/crypto/sha3.h