Home
last modified time | relevance | path

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

/linux/drivers/char/tpm/
A 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()
509 struct tpm_bank_info *bank = chip->allocated_banks + bank_index; in tpm2_init_bank_info()
569 chip->allocated_banks = kcalloc(nr_possible_banks, in tpm2_get_pcr_allocation()
570 sizeof(*chip->allocated_banks), in tpm2_get_pcr_allocation()
572 if (!chip->allocated_banks) { in tpm2_get_pcr_allocation()
596 chip->allocated_banks[nr_alloc_banks].alg_id = hash_alg; in tpm2_get_pcr_allocation()
A 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()
A 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()
490 switch (chip->allocated_banks[i].alg_id) { in tpm_sysfs_add_device()
515 chip->allocated_banks[i].alg_id); in tpm_sysfs_add_device()
A Dtpm-interface.c325 if (digests[i].alg_id != chip->allocated_banks[i].alg_id) { in tpm_pcr_extend()
A Dtpm-chip.c273 kfree(chip->allocated_banks); in tpm_dev_release()
/linux/security/integrity/ima/
A 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()
A 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()
643 alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_calc_field_array_hash()
850 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_calc_boot_aggregate()
868 hash->algo = ima_tpm_chip->allocated_banks[bank_idx].crypto_id; in ima_calc_boot_aggregate()
875 alg_id = ima_tpm_chip->allocated_banks[bank_idx].alg_id; in ima_calc_boot_aggregate()
/linux/include/linux/
A Dtpm.h160 struct tpm_bank_info *allocated_banks; member
/linux/security/keys/trusted-keys/
A Dtrusted_tpm1.c1025 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests()

Completed in 17 milliseconds