Home
last modified time | relevance | path

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

/linux-4.4.14/include/crypto/
Dhash.h18 struct crypto_ahash;
136 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
195 struct crypto_ahash { struct
203 int (*setkey)(struct crypto_ahash *tfm, const u8 *key, argument
226 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() argument
228 return container_of(tfm, struct crypto_ahash, base); in __crypto_ahash_cast()
245 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
248 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm()
257 static inline void crypto_free_ahash(struct crypto_ahash *tfm) in crypto_free_ahash()
263 struct crypto_ahash *tfm) in crypto_ahash_alignmask()
[all …]
Dcryptd.h37 struct crypto_ahash base;
41 struct crypto_ahash *tfm) in __cryptd_ahash_cast()
Dmcryptd.h18 struct crypto_ahash base;
22 struct crypto_ahash *tfm) in __mcryptd_ahash_cast()
/linux-4.4.14/include/net/
Dah.h6 struct crypto_ahash;
12 struct crypto_ahash *ahash;
/linux-4.4.14/crypto/
Dahash.c37 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg()
188 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned()
208 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey()
220 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey()
234 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req()
353 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op()
428 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_def_finup()
451 struct crypto_ahash *hash = __crypto_ahash_cast(tfm); in crypto_ahash_init_tfm()
535 .tfmsize = offsetof(struct crypto_ahash, base),
539 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, in crypto_alloc_ahash()
Dauthencesn.c37 struct crypto_ahash *auth;
67 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_setkey()
106 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail()
139 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv()
239 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail()
283 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt()
333 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm()
Dauthenc.c34 struct crypto_ahash *auth;
85 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey()
144 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv()
293 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_decrypt()
320 struct crypto_ahash *auth; in crypto_authenc_init_tfm()
Dalgif_hash.c38 struct crypto_ahash *hash;
356 struct crypto_ahash *hash; in hash_bind()
408 struct crypto_ahash *hash = tfm->hash; in hash_accept_parent_nokey()
Dmcryptd.c301 static int mcryptd_hash_setkey(struct crypto_ahash *parent, in mcryptd_hash_setkey()
323 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mcryptd_hash_enqueue()
601 struct crypto_ahash *tfm; in mcryptd_alloc_ahash()
Dcryptd.c429 static int cryptd_hash_setkey(struct crypto_ahash *parent, in cryptd_hash_setkey()
449 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue()
923 struct crypto_ahash *tfm; in cryptd_alloc_ahash()
Dshash.c201 static int shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in shash_async_setkey()
336 struct crypto_ahash *crt = __crypto_ahash_cast(tfm); in crypto_init_shash_ops_async()
Dchacha20poly1305.c35 struct crypto_ahash *poly;
520 struct crypto_ahash *poly; in chachapoly_init()
Dgcm.c33 struct crypto_ahash *ghash;
116 struct crypto_ahash *ghash = ctx->ghash; in crypto_gcm_setkey()
570 struct crypto_ahash *ghash; in crypto_gcm_init_tfm()
Dtcrypt.c954 struct crypto_ahash *tfm; in test_ahash_speed()
966 get_driver_name(crypto_ahash, tfm)); in test_ahash_speed()
Dtestmgr.c201 static int __test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, in __test_hash()
400 static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, in test_hash()
1668 struct crypto_ahash *tfm; in alg_test_hash()
/linux-4.4.14/arch/arm/crypto/
Dghash-ce-glue.c153 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
177 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
210 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
229 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
233 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/linux-4.4.14/arch/x86/crypto/
Dghash-clmulni-intel_glue.c167 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init()
191 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update()
209 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_final()
224 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_digest()
243 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey()
247 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
/linux-4.4.14/include/crypto/internal/
Dhash.h131 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx()
142 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize()
176 static inline struct crypto_ahash *crypto_spawn_ahash( in crypto_spawn_ahash()
195 struct crypto_ahash *tfm) in ahash_tfm_in_queue()
/linux-4.4.14/security/integrity/ima/
Dima_crypto.c68 static struct crypto_ahash *ima_ahash_tfm;
171 static struct crypto_ahash *ima_alloc_atfm(enum hash_algo algo) in ima_alloc_atfm()
173 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm()
193 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm()
229 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm()
339 struct crypto_ahash *tfm; in ima_calc_file_ahash()
/linux-4.4.14/net/ipv4/
Dah4.c23 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp()
47 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv()
53 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req()
66 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg()
152 struct crypto_ahash *ahash; in ah_output()
305 struct crypto_ahash *ahash; in ah_input()
468 struct crypto_ahash *ahash; in ah_init_state()
/linux-4.4.14/drivers/crypto/qce/
Dsha.c41 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done()
144 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export()
175 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common()
231 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in qce_ahash_update()
363 static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in qce_ahash_hmac_setkey()
372 struct crypto_ahash *ahash_tfm; in qce_ahash_hmac_setkey()
438 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init()
Dsha.h70 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl()
Dcommon.c234 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash()
/linux-4.4.14/net/ipv6/
Dah6.c60 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp()
89 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv()
95 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req()
108 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg()
341 struct crypto_ahash *ahash; in ah6_output()
522 struct crypto_ahash *ahash; in ah6_input()
677 struct crypto_ahash *ahash; in ah6_init_state()
/linux-4.4.14/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()
162 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init()
250 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey()
304 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init()
Dccp-crypto-aes-cmac.c30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_aes_cmac_complete()
61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_cmac_update()
259 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey()
341 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init()
/linux-4.4.14/drivers/crypto/caam/
Dcaamhash.c319 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc()
520 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey()
628 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_unmap_ctx()
642 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done()
677 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_bi()
712 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_src()
747 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done_ctx_dst()
780 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_update_ctx()
902 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_final_ctx()
985 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_finup_ctx()
[all …]
/linux-4.4.14/drivers/crypto/ux500/hash/
Dhash_core.c566 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_init()
871 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_dma_final()
977 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_final()
1084 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hash_hw_update()
1346 static int hash_setkey(struct crypto_ahash *tfm, in hash_setkey()
1368 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha1_init()
1381 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_sha256_init()
1424 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha1_init()
1437 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in hmac_sha256_init()
1478 static int hmac_sha1_setkey(struct crypto_ahash *tfm, in hmac_sha1_setkey()
[all …]
/linux-4.4.14/drivers/crypto/
Dn2_core.c279 struct crypto_ahash *fallback_tfm;
306 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_init()
318 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_update()
332 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_final()
345 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in n2_hash_async_finup()
360 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init()
362 struct crypto_ahash *fallback_tfm; in n2_hash_cra_init()
386 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit()
395 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init()
398 struct crypto_ahash *fallback_tfm; in n2_hmac_cra_init()
[all …]
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()
592 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest()
Dbfin_crc.c130 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_init()
417 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_final()
430 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_finup()
453 static int bfin_crypto_crc_setkey(struct crypto_ahash *tfm, const u8 *key, in bfin_crypto_crc_setkey()
Dmxs-dcp.c514 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mxs_dcp_run_sha()
564 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_req_to_buf()
678 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_init()
708 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_update_fx()
Dtalitos.c1726 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in common_nonsnoop_hash()
1794 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_edesc_alloc()
1804 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_init()
1848 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_process_req()
1959 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in ahash_digest()
1987 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_import()
2023 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, in keyhash()
2066 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey()
Dsahara.c913 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_prepare_request()
1107 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_init()
1158 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in sahara_sha_export()
1171 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in sahara_sha_import()
Domap-sham.c301 struct crypto_ahash *tfm = crypto_ahash_reqtfm(dd->req); in omap_sham_copy_hash_omap4()
463 struct crypto_ahash *tfm = crypto_ahash_reqtfm(dd->req); in omap_sham_write_ctrl_omap4()
837 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in omap_sham_init()
1189 static int omap_sham_setkey(struct crypto_ahash *tfm, const u8 *key, in omap_sham_setkey()
Dmv_cesa.c778 static int mv_hash_setkey(struct crypto_ahash *tfm, const u8 * key, in mv_hash_setkey()
Datmel-sha.c257 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_init()
/linux-4.4.14/arch/x86/crypto/sha-mb/
Dsha1_mb.c704 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_init()
718 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_update()
731 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_finup()
744 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_final()
755 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sha1_mb_async_digest()
/linux-4.4.14/drivers/crypto/sunxi-ss/
Dsun4i-ss-hash.c32 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_init()
171 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_update()
350 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in sun4i_hash_final()
/linux-4.4.14/drivers/crypto/marvell/
Dhash.c803 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_export()
822 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in mv_cesa_ahash_import()
1152 struct crypto_ahash *tfm; in mv_cesa_ahmac_setkey()
1225 static int mv_cesa_ahmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_md5_setkey()
1295 static int mv_cesa_ahmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_sha1_setkey()
1352 static int mv_cesa_ahmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_sha256_setkey()