aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h18
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
30extern int fips_enabled;
31#else
32#define fips_enabled 0
33#endif
34
29/* Crypto notification events. */ 35/* Crypto notification events. */
30enum { 36enum {
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
84struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); 90struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
85struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, u32 mask); 91struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask);
86struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); 92struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
87 93
88int crypto_init_digest_ops(struct crypto_tfm *tfm); 94int crypto_init_digest_ops(struct crypto_tfm *tfm);
@@ -94,9 +100,11 @@ void crypto_exit_digest_ops(struct crypto_tfm *tfm);
94void crypto_exit_cipher_ops(struct crypto_tfm *tfm); 100void crypto_exit_cipher_ops(struct crypto_tfm *tfm);
95void crypto_exit_compress_ops(struct crypto_tfm *tfm); 101void crypto_exit_compress_ops(struct crypto_tfm *tfm);
96 102
103struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask);
97void crypto_larval_kill(struct crypto_alg *alg); 104void crypto_larval_kill(struct crypto_alg *alg);
98struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); 105struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask);
99void crypto_larval_error(const char *name, u32 type, u32 mask); 106void crypto_larval_error(const char *name, u32 type, u32 mask);
107void crypto_alg_tested(const char *name, int err);
100 108
101void crypto_shoot_alg(struct crypto_alg *alg); 109void crypto_shoot_alg(struct crypto_alg *alg);
102struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, 110struct 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
108int crypto_register_notifier(struct notifier_block *nb); 116int crypto_register_notifier(struct notifier_block *nb);
109int crypto_unregister_notifier(struct notifier_block *nb); 117int crypto_unregister_notifier(struct notifier_block *nb);
118int crypto_probing_notify(unsigned long val, void *v);
119
120int __init testmgr_init(void);
121void testmgr_exit(void);
110 122
111static inline void crypto_alg_put(struct crypto_alg *alg) 123static 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
142static inline int crypto_notify(unsigned long val, void *v) 154static 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 */