Searched refs:ima_tpm_chip (Results 1 - 8 of 8) sorted by last modified time

/linux-master/security/integrity/ima/
H A Dima_template_lib.c361 if (ima_tpm_chip) {
H A Dima_fs.c441 securityfs_measurement_list_count = NR_BANKS(ima_tpm_chip);
443 if (ima_sha1_idx >= NR_BANKS(ima_tpm_chip))
H A Dima_init.c25 struct tpm_chip *ima_tpm_chip; variable in typeref:struct:tpm_chip
74 if (ima_tpm_chip) {
122 ima_tpm_chip = tpm_default_chip();
123 if (!ima_tpm_chip)
H A Dima_crypto.c97 for (i = 0; i < NR_BANKS(ima_tpm_chip) + ima_extra_slots; i++)
123 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) {
124 algo = ima_tpm_chip->allocated_banks[i].crypto_id;
133 ima_sha1_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++;
139 ima_hash_algo_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++;
141 ima_algo_array = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots,
148 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) {
149 algo = ima_tpm_chip->allocated_banks[i].crypto_id;
173 if (ima_sha1_idx >= NR_BANKS(ima_tpm_chip)) {
188 if (ima_hash_algo_idx >= NR_BANKS(ima_tpm_chip)
[all...]
H A Dima.h66 extern struct tpm_chip *ima_tpm_chip;
H A Dima_api.c55 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots,
H A Dima_template.c370 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots,
H A Dima_queue.c142 if (!ima_tpm_chip)
145 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg);
220 if (!ima_tpm_chip)
223 digests = kcalloc(ima_tpm_chip->nr_allocated_banks, sizeof(*digests),
228 for (i = 0; i < ima_tpm_chip->nr_allocated_banks; i++) {
229 digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id;
230 digest_size = ima_tpm_chip->allocated_banks[i].digest_size;
231 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id;

Completed in 161 milliseconds