Searched refs:alg_id (Results 1 – 14 of 14) sorted by relevance
/openbmc/linux/security/integrity/ima/ |
H A D | ima_crypto.c | 630 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 …]
|
H A D | ima_queue.c | 229 digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_init_digests()
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm-sysfs.c | 341 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()
|
H A D | tpm2-cmd.c | 177 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()
|
H A D | tpm-interface.c | 325 if (digests[i].alg_id != chip->allocated_banks[i].alg_id) { in tpm_pcr_extend()
|
H A D | tpm1-cmd.c | 807 chip->allocated_banks[0].alg_id = TPM_ALG_SHA1; in tpm1_get_pcr_allocation()
|
/openbmc/linux/net/ipv6/ |
H A D | seg6_hmac.c | 75 .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()
|
H A D | seg6.c | 215 hinfo->alg_id = algid; in seg6_genl_sethmac() 307 nla_put_u8(msg, SEG6_ATTR_ALGID, hinfo->alg_id)) in __seg6_hmac_fill_info()
|
/openbmc/linux/include/net/ |
H A D | seg6_hmac.h | 32 u8 alg_id; member 36 u8 alg_id; member
|
H A D | xfrm.h | 1799 struct xfrm_algo_desc *xfrm_aalg_get_byid(int alg_id); 1800 struct xfrm_algo_desc *xfrm_ealg_get_byid(int alg_id); 1801 struct xfrm_algo_desc *xfrm_calg_get_byid(int alg_id);
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_algo.c | 716 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()
|
/openbmc/linux/include/linux/ |
H A D | tpm_eventlog.h | 80 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()
|
H A D | tpm.h | 53 u16 alg_id; member 58 u16 alg_id; member
|
/openbmc/linux/security/keys/trusted-keys/ |
H A D | trusted_tpm1.c | 1025 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests()
|