crypto: hash - Add request chaining API
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 16 Feb 2025 03:07:17 +0000 (11:07 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2025 08:01:53 +0000 (16:01 +0800)
commitf2ffe5a9183d22eec718edac03e8bfcedf4dee70
treed95008613680404dacc0384499b58dc6a224c8fd
parentf407764621220ffad3df6c589efc4b4ac010d3d5
crypto: hash - Add request chaining API

This adds request chaining to the ahash interface.  Request chaining
allows multiple requests to be submitted in one shot.  An algorithm
can elect to receive chained requests by setting the flag
CRYPTO_ALG_REQ_CHAIN.  If this bit is not set, the API will break
up chained requests and submit them one-by-one.

A new err field is added to struct crypto_async_request to record
the return value for each individual request.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ahash.c
crypto/algapi.c
include/crypto/algapi.h
include/crypto/hash.h
include/crypto/internal/hash.h
include/linux/crypto.h