Home
last modified time | relevance | path

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

/drivers/crypto/bcm/
Dspu.h56 enum hash_alg { enum
128 enum hash_alg alg;
229 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
239 u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg,
260 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()
424 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spum_hash_pad_len() argument
432 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.h101 enum hash_alg alg;
364 u16 (*spu_hash_pad_len)(enum hash_alg hash_alg,
375 u32 (*spu_digest_size)(u32 digest_size, enum hash_alg alg,
391 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()
844 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_pad_len() argument
922 u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg, in spu2_digest_size()
1246 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.c63 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()
1746 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA1; in safexcel_aead_sha1_cra_init()
1782 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA256; in safexcel_aead_sha256_cra_init()
1818 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA224; in safexcel_aead_sha224_cra_init()
1854 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA512; in safexcel_aead_sha512_cra_init()
1890 ctx->hash_alg = CONTEXT_CONTROL_CRYPTO_ALG_SHA384; in safexcel_aead_sha384_cra_init()
[all …]
/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()