Home | History | Annotate | Line # | Download | only in doc
      1  1.1  christos 
      2  1.1  christos Tspi_TPM_GetEvents
      3  1.1  christos 
      4  1.1  christos   Events in the TCS event log are 0 indexed.  So, a call such as:
      5  1.1  christos 
      6  1.1  christos 	UINT32 five = 5;
      7  1.1  christos 	Tspi_TPM_GetEvents(hTPM, ulPcrIndex, 1, &five, &prgbPcrEvents);
      8  1.1  christos 
      9  1.1  christos   will get you 5 events (assuming at least 6 events have happened on the PCR) which
     10  1.1  christos   will be the 2nd through 6th events on the PCR. (Since the 1st event is at index 0).
     11  1.1  christos   This is probably what you want:
     12  1.1  christos 
     13  1.1  christos 	UINT32 five = 5;
     14  1.1  christos 	Tspi_TPM_GetEvents(hTPM, ulPcrIndex, 0, &five, &prgbPcrEvents);
     15  1.1  christos 
     16