Searched refs:ima_tpm_chip (Results 1 - 7 of 7) sorted by relevance

/linux-master/security/integrity/ima/
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;
H A Dima_init.c25 struct tpm_chip *ima_tpm_chip; variable in typeref:struct:tpm_chip
72 if (ima_tpm_chip) {
120 ima_tpm_chip = tpm_default_chip();
121 if (!ima_tpm_chip)
H A Dima_crypto.c102 for (i = 0; i < NR_BANKS(ima_tpm_chip) + ima_extra_slots; i++)
128 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) {
129 algo = ima_tpm_chip->allocated_banks[i].crypto_id;
138 ima_sha1_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++;
144 ima_hash_algo_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++;
146 ima_algo_array = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots,
153 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) {
154 algo = ima_tpm_chip->allocated_banks[i].crypto_id;
178 if (ima_sha1_idx >= NR_BANKS(ima_tpm_chip)) {
193 if (ima_hash_algo_idx >= NR_BANKS(ima_tpm_chip)
[all...]
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.h58 extern struct tpm_chip *ima_tpm_chip;
H A Dima_template_lib.c359 if (ima_tpm_chip) {

Completed in 141 milliseconds