Home
last modified time | relevance | path

Searched defs:alg (Results 1 – 25 of 222) 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()
251 struct crypto_alg *alg; in crypto_alg_lookup() local
287 struct crypto_alg *alg; in crypto_larval_lookup() local
334 struct crypto_alg *alg; in crypto_alg_mod_lookup() local
373 static unsigned int crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) in crypto_ctxsize()
[all …]
H A Dalgapi.c32 static int crypto_check_alg(struct crypto_alg *alg) in crypto_check_alg()
82 static void crypto_destroy_instance(struct crypto_alg *alg) in crypto_destroy_instance()
101 static struct list_head *crypto_more_spawns(struct crypto_alg *alg, in crypto_more_spawns()
151 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, in crypto_remove_spawns()
231 static void crypto_alg_finish_registration(struct crypto_alg *alg, in crypto_alg_finish_registration()
259 static struct crypto_larval *crypto_alloc_test_larval(struct crypto_alg *alg) in crypto_alloc_test_larval()
288 __crypto_register_alg(struct crypto_alg *alg, struct list_head *algs_to_put) in __crypto_register_alg()
347 struct crypto_alg *alg; in crypto_alg_tested() local
397 struct crypto_alg *alg; in crypto_remove_final() local
407 int crypto_register_alg(struct crypto_alg *alg) in crypto_register_alg()
[all …]
H A Dacompress.c26 static inline struct acomp_alg *__crypto_acomp_alg(struct crypto_alg *alg) in __crypto_acomp_alg()
37 struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report()
51 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_acomp_show()
59 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_exit_tfm() local
67 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_init_tfm() local
86 static unsigned int crypto_acomp_extsize(struct crypto_alg *alg) in crypto_acomp_extsize()
156 void comp_prepare_alg(struct comp_alg_common *alg) in comp_prepare_alg()
163 int crypto_register_acomp(struct acomp_alg *alg) in crypto_register_acomp()
176 void crypto_unregister_acomp(struct acomp_alg *alg) in crypto_unregister_acomp()
H A Dinternal.h29 struct crypto_alg alg; member
87 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) in crypto_cipher_ctxsize()
92 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) in crypto_compress_ctxsize()
117 static inline void *crypto_create_tfm(struct crypto_alg *alg, in crypto_create_tfm()
144 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) in crypto_alg_get()
150 static inline void crypto_alg_put(struct crypto_alg *alg) in crypto_alg_put()
166 static inline int crypto_is_larval(struct crypto_alg *alg) in crypto_is_larval()
171 static inline int crypto_is_dead(struct crypto_alg *alg) in crypto_is_dead()
176 static inline int crypto_is_moribund(struct crypto_alg *alg) in crypto_is_moribund()
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
106 static void kpp_prepare_alg(struct kpp_alg *alg) in kpp_prepare_alg()
115 int crypto_register_kpp(struct kpp_alg *alg) in crypto_register_kpp()
124 void crypto_unregister_kpp(struct kpp_alg *alg) in crypto_unregister_kpp()
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_comp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_comp()
98 static int crypto_report_one(struct crypto_alg *alg, in crypto_report_one()
153 static int crypto_report_alg(struct crypto_alg *alg, in crypto_report_alg()
188 struct crypto_alg *alg; in crypto_report() local
228 struct crypto_alg *alg; in crypto_dump_report() local
262 struct crypto_alg *alg; in crypto_update_alg() local
298 struct crypto_alg *alg; in crypto_del_alg() local
338 struct crypto_alg *alg; in crypto_add_alg() local
[all …]
H A Dcrypto_engine.c77 struct crypto_engine_alg *alg; in crypto_pump_requests() local
568 int crypto_engine_register_aead(struct aead_engine_alg *alg) in crypto_engine_register_aead()
579 void crypto_engine_unregister_aead(struct aead_engine_alg *alg) in crypto_engine_unregister_aead()
613 int crypto_engine_register_ahash(struct ahash_engine_alg *alg) in crypto_engine_register_ahash()
624 void crypto_engine_unregister_ahash(struct ahash_engine_alg *alg) in crypto_engine_unregister_ahash()
659 int crypto_engine_register_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_register_akcipher()
670 void crypto_engine_unregister_akcipher(struct akcipher_engine_alg *alg) in crypto_engine_unregister_akcipher()
676 int crypto_engine_register_kpp(struct kpp_engine_alg *alg) in crypto_engine_register_kpp()
687 void crypto_engine_unregister_kpp(struct kpp_engine_alg *alg) in crypto_engine_unregister_kpp()
693 int crypto_engine_register_skcipher(struct skcipher_engine_alg *alg) in crypto_engine_register_skcipher()
[all …]
H A Dshash.c26 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey()
147 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_exit_tfm() local
155 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_init_tfm() local
190 struct sk_buff *skb, struct crypto_alg *alg) in crypto_shash_report()
207 static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) in crypto_shash_show()
257 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_clone_shash() local
290 int hash_prepare_alg(struct hash_alg_common *alg) in hash_prepare_alg()
306 static int shash_prepare_alg(struct shash_alg *alg) in shash_prepare_alg()
347 int crypto_register_shash(struct shash_alg *alg) in crypto_register_shash()
360 void crypto_unregister_shash(struct shash_alg *alg) in crypto_unregister_shash()
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()
343 static int lskcipher_prepare_alg(struct lskcipher_alg *alg) in lskcipher_prepare_alg()
[all …]
H A Daead.c111 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm() local
119 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm() local
135 struct sk_buff *skb, struct crypto_alg *alg) in crypto_aead_report()
154 static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) in crypto_aead_show()
211 static int aead_prepare_alg(struct aead_alg *alg) in aead_prepare_alg()
229 int crypto_register_aead(struct aead_alg *alg) in crypto_register_aead()
242 void crypto_unregister_aead(struct aead_alg *alg) in crypto_unregister_aead()
H A Dahash.c217 static void ahash_set_needkey(struct crypto_ahash *tfm, struct ahash_alg *alg) in ahash_set_needkey()
239 struct ahash_alg *alg = crypto_ahash_alg(tfm); in crypto_ahash_setkey() local
465 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_exit_tfm() local
473 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_init_tfm() local
488 static unsigned int crypto_ahash_extsize(struct crypto_alg *alg) in crypto_ahash_extsize()
504 struct sk_buff *skb, struct crypto_alg *alg) in crypto_ahash_report()
520 static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) in crypto_ahash_show()
570 struct crypto_alg *alg = &halg->base; in crypto_hash_alg_has_setkey() local
583 struct ahash_alg *alg; in crypto_clone_ahash() local
633 static int ahash_prepare_alg(struct ahash_alg *alg) in ahash_prepare_alg()
[all …]
H A Dskcipher.c87 struct crypto_alg *alg) in __crypto_skcipher_alg()
451 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in skcipher_walk_skcipher() local
637 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_encrypt() local
650 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_decrypt() local
699 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_export() local
710 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_import() local
721 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm() local
729 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm() local
754 static unsigned int crypto_skcipher_extsize(struct crypto_alg *alg) in crypto_skcipher_extsize()
772 static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_skcipher_show()
[all …]
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()
170 int crypto_register_rng(struct rng_alg *alg) in crypto_register_rng()
185 void crypto_unregister_rng(struct rng_alg *alg) in crypto_unregister_rng()
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
H A Dscompress.c41 struct sk_buff *skb, struct crypto_alg *alg) in crypto_scomp_report()
56 static void crypto_scomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_scomp_show()
280 int crypto_register_scomp(struct scomp_alg *alg) in crypto_register_scomp()
293 void crypto_unregister_scomp(struct scomp_alg *alg) in crypto_unregister_scomp()
/linux/fs/verity/
H A Dhash_algs.c45 struct fsverity_hash_alg *alg; in fsverity_get_hash_alg() local
111 const u8 *fsverity_prepare_hash_state(const struct fsverity_hash_alg *alg, in fsverity_prepare_hash_state()
209 int fsverity_hash_buffer(const struct fsverity_hash_alg *alg, in fsverity_hash_buffer()
224 const struct fsverity_hash_alg *alg = &fsverity_hash_algs[i]; in fsverity_check_hash_algs() local
/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c29 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_init_tfm() local
123 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_final() local
166 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_finup() local
194 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_digest_fb() local
209 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_need_fallback() local
242 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_digest() local
334 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_run() 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()
125 void tegra_key_invalidate(struct tegra_se *se, u32 keyid, u32 alg) in tegra_key_invalidate()
138 int tegra_key_submit(struct tegra_se *se, const u8 *key, u32 keylen, u32 alg, u32 *keyid) in tegra_key_submit()
H A Dtegra-se-hash.c26 unsigned int alg; member
37 unsigned int alg; member
47 static int tegra_sha_get_config(u32 alg) in tegra_sha_get_config()
462 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in tegra_sha_cra_init() local
993 static int tegra_hash_kac_manifest(u32 user, u32 alg, u32 keylen) in tegra_hash_kac_manifest()
1028 struct ahash_engine_alg *alg; in tegra_init_hash() local
/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c98 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_init_tfm() local
194 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_final() local
238 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_finup() local
267 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_digest_fb() local
343 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_need_fallback() local
393 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_digest() local
479 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_run() local
H A Dsun8i-ss-cipher.c26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_need_fallback() local
97 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher_fallback() local
189 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher() local
393 struct skcipher_alg *alg = crypto_skcipher_alg(sktfm); in sun8i_ss_cipher_init() local
/linux/include/crypto/internal/
H A Dhash.h37 struct ahash_alg alg; member
48 struct shash_alg alg; member
79 static inline bool crypto_shash_alg_has_setkey(struct shash_alg *alg) in crypto_shash_alg_has_setkey()
84 static inline bool crypto_shash_alg_needs_key(struct shash_alg *alg) in crypto_shash_alg_needs_key()
142 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) in __crypto_ahash_alg()
/linux/drivers/crypto/nx/
H A Dnx.c515 static int nx_register_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_register_skcipher()
521 static int nx_register_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_register_aead()
527 static int nx_register_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) in nx_register_shash()
535 static void nx_unregister_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_unregister_skcipher()
541 static void nx_unregister_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_unregister_aead()
547 static void nx_unregister_shash(struct shash_alg *alg, u32 fc, u32 mode, in nx_unregister_shash()
/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/ccp/
H A Dccp-crypto-sha.c187 struct ccp_crypto_ahash_alg *alg = in ccp_sha_init() local
334 struct ccp_crypto_ahash_alg *alg = ccp_crypto_ahash_alg(tfm); in ccp_hmac_sha_cra_init() local
416 struct ahash_alg *alg; in ccp_register_hmac_alg() local
460 struct ahash_alg *alg; in ccp_register_sha_alg() local

123456789