Home
last modified time | relevance | path

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

123

/Linux-v5.4/include/crypto/
Dhash.h14 struct crypto_ahash;
136 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
203 struct crypto_ahash { struct
211 int (*setkey)(struct crypto_ahash *tfm, const u8 *key, argument
233 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() argument
235 return container_of(tfm, struct crypto_ahash, base); in __crypto_ahash_cast()
252 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
255 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm()
264 static inline void crypto_free_ahash(struct crypto_ahash *tfm) in crypto_free_ahash()
281 static inline const char *crypto_ahash_alg_name(struct crypto_ahash *tfm) in crypto_ahash_alg_name()
[all …]
Dcryptd.h34 struct crypto_ahash base;
38 struct crypto_ahash *tfm) in __cryptd_ahash_cast()
/Linux-v5.4/crypto/
Dahash.c34 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg()
168 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned()
188 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey()
194 static void ahash_set_needkey(struct crypto_ahash *tfm) in ahash_set_needkey()
203 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey()
232 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req()
362 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op()
373 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_final()
387 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_finup()
401 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()
102 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail()
135 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv()
238 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail()
287 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt()
337 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()
148 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv()
295 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_decrypt()
322 struct crypto_ahash *auth; in crypto_authenc_init_tfm()
/Linux-v5.4/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c20 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process()
82 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_init()
95 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_update()
110 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_final()
124 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_finup()
141 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_import()
154 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in rk_ahash_export()
196 struct crypto_ahash *tfm; in rk_ahash_start()
233 struct crypto_ahash *tfm; in rk_ahash_crypto_rx()
/Linux-v5.4/include/net/
Dah.h7 struct crypto_ahash;
13 struct crypto_ahash *ahash;
/Linux-v5.4/arch/x86/crypto/
Dghash-clmulni-intel_glue.c164 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
178 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
196 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
236 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
255 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
259 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/Linux-v5.4/arch/arm/crypto/
Dghash-ce-glue.c206 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
220 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
238 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
255 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
277 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_import()
294 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
298 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/Linux-v5.4/security/integrity/ima/
Dima_crypto.c60 static struct crypto_ahash *ima_ahash_tfm;
165 static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo) in ima_alloc_atfm()
167 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm()
187 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm()
206 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm()
317 struct crypto_ahash *tfm; in ima_calc_file_ahash()
533 struct crypto_ahash *tfm) in calc_buffer_ahash_atfm()
574 struct crypto_ahash *tfm; in calc_buffer_ahash()
/Linux-v5.4/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()
/Linux-v5.4/drivers/crypto/qce/
Dsha.c33 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done()
141 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export()
172 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common()
228 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update()
344 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey()
353 struct crypto_ahash *ahash_tfm; in qce_ahash_hmac_setkey()
412 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init()
Dsha.h62 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl()
/Linux-v5.4/include/crypto/internal/
Dhash.h126 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx()
137 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize()
181 static inline struct crypto_ahash *crypto_spawn_ahash( in crypto_spawn_ahash()
/Linux-v5.4/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()
675 struct crypto_ahash *ahash; in ah6_init_state()
/Linux-v5.4/drivers/crypto/caam/
Dcaamhash.c222 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc()
278 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc()
330 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc()
443 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey()
507 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, in axcbc_setkey()
529 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, in acmac_setkey()
605 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done()
633 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi()
665 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src()
693 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst()
[all …]
/Linux-v5.4/drivers/crypto/ccp/
Dccp-crypto-sha.c28 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete()
59 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update()
182 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init()
270 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey()
322 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()
339 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init()
/Linux-v5.4/drivers/net/wireless/intersil/orinoco/
Dmic.h15 struct crypto_ahash;
/Linux-v5.4/drivers/crypto/ccree/
Dcc_hash.c280 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_update_complete()
298 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_digest_complete()
318 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_complete()
338 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_result()
362 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_hmac()
415 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_digest()
552 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_update()
628 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_do_finup()
708 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_init()
719 static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, in cc_hash_setkey()
[all …]
/Linux-v5.4/drivers/crypto/
Dimg-hash.c112 struct crypto_ahash *fallback;
483 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_init()
548 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_update()
563 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_final()
577 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_finup()
593 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_import()
606 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_export()
618 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest()
Dn2_core.c285 struct crypto_ahash *fallback_tfm;
312 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init()
324 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update()
338 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final()
351 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup()
376 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init()
378 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init()
402 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit()
411 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init()
414 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init()
[all …]
Datmel-sha.c427 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_init()
1755 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_setup()
1816 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_prehash_key_done()
1833 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_compute_ipad_hash()
1852 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_compute_opad_hash()
1868 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_setup_done()
1916 static int atmel_sha_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in atmel_sha_hmac_setkey()
1944 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_init_done()
1961 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_final()
2020 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_digest2()
[all …]
/Linux-v5.4/drivers/crypto/ux500/hash/
Dhash_core.c551 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in 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()
1071 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_update()
1333 static int hash_setkey(struct crypto_ahash *tfm, in hash_setkey()
1355 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha1_init()
1368 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha256_init()
1421 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha1_init()
1434 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha256_init()
1475 static int hmac_sha1_setkey(struct crypto_ahash *tfm, in hmac_sha1_setkey()
[all …]
/Linux-v5.4/drivers/crypto/inside-secure/
Dsafexcel_hash.c183 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result()
417 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result()
1010 struct crypto_ahash *tfm; in safexcel_hmac_setkey()
1056 static int safexcel_hmac_alg_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_alg_setkey()
1080 static int safexcel_hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha1_setkey()
1228 static int safexcel_hmac_sha224_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha224_setkey()
1298 static int safexcel_hmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha256_setkey()
1478 static int safexcel_hmac_sha512_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha512_setkey()
1548 static int safexcel_hmac_sha384_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_sha384_setkey()
1696 static int safexcel_hmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, in safexcel_hmac_md5_setkey()

123