Home
last modified time | relevance | path

Searched refs:alg_id (Results 1 – 14 of 14) sorted by relevance

/linux-6.3-rc2/security/integrity/ima/
A Dima_crypto.c630 u16 alg_id; in ima_calc_field_array_hash() local
637 entry->digests[ima_sha1_idx].alg_id = TPM_ALG_SHA1; in ima_calc_field_array_hash()
644 alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_calc_field_array_hash()
645 entry->digests[i].alg_id = alg_id; in ima_calc_field_array_hash()
800 static int ima_calc_boot_aggregate_tfm(char *digest, u16 alg_id, in ima_calc_boot_aggregate_tfm() argument
803 struct tpm_digest d = { .alg_id = alg_id, .digest = {0} }; in ima_calc_boot_aggregate_tfm()
811 d.alg_id); in ima_calc_boot_aggregate_tfm()
832 if (alg_id != TPM_ALG_SHA1) { in ima_calc_boot_aggregate_tfm()
847 u16 crypto_id, alg_id; in ima_calc_boot_aggregate() local
876 alg_id = ima_tpm_chip->allocated_banks[bank_idx].alg_id; in ima_calc_boot_aggregate()
[all …]
A Dima_queue.c229 digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_init_digests()
/linux-6.3-rc2/net/ipv6/
A Dseg6_hmac.c75 .alg_id = SEG6_HMAC_ALGO_SHA1,
79 .alg_id = SEG6_HMAC_ALGO_SHA256,
103 static struct seg6_hmac_algo *__hmac_get_algo(u8 alg_id) in __hmac_get_algo() argument
111 if (algo->alg_id == alg_id) in __hmac_get_algo()
126 algo = __hmac_get_algo(hinfo->alg_id); in __do_hmac()
A Dseg6.c215 hinfo->alg_id = algid; in seg6_genl_sethmac()
307 nla_put_u8(msg, SEG6_ATTR_ALGID, hinfo->alg_id)) in __seg6_hmac_fill_info()
/linux-6.3-rc2/drivers/char/tpm/
A Dtpm-sysfs.c341 int alg_id; member
361 if (ha->alg_id == chip->allocated_banks[i].alg_id) in pcr_value_show()
367 digest.alg_id = ha->alg_id; in pcr_value_show()
420 .alg_id = _alg, \
493 switch (chip->allocated_banks[i].alg_id) { in tpm_sysfs_add_device()
518 chip->allocated_banks[i].alg_id); in tpm_sysfs_add_device()
A Dtpm2-cmd.c177 chip->allocated_banks[i].alg_id != digest->alg_id; i++) in tpm2_pcr_read()
193 tpm_buf_append_u16(&buf, digest->alg_id); in tpm2_pcr_read()
260 tpm_buf_append_u16(&buf, digests[i].alg_id); in tpm2_pcr_extend()
519 struct tpm_digest digest = { .alg_id = bank->alg_id }; in tpm2_init_bank_info()
529 if (bank->alg_id != tpm2_hash_map[i].tpm_id) in tpm2_init_bank_info()
605 chip->allocated_banks[nr_alloc_banks].alg_id = hash_alg; in tpm2_get_pcr_allocation()
A Dtpm-interface.c325 if (digests[i].alg_id != chip->allocated_banks[i].alg_id) { in tpm_pcr_extend()
A Dtpm1-cmd.c807 chip->allocated_banks[0].alg_id = TPM_ALG_SHA1; in tpm1_get_pcr_allocation()
/linux-6.3-rc2/include/net/
A Dseg6_hmac.h32 u8 alg_id; member
36 u8 alg_id; member
A Dxfrm.h1785 struct xfrm_algo_desc *xfrm_aalg_get_byid(int alg_id);
1786 struct xfrm_algo_desc *xfrm_ealg_get_byid(int alg_id);
1787 struct xfrm_algo_desc *xfrm_calg_get_byid(int alg_id);
/linux-6.3-rc2/net/xfrm/
A Dxfrm_algo.c716 struct xfrm_algo_desc *xfrm_aalg_get_byid(int alg_id) in xfrm_aalg_get_byid() argument
719 (void *)(unsigned long)alg_id, 1); in xfrm_aalg_get_byid()
723 struct xfrm_algo_desc *xfrm_ealg_get_byid(int alg_id) in xfrm_ealg_get_byid() argument
726 (void *)(unsigned long)alg_id, 1); in xfrm_ealg_get_byid()
730 struct xfrm_algo_desc *xfrm_calg_get_byid(int alg_id) in xfrm_calg_get_byid() argument
733 (void *)(unsigned long)alg_id, 1); in xfrm_calg_get_byid()
/linux-6.3-rc2/include/linux/
A Dtpm_eventlog.h80 u16 alg_id; member
229 halg_size = sizeof(event->digests[i].alg_id); in __calc_tpm2_event_size()
249 if (halg == efispecid->digest_sizes[j].alg_id) { in __calc_tpm2_event_size()
A Dtpm.h53 u16 alg_id; member
58 u16 alg_id; member
/linux-6.3-rc2/security/keys/trusted-keys/
A Dtrusted_tpm1.c1025 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests()

Completed in 31 milliseconds