Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c40 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_ahash_digest_fb()
56 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process()
79 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_reg_init()
114 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init()
127 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update()
142 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final()
156 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup()
173 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import()
186 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export()
221 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_hash_prepare()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/net/
Dah.h7 struct crypto_ahash;
13 struct crypto_ahash *ahash;
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/
Dsafexcel_hash.c32 struct crypto_ahash *fback;
231 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result()
522 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result()
1145 struct crypto_ahash *tfm; in __safexcel_hmac_setkey()
1214 static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_alg_setkey()
1223 static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha1_setkey()
1376 static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha224_setkey()
1448 static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha256_setkey()
1634 static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha512_setkey()
1706 static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha384_setkey()
[all …]
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_crypto.c58 static struct crypto_ahash *ima_ahash_tfm;
290 static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo) in ima_alloc_atfm()
292 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm()
312 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm()
331 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm()
442 struct crypto_ahash *tfm; in ima_calc_file_ahash()
665 struct crypto_ahash *tfm) in calc_buffer_ahash_atfm()
706 struct crypto_ahash *tfm; in calc_buffer_ahash()
/kernel/linux/linux-5.10/drivers/crypto/qce/
Dsha.c34 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done()
142 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export()
173 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common()
237 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update()
362 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey()
371 struct crypto_ahash *ahash_tfm; in qce_ahash_hmac_setkey()
428 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init()
/kernel/linux/linux-5.10/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()
477 struct crypto_ahash *ahash; in ah_init_state()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/crypto/
Dn2_core.c286 struct crypto_ahash *fallback_tfm;
313 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init()
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update()
339 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final()
352 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup()
377 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init()
379 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init()
403 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit()
412 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init()
415 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init()
[all …]
Dimg-hash.c113 struct crypto_ahash *fallback;
488 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_init()
553 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_update()
568 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_final()
582 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_finup()
598 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_import()
611 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_export()
623 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-sha.c29 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete()
60 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update()
183 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init()
271 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey()
316 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()
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/orinoco/
Dmic.h15 struct crypto_ahash;
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/crypto/ux500/hash/
Dhash_core.c551 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ux500_hash_init()
856 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_dma_final()
963 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_final()
1072 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_update()
1340 static int hash_setkey(struct crypto_ahash *tfm, in hash_setkey()
1362 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha1_init()
1375 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha256_init()
1428 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha1_init()
1441 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha256_init()
1482 static int hmac_sha1_setkey(struct crypto_ahash *tfm, in hmac_sha1_setkey()
[all …]

123