• Home
  • Raw
  • Download

Lines Matching refs:pcr

293     UINT32               pcr,               // IN: The number of the PCR  in PcrIsAllocated()  argument
299 if(pcr < IMPLEMENTATION_PCR) in PcrIsAllocated()
305 if(((gp.pcrAllocated.pcrSelections[i].pcrSelect[pcr/8]) in PcrIsAllocated()
306 & (1 << (pcr % 8))) != 0) in PcrIsAllocated()
334 static BYTE *pcr = NULL; in GetPcrPointer() local
341 pcr = s_pcrs[pcrNumber].sha1Pcr; in GetPcrPointer()
346 pcr = s_pcrs[pcrNumber].sha256Pcr; in GetPcrPointer()
351 pcr = s_pcrs[pcrNumber].sha384Pcr; in GetPcrPointer()
356 pcr = s_pcrs[pcrNumber].sha512Pcr; in GetPcrPointer()
361 pcr = s_pcrs[pcrNumber].sm3_256Pcr; in GetPcrPointer()
368 return pcr; in GetPcrPointer()
384 UINT32 pcr, // IN: The number of the PCR in IsPcrSelected() argument
389 if( pcr < IMPLEMENTATION_PCR in IsPcrSelected()
390 && ((selection->pcrSelect[pcr/8]) & (1 << (pcr % 8))) != 0) in IsPcrSelected()
471 UINT32 pcr, j; in PCRStartup() local
480 for(pcr = 0; pcr < IMPLEMENTATION_PCR; pcr++) in PCRStartup()
484 (type == SU_RESUME && s_initAttributes[pcr].stateSave == SET) ? 1 : 0; in PCRStartup()
487 if(pcr == HCRTM_PCR && type != SU_RESUME && g_DrtmPreStartup == TRUE) in PCRStartup()
493 BYTE *pcrData = GetPcrPointer(hash, pcr); in PCRStartup()
513 if((s_initAttributes[pcr].resetLocality & 0x10) != 0) in PCRStartup()
518 if(pcr == HCRTM_PCR) in PCRStartup()
546 UINT32 pcr, j; in PCRStateSave() local
552 for(pcr = 0; pcr < IMPLEMENTATION_PCR; pcr++) in PCRStateSave()
554 UINT32 stateSaved = (s_initAttributes[pcr].stateSave == SET) ? 1 : 0; in PCRStateSave()
560 pcrData = GetPcrPointer(gp.pcrAllocated.pcrSelections[j].hash, pcr); in PCRStateSave()
597 UINT32 pcr = handle - PCR_FIRST; in PCRIsStateSaved() local
598 if(s_initAttributes[pcr].stateSave == SET) in PCRIsStateSaved()
623 UINT32 pcr = handle - PCR_FIRST; in PCRIsResetAllowed() local
632 if((localityBits & s_initAttributes[pcr].resetLocality) == 0) in PCRIsResetAllowed()
676 UINT32 pcr = handle - PCR_FIRST; in PCRIsExtendAllowed() local
680 if((localityBits & s_initAttributes[pcr].extendLocality) == 0) in PCRIsExtendAllowed()
699 UINT32 pcr = handle - PCR_FIRST; in PCRExtend() local
703 pcrData = GetPcrPointer(hash, pcr); in PCRExtend()
738 UINT32 pcr; in PCRComputeCurrentDigest() local
752 for(pcr = 0; pcr < IMPLEMENTATION_PCR; pcr++) in PCRComputeCurrentDigest()
754 if(IsPcrSelected(pcr, select)) // Is this PCR selected in PCRComputeCurrentDigest()
757 pcrData = GetPcrPointer(selection->pcrSelections[i].hash, pcr); in PCRComputeCurrentDigest()
785 UINT32 pcr; in PCRRead() local
795 for (pcr = 0; pcr < IMPLEMENTATION_PCR; pcr++) in PCRRead()
797 if(IsPcrSelected(pcr, select)) // Is this PCR selected in PCRRead()
803 while( pcr < IMPLEMENTATION_PCR in PCRRead()
805 && (pcr / 8) < select->sizeofSelect) in PCRRead()
808 select->pcrSelect[pcr/8] &= (BYTE) ~(1 << (pcr % 8)); in PCRRead()
809 pcr++; in PCRRead()
818 pcrData = GetPcrPointer(selection->pcrSelections[i].hash, pcr); in PCRRead()
829 if(digest->count > 7 && pcr < IMPLEMENTATION_PCR) in PCRRead()
858 UINT32 pcr = handle - PCR_FIRST; in PcrWrite() local
861 pcrData = GetPcrPointer(hash, pcr); in PcrWrite()
982 UINT32 pcr = handle - PCR_FIRST; in PCRSetValue() local
994 pcrData = GetPcrPointer(gp.pcrAllocated.pcrSelections[i].hash, pcr); in PCRSetValue()
1021 UINT32 pcr, i; in PCRResetDynamics() local
1023 for(pcr = 0; pcr < IMPLEMENTATION_PCR; pcr++) in PCRResetDynamics()
1030 pcrData = GetPcrPointer(gp.pcrAllocated.pcrSelections[i].hash, pcr); in PCRResetDynamics()
1037 if((s_initAttributes[pcr].resetLocality & 0x10) != 0) in PCRResetDynamics()
1080 UINT32 pcr, // IN: PCR number in PCRSetSelectBit() argument
1084 bitmap[pcr / 8] |= (1 << (pcr % 8)); in PCRSetSelectBit()
1104 UINT32 pcr; in PCRGetProperty() local
1112 for(pcr = 0; pcr < IMPLEMENTATION_PCR; pcr++) in PCRGetProperty()
1117 if(s_initAttributes[pcr].stateSave == SET) in PCRGetProperty()
1118 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1121 if((s_initAttributes[pcr].extendLocality & 0x01) != 0) in PCRGetProperty()
1122 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1125 if((s_initAttributes[pcr].resetLocality & 0x01) != 0) in PCRGetProperty()
1126 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1129 if((s_initAttributes[pcr].extendLocality & 0x02) != 0) in PCRGetProperty()
1130 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1133 if((s_initAttributes[pcr].resetLocality & 0x02) != 0) in PCRGetProperty()
1134 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1137 if((s_initAttributes[pcr].extendLocality & 0x04) != 0) in PCRGetProperty()
1138 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1142 if((s_initAttributes[pcr].resetLocality & 0x04) != 0) in PCRGetProperty()
1143 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1146 if((s_initAttributes[pcr].extendLocality & 0x08) != 0) in PCRGetProperty()
1147 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1150 if((s_initAttributes[pcr].resetLocality & 0x08) != 0) in PCRGetProperty()
1151 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1154 if((s_initAttributes[pcr].extendLocality & 0x10) != 0) in PCRGetProperty()
1155 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1158 if((s_initAttributes[pcr].resetLocality & 0x10) != 0) in PCRGetProperty()
1159 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1163 if((s_initAttributes[pcr].resetLocality & 0x10) != 0) in PCRGetProperty()
1164 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1168 if(PCRBelongsPolicyGroup(pcr + PCR_FIRST, &groupIndex)) in PCRGetProperty()
1169 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1174 if(PCRBelongsAuthGroup(pcr + PCR_FIRST, &groupIndex)) in PCRGetProperty()
1175 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()
1180 if(PCRBelongsTCBGroup(pcr + PCR_FIRST)) in PCRGetProperty()
1181 PCRSetSelectBit(pcr, select->pcrSelect); in PCRGetProperty()