internal.h (da7f033ddc9fdebb3223b0bf88a2a2ab5b797608) | internal.h (73d3864a4823abda19ebc4387b6ddcbf416e3a77) |
---|---|
1/* 2 * Cryptographic API. 3 * 4 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> 5 * Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the Free --- 80 unchanged lines hidden (view full) --- 89int crypto_init_digest_ops_async(struct crypto_tfm *tfm); 90int crypto_init_cipher_ops(struct crypto_tfm *tfm); 91int crypto_init_compress_ops(struct crypto_tfm *tfm); 92 93void crypto_exit_digest_ops(struct crypto_tfm *tfm); 94void crypto_exit_cipher_ops(struct crypto_tfm *tfm); 95void crypto_exit_compress_ops(struct crypto_tfm *tfm); 96 | 1/* 2 * Cryptographic API. 3 * 4 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> 5 * Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the Free --- 80 unchanged lines hidden (view full) --- 89int crypto_init_digest_ops_async(struct crypto_tfm *tfm); 90int crypto_init_cipher_ops(struct crypto_tfm *tfm); 91int crypto_init_compress_ops(struct crypto_tfm *tfm); 92 93void crypto_exit_digest_ops(struct crypto_tfm *tfm); 94void crypto_exit_cipher_ops(struct crypto_tfm *tfm); 95void crypto_exit_compress_ops(struct crypto_tfm *tfm); 96 |
97struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask); |
|
97void crypto_larval_kill(struct crypto_alg *alg); 98struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); 99void crypto_larval_error(const char *name, u32 type, u32 mask); | 98void crypto_larval_kill(struct crypto_alg *alg); 99struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); 100void crypto_larval_error(const char *name, u32 type, u32 mask); |
101void crypto_alg_tested(const char *name, int err); |
|
100 101void crypto_shoot_alg(struct crypto_alg *alg); 102struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, 103 u32 mask); 104 105int crypto_register_instance(struct crypto_template *tmpl, 106 struct crypto_instance *inst); 107 108int crypto_register_notifier(struct notifier_block *nb); 109int crypto_unregister_notifier(struct notifier_block *nb); | 102 103void crypto_shoot_alg(struct crypto_alg *alg); 104struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, 105 u32 mask); 106 107int crypto_register_instance(struct crypto_template *tmpl, 108 struct crypto_instance *inst); 109 110int crypto_register_notifier(struct notifier_block *nb); 111int crypto_unregister_notifier(struct notifier_block *nb); |
112int crypto_probing_notify(unsigned long val, void *v); |
|
110 111int __init testmgr_init(void); 112void testmgr_exit(void); 113 114static inline void crypto_alg_put(struct crypto_alg *alg) 115{ 116 if (atomic_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy) 117 alg->cra_destroy(alg); --- 19 unchanged lines hidden (view full) --- 137 return alg->cra_flags & CRYPTO_ALG_DEAD; 138} 139 140static inline int crypto_is_moribund(struct crypto_alg *alg) 141{ 142 return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING); 143} 144 | 113 114int __init testmgr_init(void); 115void testmgr_exit(void); 116 117static inline void crypto_alg_put(struct crypto_alg *alg) 118{ 119 if (atomic_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy) 120 alg->cra_destroy(alg); --- 19 unchanged lines hidden (view full) --- 140 return alg->cra_flags & CRYPTO_ALG_DEAD; 141} 142 143static inline int crypto_is_moribund(struct crypto_alg *alg) 144{ 145 return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING); 146} 147 |
145static inline int crypto_notify(unsigned long val, void *v) | 148static inline void crypto_notify(unsigned long val, void *v) |
146{ | 149{ |
147 return blocking_notifier_call_chain(&crypto_chain, val, v); | 150 blocking_notifier_call_chain(&crypto_chain, val, v); |
148} 149 150#endif /* _CRYPTO_INTERNAL_H */ 151 | 151} 152 153#endif /* _CRYPTO_INTERNAL_H */ 154 |