Home
last modified time | relevance | path

Searched refs:PcrAllocation (Results 1 – 3 of 3) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/
DDxeTcg2PhysicalPresenceLib.c127 TPML_PCR_SELECTION PcrAllocation; in Tpm2CommandAllocPcr() local
146 ZeroMem (&PcrAllocation, sizeof(PcrAllocation)); in Tpm2CommandAllocPcr()
148 PcrAllocation.pcrSelections[PcrAllocation.count].hash = TPM_ALG_SHA1; in Tpm2CommandAllocPcr()
149 PcrAllocation.pcrSelections[PcrAllocation.count].sizeofSelect = PCR_SELECT_MAX; in Tpm2CommandAllocPcr()
151 PcrAllocation.pcrSelections[PcrAllocation.count].pcrSelect[0] = 0xFF; in Tpm2CommandAllocPcr()
152 PcrAllocation.pcrSelections[PcrAllocation.count].pcrSelect[1] = 0xFF; in Tpm2CommandAllocPcr()
153 PcrAllocation.pcrSelections[PcrAllocation.count].pcrSelect[2] = 0xFF; in Tpm2CommandAllocPcr()
155 PcrAllocation.pcrSelections[PcrAllocation.count].pcrSelect[0] = 0x00; in Tpm2CommandAllocPcr()
156 PcrAllocation.pcrSelections[PcrAllocation.count].pcrSelect[1] = 0x00; in Tpm2CommandAllocPcr()
157 PcrAllocation.pcrSelections[PcrAllocation.count].pcrSelect[2] = 0x00; in Tpm2CommandAllocPcr()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/
DTpm2Integrity.c70 TPML_PCR_SELECTION PcrAllocation; member
430 IN TPML_PCR_SELECTION *PcrAllocation, in Tpm2PcrAllocate() argument
467 WriteUnaligned32 ((UINT32 *)Buffer, SwapBytes32(PcrAllocation->count)); in Tpm2PcrAllocate()
469 for (Index = 0; Index < PcrAllocation->count; Index++) { in Tpm2PcrAllocate()
470 WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16(PcrAllocation->pcrSelections[Index].hash)); in Tpm2PcrAllocate()
472 *(UINT8 *)Buffer = PcrAllocation->pcrSelections[Index].sizeofSelect; in Tpm2PcrAllocate()
474 …CopyMem (Buffer, PcrAllocation->pcrSelections[Index].pcrSelect, PcrAllocation->pcrSelections[Index… in Tpm2PcrAllocate()
475 Buffer += PcrAllocation->pcrSelections[Index].sizeofSelect; in Tpm2PcrAllocate()
/device/linaro/bootloader/edk2/SecurityPkg/Include/Library/
DTpm2CommandLib.h556 IN TPML_PCR_SELECTION *PcrAllocation,