Home
last modified time | relevance | path

Searched refs:hash_alg (Results 1 – 11 of 11) sorted by relevance

/drivers/crypto/bcm/
Dspu.h55 enum hash_alg { enum
127 enum hash_alg alg;
228 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
238 u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg,
259 enum hash_alg auth_alg,
Dspu.c34 u32 hash_alg; in spum_dump_msg_hdr() local
81 hash_alg = (cflags & HASH_ALG) >> HASH_ALG_SHIFT; in spum_dump_msg_hdr()
85 hash_alg, hash_mode, hash_type); in spum_dump_msg_hdr()
106 if (hash_alg && hash_mode) { in spum_dump_msg_hdr()
109 switch (hash_alg) { in spum_dump_msg_hdr()
146 } else if ((hash_alg == HASH_ALG_AES) && in spum_dump_msg_hdr()
170 if (hash_alg && (hash_mode == HASH_MODE_NONE) && in spum_dump_msg_hdr()
174 switch (hash_alg) { in spum_dump_msg_hdr()
426 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spum_hash_pad_len() argument
434 if ((hash_alg == HASH_ALG_AES) && (hash_mode == HASH_MODE_XCBC)) { in spum_hash_pad_len()
[all …]
Dspu2.h180 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
190 u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg,
205 enum hash_alg auth_alg, enum hash_mode auth_mode,
Dcipher.h100 enum hash_alg alg;
366 u16 (*spu_hash_pad_len)(enum hash_alg hash_alg,
377 u32 (*spu_digest_size)(u32 digest_size, enum hash_alg alg,
393 u32 hash_pad_len, enum hash_alg auth_alg,
Dspu2.c234 spu2_hash_xlate(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_xlate() argument
246 switch (hash_alg) { in spu2_hash_xlate()
303 hash_alg, hash_type); in spu2_hash_xlate()
841 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_pad_len() argument
917 u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg, in spu2_digest_size()
1243 enum hash_alg auth_alg, enum hash_mode auth_mode, in spu2_request_pad()
/drivers/char/tpm/
Dtpm2-cmd.c144 __be16 hash_alg; member
543 __be16 hash_alg; member
558 u16 hash_alg; in tpm2_get_pcr_allocation() local
600 hash_alg = be16_to_cpu(pcr_selection.hash_alg); in tpm2_get_pcr_allocation()
605 chip->allocated_banks[nr_alloc_banks].alg_id = hash_alg; in tpm2_get_pcr_allocation()
614 sizeof_pcr_selection = sizeof(pcr_selection.hash_alg) + in tpm2_get_pcr_allocation()
/drivers/crypto/inside-secure/
Dsafexcel_cipher.c62 u32 hash_alg; member
464 switch (ctx->hash_alg) { in safexcel_aead_setkey()
522 ctx->hash_alg | in safexcel_context_control()
532 ctx->hash_alg | in safexcel_context_control()
540 ctx->hash_alg | in safexcel_context_control()
1726 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA1; in safexcel_aead_sha1_cra_init()
1762 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA256; in safexcel_aead_sha256_cra_init()
1798 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA224; in safexcel_aead_sha224_cra_init()
1834 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA512; in safexcel_aead_sha512_cra_init()
1870 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA384; in safexcel_aead_sha384_cra_init()
[all …]
/drivers/crypto/ux500/hash/
Dhash_core.c1503 struct hash_algo_template *hash_alg; in hash_cra_init() local
1505 hash_alg = container_of(__crypto_ahash_alg(alg), in hash_cra_init()
1513 ctx->config.algorithm = hash_alg->conf.algorithm; in hash_cra_init()
1514 ctx->config.oper_mode = hash_alg->conf.oper_mode; in hash_cra_init()
1516 ctx->digestsize = hash_alg->hash.halg.digestsize; in hash_cra_init()
/drivers/crypto/amcc/
Dcrypto4xx_sa.h98 u32 hash_alg:4; member
Dcrypto4xx_alg.c41 sa->sa_command_0.bf.hash_alg = h; in set_dynamic_sa_command_0()
Dcrypto4xx_core.c494 if (sa->sa_command_0.bf.hash_alg == SA_HASH_ALG_SHA1) { in crypto4xx_copy_digest_to_dst()