1
.\" Copyright (C) 2004 International Business Machines Corporation
2
.\" Written by Megan Schneider based on the Trusted Computing Group Software Stack Specification Version 1.1 Golden
12
.de Sp \" Vertical space (when we can't use .PP)
18
.ie \\n(.$>=3 .ne \\$3
22
.TH "Tspi_TPM_PcrExtend" 3 "2004-05-25" "TSS 1.1"
24
TCG Software Stack Developer's Reference
26
Tspi_TPM_PcrExtend \- extend a PCR register and optionally write the PCR event log.
31
.B #include <tss/platform.h>
32
.B #include <tss/tcpa_defines.h>
33
.B #include <tss/tcpa_typedef.h>
34
.B #include <tss/tcpa_struct.h>
35
.B #include <tss/tss_typedef.h>
36
.B #include <tss/tss_structs.h>
37
.B #include <tss/tspi.h>
39
.BI "TSS_RESULT Tspi_TPM_PcrExtend(TSS_HTPM " hTPM ", UINT32 " ulPcrIndex ","
40
.BI " UINT32 " ulPcrDataLength ", BYTE* " pbPcrData ","
41
.BI " TSS_PCR_EVENT* " pPcrEvent ","
42
.BI " UINT32* " pulPcrValueLength ", BYTE** " prgbPcrValue ");"
50
\fBTspi_TPM_PcrExtend\fR extends a PCR register and writes the PCR event log if
51
one is supplied by the user.
56
The \fIhTPM\fR parameter is used to specify the handle of the TPM
57
object. The command to get the TPM to test itself will be sent here.
59
The \fIulPcrIndex\fR parameter is the index of the PCR to extend.
61
The \fIulPcrDataLength\fR parameter is the length in bytes of the \fIpbPcrData\fR parameter.
63
The \fIpbPcrData\fR parameter is a pointer to data to be hashed by the TSS, which will
64
be used in the extend operation.
66
The \fIpPcrEvent\fR parameter is the TSS_PCR_EVENT structure to be passed to the TCS
67
to record the extend event. If \fIpPcrEvent\fR is not NULL, the application should
68
fill out the members of the structure that it cares about.
70
The \fIpulPcrValueLength\fR parameter receives the length in bytes of the \fIprgbPcrValue\fR parameter.
72
The \fIprgbPcrValue\fR receives a pointer to the memory block containing the PCR data after the
77
\fBTspi_TPM_PcrExtend\fR returns TSS_SUCCESS on success, otherwise one
78
of the following values is returned:
80
.SM TSS_E_INVALID_HANDLE
81
\fIhTPM\fR is not a valid handle.
84
.SM TSS_E_INTERNAL_ERROR
85
An internal SW error has been detected.
88
.SM TSS_E_BAD_PARAMETER
89
One or more parameters is bad.
94
\fBTspi_TPM_PcrExtend\fR conforms to the Trusted Computing Group Software
95
Specification version 1.1 Golden
100
\fBTspi_TPM_PcrRead\fR(3).