mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 09:26:45 +07:00
crypto: inside-secure - fix the extra cache computation
This patch fixes the extra cache computation when the queued data is a
multiple of a block size. This fixes the hash support in some cases.
Fixes: 809778e02c
("crypto: inside-secure - fix hash when length is a multiple of a block")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
e1d24c0bb7
commit
c1a8fa6e24
@ -198,7 +198,7 @@ static int safexcel_ahash_send_req(struct crypto_async_request *async, int ring,
|
||||
/* If this is not the last request and the queued data
|
||||
* is a multiple of a block, cache the last one for now.
|
||||
*/
|
||||
extra = queued - crypto_ahash_blocksize(ahash);
|
||||
extra = crypto_ahash_blocksize(ahash);
|
||||
|
||||
if (extra) {
|
||||
sg_pcopy_to_buffer(areq->src, sg_nents(areq->src),
|
||||
|
Loading…
Reference in New Issue
Block a user