Home
last modified time | relevance | path

Searched refs:allocated_banks (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/drivers/char/tpm/
Dtpm2-cmd.c177 chip->allocated_banks[i].alg_id != digest->alg_id; i++) in tpm2_pcr_read()
183 expected_digest_size = chip->allocated_banks[i].digest_size; in tpm2_pcr_read()
262 chip->allocated_banks[i].digest_size); in tpm2_pcr_extend()
518 struct tpm_bank_info *bank = chip->allocated_banks + bank_index; in tpm2_init_bank_info()
578 chip->allocated_banks = kcalloc(nr_possible_banks, in tpm2_get_pcr_allocation()
579 sizeof(*chip->allocated_banks), in tpm2_get_pcr_allocation()
581 if (!chip->allocated_banks) { in tpm2_get_pcr_allocation()
605 chip->allocated_banks[nr_alloc_banks].alg_id = hash_alg; in tpm2_get_pcr_allocation()
Dtpm1-cmd.c802 chip->allocated_banks = kcalloc(1, sizeof(*chip->allocated_banks), in tpm1_get_pcr_allocation()
804 if (!chip->allocated_banks) in tpm1_get_pcr_allocation()
807 chip->allocated_banks[0].alg_id = TPM_ALG_SHA1; in tpm1_get_pcr_allocation()
808 chip->allocated_banks[0].digest_size = hash_digest_size[HASH_ALGO_SHA1]; in tpm1_get_pcr_allocation()
809 chip->allocated_banks[0].crypto_id = HASH_ALGO_SHA1; in tpm1_get_pcr_allocation()
Dtpm-sysfs.c361 if (ha->alg_id == chip->allocated_banks[i].alg_id) in pcr_value_show()
362 digest_size = chip->allocated_banks[i].digest_size; in pcr_value_show()
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()
Dtpm-interface.c325 if (digests[i].alg_id != chip->allocated_banks[i].alg_id) { in tpm_pcr_extend()
Dtpm-chip.c277 kfree(chip->allocated_banks); in tpm_dev_release()
/Linux-v6.6/security/integrity/ima/
Dima_queue.c229 digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_init_digests()
230 digest_size = ima_tpm_chip->allocated_banks[i].digest_size; in ima_init_digests()
231 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_digests()
Dima_crypto.c129 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto()
154 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto()
644 alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_calc_field_array_hash()
851 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_calc_boot_aggregate()
869 hash->algo = ima_tpm_chip->allocated_banks[bank_idx].crypto_id; in ima_calc_boot_aggregate()
876 alg_id = ima_tpm_chip->allocated_banks[bank_idx].alg_id; in ima_calc_boot_aggregate()
/Linux-v6.6/include/linux/
Dtpm.h160 struct tpm_bank_info *allocated_banks; member
/Linux-v6.6/security/keys/trusted-keys/
Dtrusted_tpm1.c1025 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests()