Home
last modified time | relevance | path

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

/linux-5.19.10/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.c797 chip->allocated_banks = kcalloc(1, sizeof(*chip->allocated_banks), in tpm1_get_pcr_allocation()
799 if (!chip->allocated_banks) in tpm1_get_pcr_allocation()
802 chip->allocated_banks[0].alg_id = TPM_ALG_SHA1; in tpm1_get_pcr_allocation()
803 chip->allocated_banks[0].digest_size = hash_digest_size[HASH_ALGO_SHA1]; in tpm1_get_pcr_allocation()
804 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.c273 kfree(chip->allocated_banks); in tpm_dev_release()
/linux-5.19.10/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-5.19.10/include/linux/
Dtpm.h160 struct tpm_bank_info *allocated_banks; member
/linux-5.19.10/security/keys/trusted-keys/
Dtrusted_tpm1.c1025 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests()