Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/include/crypto/
H A 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 …]
H A Dcryptd.h34 struct crypto_ahash base;
38 struct crypto_ahash *tfm) in __cryptd_ahash_cast()
/OK3568_Linux_fs/kernel/crypto/
H A 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 …]
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_v1_ahash.c26 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_alg_ctx_cast()
50 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process()
131 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init()
144 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update()
159 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final()
173 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup()
190 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import()
203 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export()
248 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_start()
283 struct crypto_ahash *tfm; in rk_ahash_crypto_rx()
H A Drk_crypto_ahash_utils.c49 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_ctx_cast()
59 struct rk_crypto_algt *rk_ahash_get_algt(struct crypto_ahash *tfm) in rk_ahash_get_algt()
98 struct crypto_ahash *ahash_tfm; in rk_ahash_fallback_digest()
145 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_get_zero_result()
155 int rk_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) in rk_ahash_hmac_setkey()
197 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init()
210 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update()
226 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final()
250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup()
286 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_start()
[all …]
H A 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()
H A Drk_crypto_ahash_utils.h15 struct rk_crypto_algt *rk_ahash_get_algt(struct crypto_ahash *tfm);
19 int rk_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen);
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ce/
H A 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()
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A 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()
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/
H A 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()
/OK3568_Linux_fs/kernel/include/crypto/internal/
H A 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()
/OK3568_Linux_fs/kernel/include/net/
H A Dah.h7 struct crypto_ahash;
13 struct crypto_ahash *ahash;
/OK3568_Linux_fs/kernel/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c33 struct crypto_ahash *fback;
232 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result()
523 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result()
1146 struct crypto_ahash *tfm; in __safexcel_hmac_setkey()
1215 static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_alg_setkey()
1224 static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha1_setkey()
1377 static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha224_setkey()
1449 static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha256_setkey()
1635 static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha512_setkey()
1707 static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha384_setkey()
[all …]
/OK3568_Linux_fs/kernel/security/integrity/ima/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/qce/
H A 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()
/OK3568_Linux_fs/kernel/net/ipv4/
H A 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()
/OK3568_Linux_fs/kernel/net/ipv6/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/caam/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/crypto/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/crypto/ccree/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/crypto/ccp/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/ux500/hash/
H A 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 …]

1234