]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: aspeed/hash - Move sham_final call into sham_update
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 May 2025 06:03:57 +0000 (14:03 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Jun 2025 09:26:15 +0000 (17:26 +0800)
commit879203defb9216dd4343c3bf995c34321232a5cd
treeac9b189e1717800057745b9690863cdf32c4a341
parent43ddeca4ff5418f858ea7457bcb75274d6711870
crypto: aspeed/hash - Move sham_final call into sham_update

The only time when sham_final needs to be called in sham_finup
is when the finup request fits into the partial block.  Move this
special handling into sham_update.

The comment about releaseing resources is non-sense.  The Crypto
API does not mandate the use of final so the user could always go
away after an update and never come back.  Therefore the driver
must not hold any resources after an update call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/aspeed/aspeed-hace-hash.c