mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG 0/2] crypto: ahash - Bugs introduced due to CRYPTO_AHASH_ALG_BLOCK_ONLY
@ 2025-11-13 14:00 T Pratham
  2025-11-13 14:00 ` [BUG 1/2] crypto: ahash - import/export fails for algs using CRYPTO_AHASH_ALG_BLOCK_ONLY T Pratham
  2025-11-13 14:00 ` [BUG 2/2] crypto: ahash - testmgr false failures with CRYPTO_AHASH_ALG_BLOCK_ONLY T Pratham
  0 siblings, 2 replies; 7+ messages in thread
From: T Pratham @ 2025-11-13 14:00 UTC (permalink / raw)
  To: t-pratham, Herbert Xu, David S. Miller
  Cc: linux-crypto, linux-kernel, Manorit Chawdhry, Shiva Tripathi

Hi,

Commit 9d7a0ab1c7536 ("crypto: ahash - Handle partial blocks in API")
introduced partial block handling for ahashes in the crypto API layer itself.
This enables ahash algorithms to return a positive integer from the update
function to indicate the number of bytes in the input which are not processed
and should be buffered for next update/finup/final call to process.

I've discovered 2 bugs introduced due to the above commit:

[Bug 1/2]: import/export fails for algs using CRYPTO_AHASH_ALG_BLOCK_ONLY
[BUG 2/2]: testmgr false failures with CRYPTO_AHASH_ALG_BLOCK_ONLY

These are detailed in the following messages.
-- 
Regards
T Pratham <t-pratham@ti.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-24  9:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-13 14:00 [BUG 0/2] crypto: ahash - Bugs introduced due to CRYPTO_AHASH_ALG_BLOCK_ONLY T Pratham
2025-11-13 14:00 ` [BUG 1/2] crypto: ahash - import/export fails for algs using CRYPTO_AHASH_ALG_BLOCK_ONLY T Pratham
2025-11-21  5:36   ` [PATCH] crypto: ahash - Fix crypto_ahash_import with partial block data Herbert Xu
2025-11-24  9:47     ` T Pratham
2025-11-13 14:00 ` [BUG 2/2] crypto: ahash - testmgr false failures with CRYPTO_AHASH_ALG_BLOCK_ONLY T Pratham
2025-11-21  5:54   ` [PATCH] crypto: ahash - Zero positive err value in ahash_update_finish Herbert Xu
2025-11-24  9:50     ` T Pratham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®