]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: sig - Set maskset to CRYPTO_ALG_TYPE_MASK
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Nov 2024 09:11:33 +0000 (17:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 10 Dec 2024 05:44:21 +0000 (13:44 +0800)
As sig is now a standalone type, it no longer needs to have a wide
mask that includes akcipher.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sig.c

index 5e1f1f739da2ec227ca0839e95f86c6258ae574b..dfc7cae9080282f31277e6ed8fb10ffac40c2342 100644 (file)
@@ -15,8 +15,6 @@
 
 #include "internal.h"
 
-#define CRYPTO_ALG_TYPE_SIG_MASK       0x0000000e
-
 static void crypto_sig_exit_tfm(struct crypto_tfm *tfm)
 {
        struct crypto_sig *sig = __crypto_sig_tfm(tfm);
@@ -73,7 +71,7 @@ static const struct crypto_type crypto_sig_type = {
        .report = crypto_sig_report,
 #endif
        .maskclear = ~CRYPTO_ALG_TYPE_MASK,
-       .maskset = CRYPTO_ALG_TYPE_SIG_MASK,
+       .maskset = CRYPTO_ALG_TYPE_MASK,
        .type = CRYPTO_ALG_TYPE_SIG,
        .tfmsize = offsetof(struct crypto_sig, base),
 };