Home
last modified time | relevance | path

Searched refs:pcrs (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/tools/testing/selftests/tpm2/
H A Dtpm2_tests.py45 pcrs = [16]
48 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
60 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
92 pcrs = [16]
95 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
113 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
132 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
H A Dtpm2.py474 def __calc_pcr_digest(self, pcrs, bank_alg = TPM2_ALG_SHA1, argument
479 for i in pcrs:
487 def policy_pcr(self, handle, pcrs, bank_alg = TPM2_ALG_SHA1, argument
490 dig = self.__calc_pcr_digest(pcrs, bank_alg, name_alg)
494 pcrsel_len = max((max(pcrs) >> 3) + 1, 3)
496 for i in pcrs:
/openbmc/u-boot/lib/
H A Dtpm-v2.c1104 struct tpml_pcr_selection pcrs; in tpm2_get_pcr_info() local
1117 pcrs.count = get_unaligned_be32(response); in tpm2_get_pcr_info()
1122 if (pcrs.count > ARRAY_SIZE(tpm2_supported_algorithms) || in tpm2_get_pcr_info()
1123 pcrs.count < 1) { in tpm2_get_pcr_info()
1124 printf("%s: too many pcrs: %u\n", __func__, pcrs.count); in tpm2_get_pcr_info()
1132 for (i = 0; i < pcrs.count; i++) { in tpm2_get_pcr_info()
1152 pcrs.selection[i].hash = in tpm2_get_pcr_info()
1154 pcrs.selection[i].size_of_select = in tpm2_get_pcr_info()
1156 if (pcrs.selection[i].size_of_select > TPM2_PCR_SELECT_MAX) { in tpm2_get_pcr_info()
1158 pcrs.selection[i].size_of_select); in tpm2_get_pcr_info()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvirtio-nsm.c240 if (vnsm->pcrs[i].locked) { in handle_describe_nsm()
395 pcr = &(vnsm->pcrs[nsm_req.index]); in handle_describe_pcr()
576 pcr = &(vnsm->pcrs[nsm_req->index]); in handle_extend_pcr()
726 pcr = &(vnsm->pcrs[nsm_req.index]); in handle_lock_pcr()
861 vnsm->pcrs[i].locked = true; in handle_lock_pcrs()
1188 if (vnsm->pcrs[i].locked) { in add_payload_to_cose()
1196 pcr = &(vnsm->pcrs[ind[i]]); in add_payload_to_cose()
1616 struct PCRInfo *pcr = &(vnsm->pcrs[ind]); in extend_pcr()
1636 vnsm->pcrs[ind].locked = true; in lock_pcr()
1685 VMSTATE_STRUCT_ARRAY(pcrs, VirtIONSM, NSM_MAX_PCRS, 1,
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-nsm.h38 struct PCRInfo pcrs[NSM_MAX_PCRS]; member
/openbmc/qemu/hw/i386/
H A Dnitro_enclave.c117 memset(ne_state->vnsm->pcrs, 0, sizeof(ne_state->vnsm->pcrs)); in nitro_enclave_machine_reset()
/openbmc/linux/Documentation/ABI/stable/
H A Dsysfs-class-tpm86 What: /sys/class/tpm/tpmX/device/pcrs
90 Description: The "pcrs" property will dump the current value of all Platform
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-driver-ppi9 'find /sys/ -name 'pcrs''. For the detail information of PPI,
/openbmc/linux/drivers/char/tpm/
H A Dtpm-sysfs.c115 static DEVICE_ATTR_RO(pcrs);
/openbmc/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt6462 This will guarantee that all the other pcrs