Re: [PATCH] crypto: qce - Fix HMAC self-test failures for empty messages
From: Bartosz Golaszewski
Date: Mon Oct 19 2026 - 07:37:25 EST
On Fri, 16 Oct 2026 16:23:43 +0200, Bartosz Golaszewski
<bartosz.golaszewski@xxxxxxxxxxxxxxxx> said:
> BAM DMA cannot process zero-length transfers, so the driver always holds
> back at least one byte to submit to the engine and only ever finalizes
> with an empty buffer when nothing is left to submit. For plain hashes
> this was handled by returning the precomputed hash of the empty message
> (tmpl->hash_zero), but HMAC's result depends on the key and cannot be
> constant, so hmac(sha256) produced an incorrect digest for an empty
> message and the crypto self-tests failed.
>
Herbert: this should have been v11, sorry, I forgot to force revision with
b4 on this patch. Anyway, sashiko doesn't report anything so this one should
be good to go. There another small issue in skcipher so I'll respin.
Bart