1Tspi_TPM_PcrRead(3) Library Functions Manual Tspi_TPM_PcrRead(3)
2
3
4
5 TCG Software Stack Developer's Reference
6
8 Tspi_TPM_PcrRead - read the value in a PCR register
9
11 #include <tss/platform.h>
12 #include <tss/tcpa_defines.h>
13 #include <tss/tcpa_typedef.h>
14 #include <tss/tcpa_struct.h>
15 #include <tss/tss_typedef.h>
16 #include <tss/tss_structs.h>
17 #include <tss/tspi.h>
18
19 TSS_RESULT Tspi_TPM_PcrRead(TSS_HTPM hTPM, UINT32 ulPcrIndex,
20 UINT32* pulPcrValueLength, BYTE** prgbPcrValue);
21
22
23
25 Tspi_TPM_PcrRead reads a PCR register to find the current values.
26
27
29 hTPM
30 The hTPM parameter is used to specify the handle of the TPM object. The
31 command to get the TPM to test itself will be sent here.
32
33 ulPcrIndex
34 The ulPcrIndex parameter is the index of the PCR to read.
35
36 pulPcrValueLength
37 The pulPcrValueLength parameter receives the length in bytes of the
38 prgbPcrValue parameter.
39
40 prgbPcrValue
41 The prgbPcrValue parameter receives a pointer to the memory block con‐
42 taining the PCR data.
43
44
46 Tspi_TPM_PcrRead returns TSS_SUCCESS on success, otherwise one of the
47 following values is returned:
48
49 TSS_E_INVALID_HANDLE
50 hTPM is not a valid handle.
51
52
53 TSS_E_INTERNAL_ERROR
54 An internal SW error has been detected.
55
56
57 TSS_E_BAD_PARAMETER
58 One or more parameters is bad.
59
60
62 Tspi_TPM_PcrRead conforms to the Trusted Computing Group Software Spec‐
63 ification version 1.1 Golden
64
65
67 Tspi_TPM_PcrExtend(3).
68
69
70
71
72TSS 1.1 2004-05-25 Tspi_TPM_PcrRead(3)