aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.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
commit5163ab505e489400b4738b2a5547ec83d2dff7bb (patch)
tree0f7dad1ee8a811f84a03f0ecb52be6089938249d /include/linux/crypto.h
parentcrypto: nx - Fix memcpy() over-reading in nonce (diff)
downloadlinux-dev-5163ab505e489400b4738b2a5547ec83d2dff7bb.tar.xz
linux-dev-5163ab505e489400b4738b2a5547ec83d2dff7bb.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 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 3b9263d6122f..855869e1fd32 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -643,27 +643,6 @@ struct crypto_comp {
struct crypto_tfm base;
};
-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
-
-struct crypto_attr_alg {
- char name[CRYPTO_MAX_ALG_NAME];
-};
-
-struct crypto_attr_type {
- u32 type;
- u32 mask;
-};
-
/*
* Transform user interface.
*/