diff options
Diffstat (limited to 'crypto/internal.h')
-rw-r--r-- | crypto/internal.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index 683fcb2d91f4..8ef72d76092e 100644 --- a/crypto/internal.h +++ b/crypto/internal.h | |||
@@ -26,6 +26,12 @@ | |||
26 | #include <linux/rwsem.h> | 26 | #include <linux/rwsem.h> |
27 | #include <linux/slab.h> | 27 | #include <linux/slab.h> |
28 | 28 | ||
29 | #ifdef CONFIG_CRYPTO_FIPS | ||
30 | extern int fips_enabled; | ||
31 | #else | ||
32 | #define fips_enabled 0 | ||
33 | #endif | ||
34 | |||
29 | /* Crypto notification events. */ | 35 | /* Crypto notification events. */ |
30 | enum { | 36 | enum { |
31 | CRYPTO_MSG_ALG_REQUEST, | 37 | CRYPTO_MSG_ALG_REQUEST, |
@@ -82,7 +88,7 @@ static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) | |||
82 | } | 88 | } |
83 | 89 | ||
84 | struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); | 90 | struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); |
85 | struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, u32 mask); | 91 | struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask); |
86 | struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); | 92 | struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); |
87 | 93 | ||
88 | int crypto_init_digest_ops(struct crypto_tfm *tfm); | 94 | int crypto_init_digest_ops(struct crypto_tfm *tfm); |
@@ -94,9 +100,11 @@ void crypto_exit_digest_ops(struct crypto_tfm *tfm); | |||
94 | void crypto_exit_cipher_ops(struct crypto_tfm *tfm); | 100 | void crypto_exit_cipher_ops(struct crypto_tfm *tfm); |
95 | void crypto_exit_compress_ops(struct crypto_tfm *tfm); | 101 | void crypto_exit_compress_ops(struct crypto_tfm *tfm); |
96 | 102 | ||
103 | struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask); | ||
97 | void crypto_larval_kill(struct crypto_alg *alg); | 104 | void crypto_larval_kill(struct crypto_alg *alg); |
98 | struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); | 105 | struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); |
99 | void crypto_larval_error(const char *name, u32 type, u32 mask); | 106 | void crypto_larval_error(const char *name, u32 type, u32 mask); |
107 | void crypto_alg_tested(const char *name, int err); | ||
100 | 108 | ||
101 | void crypto_shoot_alg(struct crypto_alg *alg); | 109 | void crypto_shoot_alg(struct crypto_alg *alg); |
102 | struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, | 110 | struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, |
@@ -107,6 +115,10 @@ int crypto_register_instance(struct crypto_template *tmpl, | |||
107 | 115 | ||
108 | int crypto_register_notifier(struct notifier_block *nb); | 116 | int crypto_register_notifier(struct notifier_block *nb); |
109 | int crypto_unregister_notifier(struct notifier_block *nb); | 117 | int crypto_unregister_notifier(struct notifier_block *nb); |
118 | int crypto_probing_notify(unsigned long val, void *v); | ||
119 | |||
120 | int __init testmgr_init(void); | ||
121 | void testmgr_exit(void); | ||
110 | 122 | ||
111 | static inline void crypto_alg_put(struct crypto_alg *alg) | 123 | static inline void crypto_alg_put(struct crypto_alg *alg) |
112 | { | 124 | { |
@@ -139,9 +151,9 @@ static inline int crypto_is_moribund(struct crypto_alg *alg) | |||
139 | return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING); | 151 | return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING); |
140 | } | 152 | } |
141 | 153 | ||
142 | static inline int crypto_notify(unsigned long val, void *v) | 154 | static inline void crypto_notify(unsigned long val, void *v) |
143 | { | 155 | { |
144 | return blocking_notifier_call_chain(&crypto_chain, val, v); | 156 | blocking_notifier_call_chain(&crypto_chain, val, v); |
145 | } | 157 | } |
146 | 158 | ||
147 | #endif /* _CRYPTO_INTERNAL_H */ | 159 | #endif /* _CRYPTO_INTERNAL_H */ |