diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-08-21 07:08:13 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:16:30 -0400 |
commit | cce9e06d100df19a327b19f23adad76e7bf63edd (patch) | |
tree | ce10f50679db9ed8db92912c104eef1f05efc3c5 /crypto/internal.h | |
parent | 9409f38a0c8773c04bff8dda8c552d7ea013d956 (diff) |
[CRYPTO] api: Split out low-level API
The crypto API is made up of the part facing users such as IPsec and the
low-level part which is used by cryptographic entities such as algorithms.
This patch splits out the latter so that the two APIs are more clearly
delineated. As a bonus the low-level API can now be modularised if all
algorithms are built as modules.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r-- | crypto/internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index 959e602909a6..26f47d331551 100644 --- a/crypto/internal.h +++ b/crypto/internal.h | |||
@@ -12,7 +12,8 @@ | |||
12 | */ | 12 | */ |
13 | #ifndef _CRYPTO_INTERNAL_H | 13 | #ifndef _CRYPTO_INTERNAL_H |
14 | #define _CRYPTO_INTERNAL_H | 14 | #define _CRYPTO_INTERNAL_H |
15 | #include <linux/crypto.h> | 15 | |
16 | #include <crypto/algapi.h> | ||
16 | #include <linux/mm.h> | 17 | #include <linux/mm.h> |
17 | #include <linux/highmem.h> | 18 | #include <linux/highmem.h> |
18 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
@@ -64,9 +65,12 @@ static inline void crypto_free_hmac_block(struct crypto_tfm *tfm) | |||
64 | 65 | ||
65 | #ifdef CONFIG_PROC_FS | 66 | #ifdef CONFIG_PROC_FS |
66 | void __init crypto_init_proc(void); | 67 | void __init crypto_init_proc(void); |
68 | void __exit crypto_exit_proc(void); | ||
67 | #else | 69 | #else |
68 | static inline void crypto_init_proc(void) | 70 | static inline void crypto_init_proc(void) |
69 | { } | 71 | { } |
72 | static inline void crypto_exit_proc(void) | ||
73 | { } | ||
70 | #endif | 74 | #endif |
71 | 75 | ||
72 | static inline unsigned int crypto_digest_ctxsize(struct crypto_alg *alg, | 76 | static inline unsigned int crypto_digest_ctxsize(struct crypto_alg *alg, |