Home
last modified time | relevance | path

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

123

/linux-6.6.21/include/crypto/
Dhash.h15 struct crypto_ahash;
166 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
168 int (*init_tfm)(struct crypto_ahash *tfm);
169 void (*exit_tfm)(struct crypto_ahash *tfm);
170 int (*clone_tfm)(struct crypto_ahash *dst, struct crypto_ahash *src);
252 struct crypto_ahash { struct
260 int (*setkey)(struct crypto_ahash *tfm, const u8 *key, argument
283 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() argument
285 return container_of(tfm, struct crypto_ahash, base); in __crypto_ahash_cast()
302 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
[all …]
Dcryptd.h35 struct crypto_ahash base;
39 struct crypto_ahash *tfm) in __cryptd_ahash_cast()
/linux-6.6.21/crypto/
Dahash.c130 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned()
150 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey()
156 static void ahash_set_needkey(struct crypto_ahash *tfm) in ahash_set_needkey()
165 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey()
189 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req()
290 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op()
304 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_final()
316 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_finup()
332 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_digest()
400 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_def_finup()
[all …]
Dhash.h35 struct crypto_ahash *crypto_clone_shash_ops_async(struct crypto_ahash *nhash,
36 struct crypto_ahash *hash);
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()
124 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv()
226 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail()
274 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt()
324 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm()
Dcryptd.c430 static int cryptd_hash_init_tfm(struct crypto_ahash *tfm) in cryptd_hash_init_tfm()
449 static int cryptd_hash_clone_tfm(struct crypto_ahash *ntfm, in cryptd_hash_clone_tfm()
450 struct crypto_ahash *tfm) in cryptd_hash_clone_tfm()
464 static void cryptd_hash_exit_tfm(struct crypto_ahash *tfm) in cryptd_hash_exit_tfm()
471 static int cryptd_hash_setkey(struct crypto_ahash *parent, in cryptd_hash_setkey()
487 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue()
516 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_complete()
534 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_init()
610 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_digest()
641 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_import()
[all …]
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()
283 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_decrypt()
310 struct crypto_ahash *auth; in crypto_authenc_init_tfm()
Dalgif_hash.c233 struct crypto_ahash *tfm; in hash_accept()
303 struct crypto_ahash *tfm; in hash_check_key()
414 struct crypto_ahash *tfm = private; in hash_accept_parent_nokey()
441 struct crypto_ahash *tfm = private; in hash_accept_parent()
/linux-6.6.21/include/crypto/internal/
Dhash.h136 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx()
141 static inline void *crypto_ahash_ctx_dma(struct crypto_ahash *tfm) in crypto_ahash_ctx_dma()
152 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg()
158 static inline void crypto_ahash_set_statesize(struct crypto_ahash *tfm, in crypto_ahash_set_statesize()
164 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize()
170 static inline void crypto_ahash_set_reqsize_dma(struct crypto_ahash *ahash, in crypto_ahash_set_reqsize_dma()
190 struct crypto_ahash *ahash) in ahash_alg_instance()
220 static inline struct crypto_ahash *crypto_spawn_ahash( in crypto_spawn_ahash()
/linux-6.6.21/drivers/crypto/starfive/
Djh7110-hash.c273 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_init()
291 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_update()
308 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_final()
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_finup()
342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_digest_fb()
357 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_digest()
381 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_export()
395 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in starfive_hash_import()
406 static int starfive_hash_init_tfm(struct crypto_ahash *hash, in starfive_hash_init_tfm()
434 static void starfive_hash_exit_tfm(struct crypto_ahash *hash) in starfive_hash_exit_tfm()
[all …]
/linux-6.6.21/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c47 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_ahash_digest_fb()
67 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process()
123 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init()
136 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update()
151 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final()
165 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup()
182 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import()
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export()
261 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in rk_hash_run()
344 static int rk_hash_init_tfm(struct crypto_ahash *tfm) in rk_hash_init_tfm()
[all …]
/linux-6.6.21/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c26 int sun8i_ce_hash_init_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_init_tfm()
64 void sun8i_ce_hash_exit_tfm(struct crypto_ahash *tfm) in sun8i_ce_hash_exit_tfm()
75 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_init()
89 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_export()
101 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_import()
113 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_final()
138 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_update()
153 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_finup()
181 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_digest_fb()
208 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ce_hash_need_fallback()
[all …]
Dsun8i-ce.h287 struct crypto_ahash *fallback_tfm;
360 int sun8i_ce_hash_init_tfm(struct crypto_ahash *tfm);
361 void sun8i_ce_hash_exit_tfm(struct crypto_ahash *tfm);
/linux-6.6.21/net/sunrpc/auth_gss/
Dgss_krb5_internal.h71 struct crypto_ahash *acceptor_sign;
72 struct crypto_ahash *initiator_sign;
73 struct crypto_ahash *initiator_integ;
74 struct crypto_ahash *acceptor_integ;
162 u32 gss_krb5_checksum(struct crypto_ahash *tfm, char *header, int hdrlen,
205 struct crypto_ahash *tfm, const struct xdr_buf *body,
/linux-6.6.21/include/net/
Dah.h7 struct crypto_ahash;
13 struct crypto_ahash *ahash;
/linux-6.6.21/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss.h232 struct crypto_ahash *fallback_tfm;
307 int sun8i_ss_hash_init_tfm(struct crypto_ahash *tfm);
308 void sun8i_ss_hash_exit_tfm(struct crypto_ahash *tfm);
317 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key,
Dsun8i-ss-hash.c64 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in sun8i_ss_hmac_setkey()
112 int sun8i_ss_hash_init_tfm(struct crypto_ahash *tfm) in sun8i_ss_hash_init_tfm()
150 void sun8i_ss_hash_exit_tfm(struct crypto_ahash *tfm) in sun8i_ss_hash_exit_tfm()
164 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_init()
178 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_export()
190 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_import()
202 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_final()
228 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_update()
243 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_finup()
272 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun8i_ss_hash_digest_fb()
[all …]
/linux-6.6.21/arch/x86/crypto/
Dghash-clmulni-intel_glue.c181 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
213 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
253 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
272 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
276 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/linux-6.6.21/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()
1121 struct crypto_ahash *tfm; in __safexcel_hmac_setkey()
1190 static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_alg_setkey()
1199 static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha1_setkey()
1352 static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha224_setkey()
1424 static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha256_setkey()
1610 static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha512_setkey()
1682 static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha384_setkey()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/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-6.6.21/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()
328 struct crypto_ahash *ahash; in ah6_output()
514 struct crypto_ahash *ahash; in ah6_input()
673 struct crypto_ahash *ahash; in ah6_init_state()
/linux-6.6.21/drivers/crypto/caam/
Dcaamhash.c205 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc()
261 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc()
313 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc()
424 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey()
493 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, in axcbc_setkey()
513 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, in acmac_setkey()
590 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_cpy()
641 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_switch()
821 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx()
946 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx()
[all …]
/linux-6.6.21/arch/arm/crypto/
Dghash-ce-glue.c218 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
232 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
267 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
289 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_import()
306 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
310 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/linux-6.6.21/drivers/crypto/
Dn2_core.c288 struct crypto_ahash *fallback_tfm;
315 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init()
327 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update()
341 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final()
354 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup()
379 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init()
381 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init()
405 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit()
414 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init()
417 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init()
[all …]

123