Searched refs:ima_tpm_chip (Results 1 - 14 of 14) sorted by relevance
/kernel/linux/linux-5.10/security/integrity/ima/ |
H A D | ima_queue.c | 142 if (!ima_tpm_chip) in ima_pcr_extend() 145 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg); in ima_pcr_extend() 219 if (!ima_tpm_chip) in ima_init_digests() 222 digests = kcalloc(ima_tpm_chip->nr_allocated_banks, sizeof(*digests), in ima_init_digests() 227 for (i = 0; i < ima_tpm_chip->nr_allocated_banks; i++) { in ima_init_digests() 228 digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_init_digests() 229 digest_size = ima_tpm_chip->allocated_banks[i].digest_size; in ima_init_digests() 230 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_digests()
|
H A D | ima_crypto.c | 102 for (i = 0; i < NR_BANKS(ima_tpm_chip) + ima_extra_slots; i++) in ima_alloc_tfm() 128 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) { in ima_init_crypto() 129 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() 138 ima_sha1_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++; in ima_init_crypto() 144 ima_hash_algo_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++; in ima_init_crypto() 146 ima_algo_array = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_init_crypto() 153 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) { in ima_init_crypto() 154 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() 178 if (ima_sha1_idx >= NR_BANKS(ima_tpm_chip)) { in ima_init_crypto() 193 if (ima_hash_algo_idx >= NR_BANKS(ima_tpm_chip) in ima_init_crypto() [all...] |
H A D | ima_init.c | 23 struct tpm_chip *ima_tpm_chip; variable 73 if (ima_tpm_chip) { in ima_add_boot_aggregate() 117 ima_tpm_chip = tpm_default_chip(); in ima_init() 118 if (!ima_tpm_chip) in ima_init()
|
H A D | ima_api.c | 55 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_alloc_init_template()
|
H A D | ima_template_lib.c | 290 if (ima_tpm_chip) { in ima_eventdigest_init()
|
H A D | ima_template.c | 320 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_restore_template_data()
|
H A D | ima.h | 59 extern struct tpm_chip *ima_tpm_chip;
|
/kernel/linux/linux-6.6/security/integrity/ima/ |
H A D | ima_queue.c | 142 if (!ima_tpm_chip) in ima_pcr_extend() 145 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg); in ima_pcr_extend() 220 if (!ima_tpm_chip) in ima_init_digests() 223 digests = kcalloc(ima_tpm_chip->nr_allocated_banks, sizeof(*digests), in ima_init_digests() 228 for (i = 0; i < ima_tpm_chip->nr_allocated_banks; i++) { in ima_init_digests() 229 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()
|
H A D | ima_crypto.c | 102 for (i = 0; i < NR_BANKS(ima_tpm_chip) + ima_extra_slots; i++) in ima_alloc_tfm() 128 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) { in ima_init_crypto() 129 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() 138 ima_sha1_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++; in ima_init_crypto() 144 ima_hash_algo_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++; in ima_init_crypto() 146 ima_algo_array = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_init_crypto() 153 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) { in ima_init_crypto() 154 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() 178 if (ima_sha1_idx >= NR_BANKS(ima_tpm_chip)) { in ima_init_crypto() 193 if (ima_hash_algo_idx >= NR_BANKS(ima_tpm_chip) in ima_init_crypto() [all...] |
H A D | ima_init.c | 25 struct tpm_chip *ima_tpm_chip; variable 72 if (ima_tpm_chip) { in ima_add_boot_aggregate() 120 ima_tpm_chip = tpm_default_chip(); in ima_init() 121 if (!ima_tpm_chip) in ima_init()
|
H A D | ima_api.c | 55 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_alloc_init_template()
|
H A D | ima.h | 58 extern struct tpm_chip *ima_tpm_chip;
|
H A D | ima_template_lib.c | 359 if (ima_tpm_chip) { in ima_eventdigest_init()
|
H A D | ima_template.c | 370 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_restore_template_data()
|
Completed in 15 milliseconds