Home
last modified time | relevance | path

Searched refs:crypto_ahash (Results 1 – 25 of 68) sorted by relevance

123

/Linux-v5.15/include/crypto/
Dhash.h14 struct crypto_ahash;
142 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
144 int (*init_tfm)(struct crypto_ahash *tfm);
145 void (*exit_tfm)(struct crypto_ahash *tfm);
224 struct crypto_ahash { struct
232 int (*setkey)(struct crypto_ahash *tfm, const u8 *key, argument
254 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() argument
256 return container_of(tfm, struct crypto_ahash, base); in __crypto_ahash_cast()
273 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
276 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm()
[all …]
Dcryptd.h34 struct crypto_ahash base;
38 struct crypto_ahash *tfm) in __cryptd_ahash_cast()
/Linux-v5.15/crypto/
Dahash.c35 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg()
137 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned()
157 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey()
163 static void ahash_set_needkey(struct crypto_ahash *tfm) in ahash_set_needkey()
172 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey()
201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req()
331 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op()
342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_final()
356 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_finup()
370 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_digest()
[all …]
Dauthencesn.c32 struct crypto_ahash *auth;
62 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_setkey()
92 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail()
125 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv()
228 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail()
277 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt()
327 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm()
Dauthenc.c29 struct crypto_ahash *auth;
88 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey()
138 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv()
285 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_decrypt()
312 struct crypto_ahash *auth; in crypto_authenc_init_tfm()
/Linux-v5.15/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c21 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process()
83 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init()
96 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update()
111 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final()
125 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup()
142 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import()
155 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export()
197 struct crypto_ahash *tfm; in rk_ahash_start()
234 struct crypto_ahash *tfm; in rk_ahash_crypto_rx()
/Linux-v5.15/include/net/
Dah.h7 struct crypto_ahash;
13 struct crypto_ahash *ahash;
/Linux-v5.15/arch/x86/crypto/
Dghash-clmulni-intel_glue.c162 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
176 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
194 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
234 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
253 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
257 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/Linux-v5.15/arch/arm/crypto/
Dghash-ce-glue.c201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
215 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
233 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
272 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_import()
289 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
293 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/Linux-v5.15/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c76 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_init()
90 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_export()
102 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_import()
114 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_final()
137 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_update()
152 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_finup()
177 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_digest_fb()
219 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_digest()
253 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_run()
/Linux-v5.15/include/crypto/internal/
Dhash.h132 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx()
143 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize()
162 struct crypto_ahash *ahash) in ahash_alg_instance()
182 static inline struct crypto_ahash *crypto_spawn_ahash( in crypto_spawn_ahash()
/Linux-v5.15/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c76 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_init()
90 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_export()
102 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_import()
114 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_final()
137 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_update()
152 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_finup()
177 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_digest_fb()
284 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_digest()
321 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_run()
/Linux-v5.15/drivers/crypto/inside-secure/
Dsafexcel_hash.c34 struct crypto_ahash *fback;
233 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result()
524 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result()
1147 struct crypto_ahash *tfm; in __safexcel_hmac_setkey()
1216 static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_alg_setkey()
1225 static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha1_setkey()
1378 static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha224_setkey()
1450 static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha256_setkey()
1636 static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha512_setkey()
1708 static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha384_setkey()
[all …]
/Linux-v5.15/security/integrity/ima/
Dima_crypto.c58 static struct crypto_ahash *ima_ahash_tfm;
289 static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo) in ima_alloc_atfm()
291 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm()
311 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm()
330 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm()
441 struct crypto_ahash *tfm; in ima_calc_file_ahash()
664 struct crypto_ahash *tfm) in calc_buffer_ahash_atfm()
705 struct crypto_ahash *tfm; in calc_buffer_ahash()
/Linux-v5.15/net/ipv4/
Dah4.c25 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp()
49 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv()
55 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req()
68 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg()
154 struct crypto_ahash *ahash; in ah_output()
312 struct crypto_ahash *ahash; in ah_input()
478 struct crypto_ahash *ahash; in ah_init_state()
/Linux-v5.15/net/ipv6/
Dah6.c49 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp()
78 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv()
84 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req()
97 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg()
331 struct crypto_ahash *ahash; in ah6_output()
517 struct crypto_ahash *ahash; in ah6_input()
676 struct crypto_ahash *ahash; in ah6_init_state()
/Linux-v5.15/drivers/crypto/caam/
Dcaamhash.c200 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc()
256 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc()
308 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc()
421 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey()
484 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, in axcbc_setkey()
504 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, in acmac_setkey()
581 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_cpy()
632 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_switch()
697 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_edesc_alloc()
814 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx()
[all …]
/Linux-v5.15/drivers/crypto/
Dn2_core.c287 struct crypto_ahash *fallback_tfm;
314 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init()
326 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update()
340 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final()
353 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup()
378 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init()
380 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init()
404 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit()
413 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init()
416 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init()
[all …]
Dimg-hash.c114 struct crypto_ahash *fallback;
485 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_init()
550 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_update()
565 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_final()
579 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_finup()
595 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_import()
608 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_export()
620 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest()
/Linux-v5.15/drivers/crypto/ccp/
Dccp-crypto-sha.c30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete()
61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update()
184 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init()
272 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey()
317 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init()
Dccp-crypto-aes-cmac.c27 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_aes_cmac_complete()
58 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_cmac_update()
256 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey()
338 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init()
/Linux-v5.15/drivers/crypto/ccree/
Dcc_hash.c287 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_update_complete()
305 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_digest_complete()
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_complete()
345 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_result()
368 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_hmac()
421 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_digest()
559 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_update()
635 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_do_finup()
715 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_init()
726 static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, in cc_hash_setkey()
[all …]
/Linux-v5.15/drivers/net/wireless/intersil/orinoco/
Dmic.h15 struct crypto_ahash;
/Linux-v5.15/drivers/crypto/qce/
Dsha.c40 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done()
183 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update()
327 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey()
336 struct crypto_ahash *ahash_tfm; in qce_ahash_hmac_setkey()
393 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init()
/Linux-v5.15/drivers/crypto/keembay/
Dkeembay-ocs-hcu-core.c166 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_find_dev()
378 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in prepare_ipad()
416 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_do_one_request()
565 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_init()
654 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_fin_common()
747 static int kmb_ocs_hcu_setkey(struct crypto_ahash *tfm, const u8 *key, in kmb_ocs_hcu_setkey()
753 struct crypto_ahash *ahash_tfm; in kmb_ocs_hcu_setkey()

123