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_StirRandom" 3 "2004-05-25" "TSS 1.1"
24
TCG Software Stack Developer's Reference
26
Tspi_TPM_StirRandom \- add entropy to the TPM random number generator
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_StirRandom(TSS_HTPM " hTPM ", UINT32 " ulEntropyDataLength ", BYTE* " rgbEntropyData ");"
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.
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.
61
The \fIrgbEntropyData\fR parameter is a pointer to the entropy data.
65
\fBTspi_TPM_StirRandom\fR returns TSS_SUCCESS on success, otherwise
66
one of the following values is returned:
68
.SM TSS_E_INVALID_HANDLE
69
\fIhTPM\fR is not a valid handle.
72
.SM TSS_E_INTERNAL_ERROR
73
An internal SW error has been detected.
76
.SM TSS_E_BAD_PARAMETER
77
One or more parameters is bad.
82
\fBTspi_TPM_StirRandom\fR conforms to the Trusted Computing Group
83
Software Specification version 1.1 Golden
88
\fBTspi_TPM_GetRandom\fR(3).