aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/crypto/acompress.h
diff options
context:
space:
mode:
authorBarry Song <song.bao.hua@hisilicon.com>2020-04-30 17:10:18 +1200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-05-08 15:30:41 +1000
commitc549226926ce9352dc6415931f4e96445759215d (patch)
tree2bfefddbba32b64a24e71f1d4366d544dc5ff960 /include/crypto/acompress.h
parentcrypto: engine - support for batch requests (diff)
downloadwireguard-linux-c549226926ce9352dc6415931f4e96445759215d.tar.xz
wireguard-linux-c549226926ce9352dc6415931f4e96445759215d.zip
crypto: acomp - search acomp with scomp backend in crypto_has_acomp
users may call crypto_has_acomp to confirm the existence of acomp before using crypto_acomp APIs. Right now, many acomp have scomp backend, for example, lz4, lzo, deflate etc. crypto_has_acomp will return false for them even though they support acomp APIs. Signed-off-by: Barry Song <song.bao.hua@hisilicon.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/acompress.h')
-rw-r--r--include/crypto/acompress.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/acompress.h b/include/crypto/acompress.h
index d873f999b334..2b4d2b06ccbd 100644
--- a/include/crypto/acompress.h
+++ b/include/crypto/acompress.h
@@ -157,7 +157,7 @@ static inline int crypto_has_acomp(const char *alg_name, u32 type, u32 mask)
{
type &= ~CRYPTO_ALG_TYPE_MASK;
type |= CRYPTO_ALG_TYPE_ACOMPRESS;
- mask |= CRYPTO_ALG_TYPE_MASK;
+ mask |= CRYPTO_ALG_TYPE_ACOMPRESS_MASK;
return crypto_has_alg(alg_name, type, mask);
}