1Tspi_TPM_PcrExtend(3)      Library Functions Manual      Tspi_TPM_PcrExtend(3)
2
3
4
5                   TCG Software Stack Developer's Reference
6

NAME

8       Tspi_TPM_PcrExtend - extend a PCR register and optionally write the PCR
9       event log.
10

SYNOPSIS

12       #include <tss/platform.h>
13       #include <tss/tcpa_defines.h>
14       #include <tss/tcpa_typedef.h>
15       #include <tss/tcpa_struct.h>
16       #include <tss/tss_typedef.h>
17       #include <tss/tss_structs.h>
18       #include <tss/tspi.h>
19
20       TSS_RESULT Tspi_TPM_PcrExtend(TSS_HTPM       hTPM,              UINT32 ulPcrIndex,
21                                     UINT32         ulPcrDataLength,   BYTE*  pbPcrData,
22                                     TSS_PCR_EVENT* pPcrEvent,
23                                     UINT32*        pulPcrValueLength, BYTE** prgbPcrValue);
24
25
26

DESCRIPTION

28       Tspi_TPM_PcrExtend extends a PCR register and writes the PCR event  log
29       if one is supplied by the user.
30
31

PARAMETERS

33   hTPM
34       The hTPM parameter is used to specify the handle of the TPM object. The
35       command to get the TPM to test itself will be sent here.
36
37   ulPcrIndex
38       The ulPcrIndex parameter is the index of the PCR to extend.
39
40   ulPcrDataLength
41       The ulPcrDataLength parameter is the length in bytes of  the  pbPcrData
42       parameter.
43
44   pbPcrData
45       The  pbPcrData parameter is a pointer to data which will be used in the
46       extend operation.
47
48   pPcrEvent
49       The pPcrEvent parameter is the TSS_PCR_EVENT structure to be passed  to
50       the  TCS  to record the extend event. If pPcrEvent is not NULL, the ap‐
51       plication should fill out the members of the structure  that  it  cares
52       about.
53
54   pulPcrValueLength
55       The  pulPcrValueLength  parameter  receives  the length in bytes of the
56       prgbPcrValue parameter.
57
58   prgbPcrValue
59       The prgbPcrValue receives a pointer to the memory block containing  the
60       PCR data after the extend operation.
61
62

RETURN CODES

64       Tspi_TPM_PcrExtend returns TSS_SUCCESS on success, otherwise one of the
65       following values is returned:
66
67       TSS_E_INVALID_HANDLE
68              hTPM is not a valid handle.
69
70
71       TSS_E_INTERNAL_ERROR
72              An internal SW error has been detected.
73
74
75       TSS_E_BAD_PARAMETER
76              One or more parameters is bad.
77
78

CONFORMING TO

80       Tspi_TPM_PcrExtend conforms to the  Trusted  Computing  Group  Software
81       Specification version 1.1 Golden
82
83

SEE ALSO

85       Tspi_TPM_PcrRead(3).
86
87
88
89
90TSS 1.1                           2004-05-25             Tspi_TPM_PcrExtend(3)
Impressum