]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: talitos/hash - prepare SEC1 descriptor chaining, remove additional descriptor
authorPaul Louvel <paul.louvel@bootlin.com>
Thu, 7 May 2026 14:41:52 +0000 (16:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:48 +0000 (18:08 +0800)
commit59b5d899e33701665f18abe6bebf987427876e3e
treef85b24fc3f2bd19f3c5f3e430506735e60d6c6e4
parentf8713d9e6091755dd30f7f1cfa25f8440cddf81b
crypto: talitos/hash - prepare SEC1 descriptor chaining, remove additional descriptor

Currently, when SEC1 has buffered data (nbuf != 0), the ahash code
creates an additional descriptor on the fly inside
common_nonsnoop_hash() to handle the remainder of the data. This
approach is incompatible with the arbitrary-length descriptor chaining
that follows.

Remove the "additional descriptor" logic from common_nonsnoop_hash()
and common_nonsnoop_hash_unmap().

Also remove the nbytes adjustment for SEC1 in ahash_edesc_alloc()
that subtracted nbuf.

Cc: stable@vger.kernel.org
Signed-off-by: Paul Louvel <paul.louvel@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c