Home
last modified time | relevance | path

Searched refs:Pcrs (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Pei/
DTcg2Pei.c370 TPML_PCR_SELECTION Pcrs; in SetTpm2HashMask() local
375 Status = Tpm2GetCapabilityPcrs (&Pcrs); in SetTpm2HashMask()
380 DEBUG ((EFI_D_INFO, "Tpm2GetCapabilityPcrs Count - %08x\n", Pcrs.count)); in SetTpm2HashMask()
382 for (Index = 0; Index < Pcrs.count; Index++) { in SetTpm2HashMask()
383 DEBUG ((EFI_D_INFO, "hash - %x\n", Pcrs.pcrSelections[Index].hash)); in SetTpm2HashMask()
384 switch (Pcrs.pcrSelections[Index].hash) { in SetTpm2HashMask()
386 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in SetTpm2HashMask()
391 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in SetTpm2HashMask()
396 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in SetTpm2HashMask()
401 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in SetTpm2HashMask()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Config/
DTcg2ConfigImpl.c504 TPML_PCR_SELECTION Pcrs; in InstallTcg2ConfigForm() local
568 Status = Tpm2GetCapabilityPcrs (&Pcrs); in InstallTcg2ConfigForm()
574 for (Index = 0; Index < Pcrs.count; Index++) { in InstallTcg2ConfigForm()
575 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in InstallTcg2ConfigForm()
576 AppendBufferWithTpmAlgHash (TempBuffer, sizeof(TempBuffer), Pcrs.pcrSelections[Index].hash); in InstallTcg2ConfigForm()
582 for (Index = 0; Index < Pcrs.count; Index++) { in InstallTcg2ConfigForm()
583 AppendBufferWithTpmAlgHash (TempBuffer, sizeof(TempBuffer), Pcrs.pcrSelections[Index].hash); in InstallTcg2ConfigForm()
584 SetConfigInfo (&Tcg2ConfigInfo, Pcrs.pcrSelections[Index].hash); in InstallTcg2ConfigForm()
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/
DTpm2Capability.c459 OUT TPML_PCR_SELECTION *Pcrs in Tpm2GetCapabilityPcrs() argument
478 Pcrs->count = SwapBytes32 (TpmCap.data.assignedPCR.count); in Tpm2GetCapabilityPcrs()
479 for (Index = 0; Index < Pcrs->count; Index++) { in Tpm2GetCapabilityPcrs()
480Pcrs->pcrSelections[Index].hash = SwapBytes16 (TpmCap.data.assignedPCR.pcrSelections[Index].hash); in Tpm2GetCapabilityPcrs()
481Pcrs->pcrSelections[Index].sizeofSelect = TpmCap.data.assignedPCR.pcrSelections[Index].sizeofSelec… in Tpm2GetCapabilityPcrs()
482 …CopyMem (Pcrs->pcrSelections[Index].pcrSelect, TpmCap.data.assignedPCR.pcrSelections[Index].pcrSel… in Tpm2GetCapabilityPcrs()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DTcg2Dxe.c2344 TPML_PCR_SELECTION Pcrs; in DriverEntry() local
2414 Status = Tpm2GetCapabilityPcrs (&Pcrs); in DriverEntry()
2421 DEBUG ((EFI_D_INFO, "Tpm2GetCapabilityPcrs Count - %08x\n", Pcrs.count)); in DriverEntry()
2425 for (Index = 0; Index < Pcrs.count; Index++) { in DriverEntry()
2426 DEBUG ((EFI_D_INFO, "hash - %x\n", Pcrs.pcrSelections[Index].hash)); in DriverEntry()
2427 switch (Pcrs.pcrSelections[Index].hash) { in DriverEntry()
2431 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in DriverEntry()
2438 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in DriverEntry()
2445 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in DriverEntry()
2452 … if (!IsZeroBuffer (Pcrs.pcrSelections[Index].pcrSelect, Pcrs.pcrSelections[Index].sizeofSelect)) { in DriverEntry()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DTrEEDxe.c1763 TPML_PCR_SELECTION Pcrs; in DriverEntry() local
1820 Status = Tpm2GetCapabilityPcrs (&Pcrs); in DriverEntry()
1825 DEBUG ((EFI_D_INFO, "Tpm2GetCapabilityPcrs Count - %08x\n", Pcrs.count)); in DriverEntry()
1827 for (Index = 0; Index < Pcrs.count; Index++) { in DriverEntry()
1828 DEBUG ((EFI_D_INFO, "hash - %x\n", Pcrs.pcrSelections[Index].hash)); in DriverEntry()
1829 switch (Pcrs.pcrSelections[Index].hash) { in DriverEntry()
/device/linaro/bootloader/edk2/SecurityPkg/Include/Library/
DTpm2CommandLib.h745 OUT TPML_PCR_SELECTION *Pcrs