~ubuntu-branches/ubuntu/gutsy/trousers/gutsy

« back to all changes in this revision

Viewing changes to man/man3/Tspi_TPM_PcrExtend.3

  • Committer: Bazaar Package Importer
  • Author(s): William Lima
  • Date: 2007-04-18 16:39:38 UTC
  • Revision ID: james.westby@ubuntu.com-20070418163938-opscl2mvvi76jiec
Tags: upstream-0.2.9.1
ImportĀ upstreamĀ versionĀ 0.2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
3
.\"
 
4
.de Sh \" Subsection
 
5
.br
 
6
.if t .Sp
 
7
.ne 5
 
8
.PP
 
9
\fB\\$1\fR
 
10
.PP
 
11
..
 
12
.de Sp \" Vertical space (when we can't use .PP)
 
13
.if t .sp .5v
 
14
.if n .sp
 
15
..
 
16
.de Ip \" List item
 
17
.br
 
18
.ie \\n(.$>=3 .ne \\$3
 
19
.el .ne 3
 
20
.IP "\\$1" \\$2
 
21
..
 
22
.TH "Tspi_TPM_PcrExtend" 3 "2004-05-25" "TSS 1.1"
 
23
.ce 1
 
24
TCG Software Stack Developer's Reference
 
25
.SH NAME
 
26
Tspi_TPM_PcrExtend \- extend a PCR register and optionally write the PCR event log.
 
27
.SH "SYNOPSIS"
 
28
.ad l
 
29
.hy 0
 
30
.nf
 
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>
 
38
.sp
 
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 ");"
 
43
.fi
 
44
.sp
 
45
.ad
 
46
.hy
 
47
 
 
48
.SH "DESCRIPTION"
 
49
.PP
 
50
\fBTspi_TPM_PcrExtend\fR extends a PCR register and writes the PCR event log if
 
51
one is supplied by the user.
 
52
 
 
53
.SH "PARAMETERS"
 
54
.PP
 
55
.SS hTPM
 
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.
 
58
.SS ulPcrIndex
 
59
The \fIulPcrIndex\fR parameter is the index of the PCR to extend.
 
60
.SS ulPcrDataLength
 
61
The \fIulPcrDataLength\fR parameter is the length in bytes of the \fIpbPcrData\fR parameter.
 
62
.SS pbPcrData
 
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.
 
65
.SS pPcrEvent
 
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.
 
69
.SS pulPcrValueLength
 
70
The \fIpulPcrValueLength\fR parameter receives the length in bytes of the \fIprgbPcrValue\fR parameter.
 
71
.SS prgbPcrValue
 
72
The \fIprgbPcrValue\fR receives a pointer to the memory block containing the PCR data after the
 
73
extend operation.
 
74
 
 
75
.SH "RETURN CODES"
 
76
.PP
 
77
\fBTspi_TPM_PcrExtend\fR returns TSS_SUCCESS on success, otherwise one
 
78
of the following values is returned:
 
79
.TP
 
80
.SM TSS_E_INVALID_HANDLE
 
81
\fIhTPM\fR is not a valid handle.
 
82
 
 
83
.TP
 
84
.SM TSS_E_INTERNAL_ERROR
 
85
An internal SW error has been detected.
 
86
 
 
87
.TP
 
88
.SM TSS_E_BAD_PARAMETER
 
89
One or more parameters is bad.
 
90
 
 
91
.SH "CONFORMING TO"
 
92
 
 
93
.PP
 
94
\fBTspi_TPM_PcrExtend\fR conforms to the Trusted Computing Group Software
 
95
Specification version 1.1 Golden
 
96
 
 
97
.SH "SEE ALSO"
 
98
 
 
99
.PP
 
100
\fBTspi_TPM_PcrRead\fR(3).
 
101