summaryrefslogtreecommitdiff
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2021-06-17 15:28:10 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-06-24 14:51:35 +0800
commit3e3e83c4588eb64c777ce30e3166fd42f109be39 (patch)
treedec1debb144b18cd6f4210f5607338fc500176ff /crypto/internal.h
parent0131de81aa64011467f83817ebd9e191dba764ff (diff)
downloadlinux-crypto-3e3e83c4588eb64c777ce30e3166fd42f109be39.tar.gz
linux-crypto-3e3e83c4588eb64c777ce30e3166fd42f109be39.zip
crypto: api - Move crypto attr definitions out of crypto.h
The definitions for crypto_attr-related types and enums are not needed by most Crypto API users. This patch moves them out of crypto.h and into algapi.h/internal.h depending on the extent of their use. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 976ec9df..f00869af 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;