VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Herbert Xu <herbert@gondor.apana.org.au> 2021-06-17 15:28:10 +0800 committer: Herbert Xu <herbert@gondor.apana.org.au> 2021-06-24 14:51:35 +0800 commit: 5163ab505e489400b4738b2a5547ec83d2dff7bb parent: 74c66120fda6596ad57f41e1607b3a5d51ca143d
Commit Summary:
crypto: api - Move crypto attr definitions out of crypto.h
Diffstat:
1 file changed, 10 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 976ec9dfc76d..f00869af689f 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -29,6 +29,18 @@ struct crypto_larval {
 	u32 mask;
 };
 
+enum {
+	CRYPTOA_UNSPEC,
+	CRYPTOA_ALG,
+	CRYPTOA_TYPE,
+	__CRYPTOA_MAX,
+};
+
+#define CRYPTOA_MAX (__CRYPTOA_MAX - 1)
+
+/* Maximum number of (rtattr) parameters for each template. */
+#define CRYPTO_MAX_ATTRS 32
+
 extern struct list_head crypto_alg_list;
 extern struct rw_semaphore crypto_alg_sem;
 extern struct blocking_notifier_head crypto_chain;