]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: api - Move struct crypto_type into internal.h
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 25 Feb 2025 05:03:26 +0000 (13:03 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 08:23:22 +0000 (16:23 +0800)
Move the definition of struct crypto_type into internal.h as it
is only used by API implementors and not algorithm implementors.

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

index 46b661be0f90fe86d6f8da5a0655e3538152a4ac..08d43b40e7db1f99ba6bb91aebbf79cd7a3303a1 100644 (file)
@@ -33,6 +33,20 @@ struct crypto_larval {
        bool test_started;
 };
 
+struct crypto_type {
+       unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
+       unsigned int (*extsize)(struct crypto_alg *alg);
+       int (*init_tfm)(struct crypto_tfm *tfm);
+       void (*show)(struct seq_file *m, struct crypto_alg *alg);
+       int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
+       void (*free)(struct crypto_instance *inst);
+
+       unsigned int type;
+       unsigned int maskclear;
+       unsigned int maskset;
+       unsigned int tfmsize;
+};
+
 enum {
        CRYPTOA_UNSPEC,
        CRYPTOA_ALG,
index 11065978d3607b79c00bb27ee242ee0a2f4dc8ed..94989b2e1350f1849a2eb4b06365baf4c77dc05e 100644 (file)
@@ -55,20 +55,6 @@ struct scatterlist;
 struct seq_file;
 struct sk_buff;
 
-struct crypto_type {
-       unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
-       unsigned int (*extsize)(struct crypto_alg *alg);
-       int (*init_tfm)(struct crypto_tfm *tfm);
-       void (*show)(struct seq_file *m, struct crypto_alg *alg);
-       int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
-       void (*free)(struct crypto_instance *inst);
-
-       unsigned int type;
-       unsigned int maskclear;
-       unsigned int maskset;
-       unsigned int tfmsize;
-};
-
 struct crypto_instance {
        struct crypto_alg alg;