diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-06-13 16:51:38 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-06-23 17:00:27 +0800 |
| commit | 1e2b7fcd3f075ff8c5b0e4474fe145d1c685f54f (patch) | |
| tree | 08222010cabc60c3132c09fc4c0d50974a4c3187 /crypto/ahash.c | |
| parent | 8c8dea2664fcfe861f10980059a116dfe61f536b (diff) | |
crypto: ahash - Stop legacy tfms from using the set_virt fallback path
Ensure that drivers that have not been converted to the ahash API
do not use the ahash_request_set_virt fallback path as they cannot
use the software fallback.
Reported-by: Eric Biggers <ebiggers@kernel.org>
Fixes: 9d7a0ab1c753 ("crypto: ahash - Handle partial blocks in API")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ahash.c')
| -rw-r--r-- | crypto/ahash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index bd9e49950201..7a51e0cf9322 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -350,6 +350,9 @@ static int ahash_do_req_chain(struct ahash_request *req, if (!crypto_ahash_need_fallback(tfm)) return -ENOSYS; + if (crypto_hash_no_export_core(tfm)) + return -ENOSYS; + { u8 state[HASH_MAX_STATESIZE]; |