diff options
author | 2025-05-04 21:33:16 +0800 | |
---|---|---|
committer | 2025-05-05 18:20:46 +0800 | |
commit | f4e365d5ca38941708fbe8356719e3436cef7627 (patch) | |
tree | df5276a1d5e61ee221fd30d5b2ee0dcf1a722ecb /crypto | |
parent | crypto: shash - Cap state size to HASH_MAX_STATESIZE (diff) | |
download | wireguard-linux-f4e365d5ca38941708fbe8356719e3436cef7627.tar.xz wireguard-linux-f4e365d5ca38941708fbe8356719e3436cef7627.zip |
crypto: shash - Mark shash algorithms as REQ_VIRT
Mark shash algorithms with the REQ_VIRT bit as they can handle
virtual addresses as is.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/shash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index 44a6df3132ad..dee391d47f51 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -450,6 +450,7 @@ static int shash_prepare_alg(struct shash_alg *alg) base->cra_type = &crypto_shash_type; base->cra_flags |= CRYPTO_ALG_TYPE_SHASH; + base->cra_flags |= CRYPTO_ALG_REQ_VIRT; /* * Handle missing optional functions. For each one we can either |