Lines Matching refs:pcrSelection

46 #define SET_PCR_SELECT_BIT( pcrSelection, pcr ) \  argument
47 … (pcrSelection).pcrSelect[( (pcr)/8 )] |= ( 1 << ( (pcr) % 8) );
49 #define CLEAR_PCR_SELECT_BITS( pcrSelection ) \ argument
50 (pcrSelection).pcrSelect[0] = 0; \
51 (pcrSelection).pcrSelect[1] = 0; \
52 (pcrSelection).pcrSelect[2] = 0;
54 #define SET_PCR_SELECT_SIZE( pcrSelection, size ) \ argument
55 (pcrSelection).sizeofSelect = size;
530 TPML_PCR_SELECTION pcrSelection; in TestPcrExtend() local
559 pcrSelection.count = 1; in TestPcrExtend()
560 pcrSelection.pcrSelections[0].hash = TPM2_ALG_SHA1; in TestPcrExtend()
561 pcrSelection.pcrSelections[0].sizeofSelect = 3; in TestPcrExtend()
564 pcrSelection.pcrSelections[0].pcrSelect[0] = 0; in TestPcrExtend()
565 pcrSelection.pcrSelections[0].pcrSelect[1] = 0; in TestPcrExtend()
566 pcrSelection.pcrSelections[0].pcrSelect[2] = 0; in TestPcrExtend()
569 SET_PCR_SELECT_BIT( pcrSelection.pcrSelections[0], PCR_17 ); in TestPcrExtend()
571 …rval = Tss2_Sys_PCR_Read( sysContext, 0, &pcrSelection, &pcrUpdateCounterBeforeExtend, &pcrSelecti… in TestPcrExtend()
588 …rval = Tss2_Sys_PCR_Read( sysContext, 0, &pcrSelection, &pcrUpdateCounterAfterExtend, &pcrSelectio… in TestPcrExtend()
605 pcrSelection.pcrSelections[0].sizeofSelect = 255; in TestPcrExtend()
607 rval = Tss2_Sys_PCR_Read( sysContext, 0, &pcrSelection, &pcrUpdateCounterAfterExtend, 0, 0, 0 ); in TestPcrExtend()
1390 TPML_PCR_SELECTION pcrSelection; in TestQuote() local
1411 pcrSelection.count = 1; in TestQuote()
1412 pcrSelection.pcrSelections[0].hash = TPM2_ALG_SHA256; in TestQuote()
1413 pcrSelection.pcrSelections[0].sizeofSelect = 3; in TestQuote()
1416 pcrSelection.pcrSelections[0].pcrSelect[0] = 0; in TestQuote()
1417 pcrSelection.pcrSelections[0].pcrSelect[1] = 0; in TestQuote()
1418 pcrSelection.pcrSelections[0].pcrSelect[2] = 0; in TestQuote()
1421 pcrSelection.pcrSelections[0].pcrSelect[( PCR_17/8 )] = ( 1 << ( PCR_18 % 8) ); in TestQuote()
1432 &pcrSelection, &quoted, &signature, &sessionsDataOut ); in TestQuote()
1450 TPML_PCR_SELECTION pcrSelection; in TestPcrAllocate() local
1465 pcrSelection.count = 0; in TestPcrAllocate()
1467 rval = Tss2_Sys_PCR_Allocate( sysContext, TPM2_RH_PLATFORM, &sessionsData, &pcrSelection, in TestPcrAllocate()
1471 pcrSelection.count = 3; in TestPcrAllocate()
1472 pcrSelection.pcrSelections[0].hash = TPM2_ALG_SHA256; in TestPcrAllocate()
1473 CLEAR_PCR_SELECT_BITS( pcrSelection.pcrSelections[0] ); in TestPcrAllocate()
1474 SET_PCR_SELECT_SIZE( pcrSelection.pcrSelections[0], 3 ); in TestPcrAllocate()
1475 SET_PCR_SELECT_BIT( pcrSelection.pcrSelections[0], PCR_5 ); in TestPcrAllocate()
1476 SET_PCR_SELECT_BIT( pcrSelection.pcrSelections[0], PCR_7 ); in TestPcrAllocate()
1477 pcrSelection.pcrSelections[1].hash = TPM2_ALG_SHA384; in TestPcrAllocate()
1478 CLEAR_PCR_SELECT_BITS( pcrSelection.pcrSelections[1] ); in TestPcrAllocate()
1479 SET_PCR_SELECT_SIZE( pcrSelection.pcrSelections[1], 3 ); in TestPcrAllocate()
1480 SET_PCR_SELECT_BIT( pcrSelection.pcrSelections[1], PCR_5 ); in TestPcrAllocate()
1481 SET_PCR_SELECT_BIT( pcrSelection.pcrSelections[1], PCR_8 ); in TestPcrAllocate()
1482 pcrSelection.pcrSelections[2].hash = TPM2_ALG_SHA256; in TestPcrAllocate()
1483 CLEAR_PCR_SELECT_BITS( pcrSelection.pcrSelections[2] ); in TestPcrAllocate()
1484 SET_PCR_SELECT_SIZE( pcrSelection.pcrSelections[2], 3 ); in TestPcrAllocate()
1485 SET_PCR_SELECT_BIT( pcrSelection.pcrSelections[2], PCR_6 ); in TestPcrAllocate()
1487 rval = Tss2_Sys_PCR_Allocate( sysContext, TPM2_RH_PLATFORM, &sessionsData, &pcrSelection, in TestPcrAllocate()