Home
last modified time | relevance | path

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

/linux/security/integrity/ima/
H A Dima_crypto.c625 u16 alg_id; in ima_calc_field_array_hash() local
632 entry->digests[ima_sha1_idx].alg_id = TPM_ALG_SHA1; in ima_calc_field_array_hash()
639 alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_calc_field_array_hash()
640 entry->digests[i].alg_id = alg_id; in ima_calc_field_array_hash()
795 static int ima_calc_boot_aggregate_tfm(char *digest, u16 alg_id, in ima_calc_boot_aggregate_tfm() argument
798 struct tpm_digest d = { .alg_id = alg_id, .digest = {0} }; in ima_calc_boot_aggregate_tfm()
806 d.alg_id); in ima_calc_boot_aggregate_tfm()
827 if (alg_id != TPM_ALG_SHA1) { in ima_calc_boot_aggregate_tfm()
842 u16 crypto_id, alg_id; in ima_calc_boot_aggregate() local
871 alg_id = ima_tpm_chip->allocated_banks[bank_idx].alg_id; in ima_calc_boot_aggregate()
[all …]
/linux/net/ipv6/
H 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()
H A Dseg6.c213 hinfo->alg_id = algid; in seg6_genl_sethmac()
305 nla_put_u8(msg, SEG6_ATTR_ALGID, hinfo->alg_id)) in __seg6_hmac_fill_info()
/linux/drivers/char/tpm/
H A Dtpm-sysfs.c359 int alg_id; member
379 if (ha->alg_id == chip->allocated_banks[i].alg_id) in pcr_value_show()
385 digest.alg_id = ha->alg_id; in pcr_value_show()
438 .alg_id = _alg, \
511 switch (chip->allocated_banks[i].alg_id) { in tpm_sysfs_add_device()
536 chip->allocated_banks[i].alg_id); in tpm_sysfs_add_device()
H A Dtpm2-cmd.c181 chip->allocated_banks[i].alg_id != digest->alg_id; i++) in tpm2_pcr_read()
197 tpm_buf_append_u16(&buf, digest->alg_id); in tpm2_pcr_read()
263 tpm_buf_append_u16(&buf, digests[i].alg_id); in tpm2_pcr_extend()
547 struct tpm_digest digest = { .alg_id = bank->alg_id }; in tpm2_init_bank_info()
557 if (bank->alg_id != tpm2_hash_map[i].tpm_id) in tpm2_init_bank_info()
633 chip->allocated_banks[nr_alloc_banks].alg_id = hash_alg; in tpm2_get_pcr_allocation()
H A Dtpm-interface.c326 if (digests[i].alg_id != chip->allocated_banks[i].alg_id) { in tpm_pcr_extend()
H A Dtpm1-cmd.c807 chip->allocated_banks[0].alg_id = TPM_ALG_SHA1; in tpm1_get_pcr_allocation()
/linux/net/xfrm/
H A Dxfrm_algo.c711 struct xfrm_algo_desc *xfrm_aalg_get_byid(int alg_id) in xfrm_aalg_get_byid() argument
714 (void *)(unsigned long)alg_id, 1); in xfrm_aalg_get_byid()
718 struct xfrm_algo_desc *xfrm_ealg_get_byid(int alg_id) in xfrm_ealg_get_byid() argument
721 (void *)(unsigned long)alg_id, 1); in xfrm_ealg_get_byid()
725 struct xfrm_algo_desc *xfrm_calg_get_byid(int alg_id) in xfrm_calg_get_byid() argument
728 (void *)(unsigned long)alg_id, 1); in xfrm_calg_get_byid()
/linux/include/net/
H A Dseg6_hmac.h32 u8 alg_id; member
36 u8 alg_id; member
H A Dxfrm.h1900 struct xfrm_algo_desc *xfrm_aalg_get_byid(int alg_id);
1901 struct xfrm_algo_desc *xfrm_ealg_get_byid(int alg_id);
1902 struct xfrm_algo_desc *xfrm_calg_get_byid(int alg_id);
/linux/include/sound/
H A Dcs-amp-lib.h39 unsigned int alg_id; member
/linux/include/linux/
H A Dtpm.h70 u16 alg_id; member
75 u16 alg_id; member
/linux/sound/soc/codecs/
H A Dcs-amp-lib.c35 cs_ctl = cs_dsp_get_ctl(dsp, ctl_name, controls->mem_region, controls->alg_id); in cs_amp_write_cal_coeff()
H A Dcs-amp-lib-test.c562 .alg_id = 0x9f210,
H A Dcs35l56-shared.c710 .alg_id = 0x9f210,
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm1.c1036 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests()
/linux/sound/pci/hda/
H A Dcs35l41_hda.c69 .alg_id = CAL_DSP_CTL_ALG,