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

« back to all changes in this revision

Viewing changes to man/man3/Tspi_TPM_StirRandom.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_StirRandom" 3 "2004-05-25" "TSS 1.1"
 
23
.ce 1
 
24
TCG Software Stack Developer's Reference
 
25
.SH NAME
 
26
Tspi_TPM_StirRandom \- add entropy to the TPM random number generator
 
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_StirRandom(TSS_HTPM " hTPM ", UINT32 " ulEntropyDataLength ", BYTE* " rgbEntropyData ");"
 
40
.fi
 
41
.sp
 
42
.ad
 
43
.hy
 
44
 
 
45
.SH "DESCRIPTION"
 
46
.PP
 
47
\fBTspi_TPM_StirRandom\fR adds entropy to the TPM
 
48
random number generator for the purpose of generating better random
 
49
numbers. The \fIentropy\fR variable should assigned an appropriately
 
50
seeded random number before this function is called.
 
51
 
 
52
.SH "PARAMETERS"
 
53
.PP
 
54
.SS hTPM
 
55
The \fIhTPM\fR parameter is used to specify the handle of the TPM
 
56
object. The command to get the TPM to test itself will be sent here.
 
57
.SS ulEntropyDataLength
 
58
The \fIulEntropyDataLength\fR parameter is the length in bytes of
 
59
the \fIrgbEntropyData\fR parameter.
 
60
.SS rgbEntropyData
 
61
The \fIrgbEntropyData\fR parameter is a pointer to the entropy data.
 
62
 
 
63
.SH "RETURN CODES"
 
64
.PP
 
65
\fBTspi_TPM_StirRandom\fR returns TSS_SUCCESS on success, otherwise
 
66
one of the following values is returned:
 
67
.TP
 
68
.SM TSS_E_INVALID_HANDLE
 
69
\fIhTPM\fR is not a valid handle.
 
70
 
 
71
.TP
 
72
.SM TSS_E_INTERNAL_ERROR
 
73
An internal SW error has been detected.
 
74
 
 
75
.TP
 
76
.SM TSS_E_BAD_PARAMETER
 
77
One or more parameters is bad.
 
78
 
 
79
.SH "CONFORMING TO"
 
80
 
 
81
.PP
 
82
\fBTspi_TPM_StirRandom\fR conforms to the Trusted Computing Group
 
83
Software Specification version 1.1 Golden
 
84
 
 
85
.SH "SEE ALSO"
 
86
 
 
87
.PP
 
88
\fBTspi_TPM_GetRandom\fR(3).
 
89