Home
last modified time | relevance | path

Searched refs:pcr_index (Results 1 – 4 of 4) sorted by relevance

/u-boot/drivers/tpm/
A Dtpm2_tis_sandbox.c241 static int sandbox_tpm2_extend(struct udevice *dev, int pcr_index, in sandbox_tpm2_extend() argument
249 if (tpm->pcr[pcr_index][i] || extension[i]) in sandbox_tpm2_extend()
252 memcpy(tpm->pcr[pcr_index], sandbox_extended_once_pcr, in sandbox_tpm2_extend()
254 tpm->pcr_extensions[pcr_index]++; in sandbox_tpm2_extend()
276 int pcr_index = 0; in sandbox_tpm2_xfer() local
495 pcr_index = i; in sandbox_tpm2_xfer()
509 put_unaligned_be32(tpm->pcr_extensions[pcr_index], recv); in sandbox_tpm2_xfer()
513 memcpy(recv, tpm->pcr[pcr_index], TPM2_DIGEST_LEN); in sandbox_tpm2_xfer()
527 pcr_index = get_unaligned_be32(sendbuf + sizeof(tag) + in sandbox_tpm2_xfer()
530 if (pcr_index > SANDBOX_TPM_PCR_NB) { in sandbox_tpm2_xfer()
[all …]
/u-boot/lib/efi_loader/
A Defi_tcg2.c143 static efi_status_t tcg2_pcr_extend(struct udevice *dev, u32 pcr_index, in tcg2_pcr_extend() argument
152 rc = tpm2_pcr_extend(dev, pcr_index, alg, in tcg2_pcr_extend()
174 static efi_status_t tcg2_agile_log_append(u32 pcr_index, u32 event_type, in tcg2_agile_log_append() argument
197 put_unaligned_le32(pcr_index, log); in tcg2_agile_log_append()
732 u32 event_type, pcr_index, event_size; in efi_tcg2_hash_log_extend_event() local
753 if (efi_tcg_event->header.pcr_index < 0 || in efi_tcg2_hash_log_extend_event()
754 efi_tcg_event->header.pcr_index > TPM2_MAX_PCRS) { in efi_tcg2_hash_log_extend_event()
772 pcr_index = efi_tcg_event->header.pcr_index; in efi_tcg2_hash_log_extend_event()
780 ret = tcg2_pcr_extend(dev, pcr_index, &digest_list); in efi_tcg2_hash_log_extend_event()
796 ret = tcg2_agile_log_append(pcr_index, event_type, &digest_list, in efi_tcg2_hash_log_extend_event()
[all …]
/u-boot/include/
A Dtpm-v2.h116 u32 pcr_index; member
166 u32 pcr_index; member
A Defi_tcg2.h46 u32 pcr_index; member

Completed in 8 milliseconds