Home
last modified time | relevance | path

Searched defs:alg (Results 1 – 25 of 201) sorted by relevance

123456789

/linux/crypto/
H A Dapi.c43 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg) in crypto_mod_get()
49 void crypto_mod_put(struct crypto_alg *alg) in crypto_mod_put()
61 struct crypto_alg *q, *alg = NULL; in __crypto_alg_lookup() local
93 static void crypto_larval_destroy(struct crypto_alg *alg) in crypto_larval_destroy()
128 struct crypto_alg *alg; in crypto_larval_add() local
200 static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg, in crypto_larval_wait()
256 struct crypto_alg *alg; in crypto_alg_lookup() local
292 struct crypto_alg *alg; in crypto_larval_lookup() local
339 struct crypto_alg *alg; in crypto_alg_mod_lookup() local
378 static unsigned int crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) in crypto_ctxsize()
[all …]
H A Dkpp.c21 struct sk_buff *skb, struct crypto_alg *alg) in crypto_kpp_report()
35 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_kpp_show()
43 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_exit_tfm() local
51 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_init_tfm() local
107 static void kpp_prepare_alg(struct kpp_alg *alg) in kpp_prepare_alg()
116 int crypto_register_kpp(struct kpp_alg *alg) in crypto_register_kpp()
125 void crypto_unregister_kpp(struct kpp_alg *alg) in crypto_unregister_kpp()
H A Dskcipher.c33 struct crypto_alg *alg) in __crypto_skcipher_alg()
42 struct skcipher_alg *alg; in skcipher_walk_virt() local
189 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_encrypt() local
202 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_decrypt() local
251 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_export() local
262 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_import() local
273 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm() local
281 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm() local
306 static unsigned int crypto_skcipher_extsize(struct crypto_alg *alg) in crypto_skcipher_extsize()
324 static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_skcipher_show()
[all …]
H A Dinternal.h29 struct crypto_alg alg; member
102 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) in crypto_cipher_ctxsize()
107 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) in crypto_compress_ctxsize()
132 static inline void *crypto_create_tfm(struct crypto_alg *alg, in crypto_create_tfm()
159 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) in crypto_alg_get()
167 static inline void crypto_alg_put(struct crypto_alg *alg) in crypto_alg_put()
183 static inline int crypto_is_larval(struct crypto_alg *alg) in crypto_is_larval()
188 static inline int crypto_is_dead(struct crypto_alg *alg) in crypto_is_dead()
193 static inline int crypto_is_moribund(struct crypto_alg *alg) in crypto_is_moribund()
H A Dsig.c21 struct sig_alg *alg = crypto_sig_alg(sig); in crypto_sig_exit_tfm() local
29 struct sig_alg *alg = crypto_sig_alg(sig); in crypto_sig_init_tfm() local
48 struct crypto_alg *alg) in crypto_sig_show()
54 struct crypto_alg *alg) in crypto_sig_report()
111 static int sig_prepare_alg(struct sig_alg *alg) in sig_prepare_alg()
137 int crypto_register_sig(struct sig_alg *alg) in crypto_register_sig()
150 void crypto_unregister_sig(struct sig_alg *alg) in crypto_unregister_sig()
H A Dcrypto_engine.c74 struct crypto_engine_alg *alg; in crypto_pump_requests() local
507 int crypto_engine_register_aead(struct aead_engine_alg *alg) in crypto_engine_register_aead()
515 void crypto_engine_unregister_aead(struct aead_engine_alg *alg) in crypto_engine_unregister_aead()
549 int crypto_engine_register_ahash(struct ahash_engine_alg *alg) in crypto_engine_register_ahash()
557 void crypto_engine_unregister_ahash(struct ahash_engine_alg *alg) in crypto_engine_unregister_ahash()
592 int crypto_engine_register_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_register_akcipher()
600 void crypto_engine_unregister_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_unregister_akcipher()
606 int crypto_engine_register_kpp(struct kpp_engine_alg *alg) in crypto_engine_register_kpp()
614 void crypto_engine_unregister_kpp(struct kpp_engine_alg *alg) in crypto_engine_unregister_kpp()
620 int crypto_engine_register_skcipher(struct skcipher_engine_alg *alg) in crypto_engine_register_skcipher()
[all …]
H A Dcrypto_user.c37 struct crypto_alg *q, *alg = NULL; in crypto_alg_match() local
71 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_cipher()
87 static int crypto_report_one(struct crypto_alg *alg, in crypto_report_one()
137 static int crypto_report_alg(struct crypto_alg *alg, in crypto_report_alg()
172 struct crypto_alg *alg; in crypto_report() local
212 struct crypto_alg *alg; in crypto_dump_report() local
246 struct crypto_alg *alg; in crypto_update_alg() local
282 struct crypto_alg *alg; in crypto_del_alg() local
322 struct crypto_alg *alg; in crypto_add_alg() local
429 struct crypto_alg *alg; in crypto_user_rcv_msg() local
H A Dlskcipher.c27 struct crypto_alg *alg) in __crypto_lskcipher_alg()
143 struct lskcipher_alg *alg = crypto_lskcipher_alg(tfm); in crypto_lskcipher_encrypt() local
152 struct lskcipher_alg *alg = crypto_lskcipher_alg(tfm); in crypto_lskcipher_decrypt() local
205 struct lskcipher_alg *alg = crypto_lskcipher_alg(*ctx); in crypto_lskcipher_encrypt_sg() local
214 struct lskcipher_alg *alg = crypto_lskcipher_alg(*ctx); in crypto_lskcipher_decrypt_sg() local
222 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher); in crypto_lskcipher_exit_tfm() local
230 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher); in crypto_lskcipher_init_tfm() local
250 struct seq_file *m, struct crypto_alg *alg) in crypto_lskcipher_show()
264 struct sk_buff *skb, struct crypto_alg *alg) in crypto_lskcipher_report()
344 static int lskcipher_prepare_alg(struct lskcipher_alg *alg) in lskcipher_prepare_alg()
[all …]
H A Daead.c112 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm() local
120 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm() local
136 struct sk_buff *skb, struct crypto_alg *alg) in crypto_aead_report()
155 static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) in crypto_aead_show()
213 static int aead_prepare_alg(struct aead_alg *alg) in aead_prepare_alg()
231 int crypto_register_aead(struct aead_alg *alg) in crypto_register_aead()
244 void crypto_unregister_aead(struct aead_alg *alg) in crypto_unregister_aead()
H A Dakcipher.c37 struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report()
52 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show()
60 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local
68 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local
119 static void akcipher_prepare_alg(struct akcipher_alg *alg) in akcipher_prepare_alg()
139 int crypto_register_akcipher(struct akcipher_alg *alg) in crypto_register_akcipher()
155 void crypto_unregister_akcipher(struct akcipher_alg *alg) in crypto_unregister_akcipher()
H A Drng.c59 static unsigned int seedsize(struct crypto_alg *alg) in seedsize()
67 struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report()
82 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) in crypto_rng_show()
171 int crypto_register_rng(struct rng_alg *alg) in crypto_register_rng()
186 void crypto_unregister_rng(struct rng_alg *alg) in crypto_unregister_rng()
H A Dshash.c44 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey()
305 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_exit_tfm() local
313 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_init_tfm() local
334 struct sk_buff *skb, struct crypto_alg *alg) in crypto_shash_report()
351 static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) in crypto_shash_show()
402 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_clone_shash() local
436 int hash_prepare_alg(struct hash_alg_common *alg) in hash_prepare_alg()
462 static int shash_prepare_alg(struct shash_alg *alg) in shash_prepare_alg()
520 int crypto_register_shash(struct shash_alg *alg) in crypto_register_shash()
533 void crypto_unregister_shash(struct shash_alg *alg) in crypto_unregister_shash()
H A Dsimd.c43 struct skcipher_alg alg; member
116 struct skcipher_alg *alg; in simd_skcipher_init() local
145 struct skcipher_alg *alg; in simd_skcipher_create_compat() local
261 struct aead_alg alg; member
342 struct aead_alg *alg; in simd_aead_init() local
370 struct aead_alg *alg; in simd_aead_create_compat() local
/linux/include/crypto/
H A Dsig.h106 static inline struct sig_alg *__crypto_sig_alg(struct crypto_alg *alg) in __crypto_sig_alg()
140 struct sig_alg *alg = crypto_sig_alg(tfm); in crypto_sig_keysize() local
157 struct sig_alg *alg = crypto_sig_alg(tfm); in crypto_sig_digestsize() local
174 struct sig_alg *alg = crypto_sig_alg(tfm); in crypto_sig_maxsize() local
196 struct sig_alg *alg = crypto_sig_alg(tfm); in crypto_sig_sign() local
219 struct sig_alg *alg = crypto_sig_alg(tfm); in crypto_sig_verify() local
240 struct sig_alg *alg = crypto_sig_alg(tfm); in crypto_sig_set_pubkey() local
261 struct sig_alg *alg = crypto_sig_alg(tfm); in crypto_sig_set_privkey() local
/linux/drivers/crypto/tegra/
H A Dtegra-se-key.c52 const u32 *key, u32 keylen, u16 slot, u32 alg) in tegra_key_prep_ins_cmd()
115 u32 keylen, u16 slot, u32 alg) in tegra_key_insert()
131 void tegra_key_invalidate(struct tegra_se *se, u32 keyid, u32 alg) in tegra_key_invalidate()
144 void tegra_key_invalidate_reserved(struct tegra_se *se, u32 keyid, u32 alg) in tegra_key_invalidate_reserved()
156 u32 keylen, u32 alg, u32 *keyid) in tegra_key_submit_reserved()
161 int tegra_key_submit(struct tegra_se *se, const u8 *key, u32 keylen, u32 alg, u32 *keyid) in tegra_key_submit()
/linux/scripts/crypto/
H A Dgen-hash-testvecs.py53 def hash_init(alg): argument
66 def compute_hash(alg, data): argument
87 def gen_unkeyed_testvecs(alg): argument
109 def gen_hmac_testvecs(alg): argument
140 alg = sys.argv[1] variable
/linux/fs/erofs/
H A Ddecompressor_crypto.c81 static struct crypto_acomp *z_erofs_crypto_get_engine(int alg) in z_erofs_crypto_get_engine()
128 int alg; in z_erofs_crypto_enable_engine() local
153 int alg; in z_erofs_crypto_disable_all_engines() local
170 int alg, len = 0; in z_erofs_crypto_show_engines() local
/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c30 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_stat_fb_inc() local
41 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_init_tfm() local
200 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_need_fallback() local
241 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_digest() local
323 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_run() local
H A Dsun8i-ce-cipher.c28 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_need_fallback() local
113 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_fallback() local
141 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ce_cipher_prepare() local
436 struct skcipher_alg *alg = crypto_skcipher_alg(sktfm); in sun8i_ce_cipher_init() local
/linux/include/crypto/internal/
H A Dhash.h55 struct ahash_alg alg; member
66 struct shash_alg alg; member
98 static inline bool crypto_shash_alg_has_setkey(struct shash_alg *alg) in crypto_shash_alg_has_setkey()
105 static inline bool crypto_shash_alg_needs_key(struct shash_alg *alg) in crypto_shash_alg_needs_key()
111 static inline bool crypto_hash_alg_needs_key(struct hash_alg_common *alg) in crypto_hash_alg_needs_key()
175 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) in __crypto_ahash_alg()
/linux/drivers/crypto/nx/
H A Dnx.c491 static int nx_register_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_register_skcipher()
497 static int nx_register_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_register_aead()
503 static int nx_register_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) in nx_register_shash()
511 static void nx_unregister_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_unregister_skcipher()
517 static void nx_unregister_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_unregister_aead()
523 static void nx_unregister_shash(struct shash_alg *alg, u32 fc, u32 mode, in nx_unregister_shash()
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_crypto.c160 struct libipw_crypto_alg *alg; in libipw_register_crypto_ops() local
181 struct libipw_crypto_alg *alg; in libipw_unregister_crypto_ops() local
204 struct libipw_crypto_alg *alg; in libipw_get_crypto_ops() local
/linux/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c128 enum sec_cipher_alg alg) in sec_alg_skcipher_init_template()
145 enum sec_cipher_alg alg) in sec_alg_skcipher_init_context()
229 enum sec_cipher_alg alg) in sec_alg_skcipher_setkey()
256 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_ecb() local
278 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_cbc() local
300 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_ctr() local
322 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_xts() local
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-prng.c8 struct rng_alg *alg = crypto_rng_alg(tfm); in sun4i_ss_prng_seed() local
20 struct rng_alg *alg = crypto_rng_alg(tfm); in sun4i_ss_prng_generate() local
/linux/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c108 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sl3516_ce_cipher_fallback() local
133 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sl3516_ce_cipher() local
320 struct skcipher_alg *alg = crypto_skcipher_alg(sktfm); in sl3516_ce_cipher_init() local

123456789