~ubuntu-branches/ubuntu/hardy/trousers/hardy-proposed

« back to all changes in this revision

Viewing changes to src/include/trpctp.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-01-23 22:03:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123220300-fhtqja3c0oq0gp6z
Tags: 0.3.1-4
* Added patch from Aaron M. Ucko <ucko@debian.org> to allow trousers to
  build successfully on amd64, and presumably also other 64-bit
  architectures (Closes: #457400).
* Including udev rule for /dev/tpm from William Lima
  <wlima.amadeus@gmail.com> as suggested by David Smith <dds@google.com>
  (Closes: #459682).
* Added lintian overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/*
3
 
 * Licensed Materials - Property of IBM
4
 
 *
5
 
 * trousers - An open source TCG Software Stack
6
 
 *
7
 
 * (C) Copyright International Business Machines Corp. 2004
8
 
 *
9
 
 */
10
 
 
11
 
#ifndef _TRPCTP_H_
12
 
#define _TRPCTP_H_
13
 
 
14
 
        TCPA_RESULT TCS_OpenContext_RPC_TP(struct host_table_entry *, TCS_CONTEXT_HANDLE *);
15
 
        TCPA_RESULT TCSP_GetRegisteredKeyByPublicInfo_TP(struct host_table_entry *,
16
 
                                                         TCPA_ALGORITHM_ID algID,       /* in */
17
 
                                                         UINT32 ulPublicInfoLength,     /* in */
18
 
                                                         BYTE * rgbPublicInfo,  /* in */
19
 
                                                         UINT32 * keySize,
20
 
                                                         BYTE ** keyBlob);
21
 
 
22
 
        TCPA_RESULT TCS_CloseContext_TP(struct host_table_entry *,
23
 
                                        TCS_CONTEXT_HANDLE hContext);
24
 
        TCPA_RESULT TCS_FreeMemory_TP(struct host_table_entry *,        /* in */
25
 
                                      BYTE * pMemory    /* in */
26
 
            );
27
 
        TCPA_RESULT TCS_LogPcrEvent_TP(struct host_table_entry *,       /* in */
28
 
                                       TSS_PCR_EVENT Event,     /* in */
29
 
                                       UINT32 * pNumber /* out */
30
 
            );
31
 
        TCPA_RESULT TCS_GetPcrEvent_TP(struct host_table_entry *,       /* in */
32
 
                                       UINT32 PcrIndex, /* in */
33
 
                                       UINT32 * pNumber,        /* in, out */
34
 
                                       TSS_PCR_EVENT ** ppEvent /* out */
35
 
            );
36
 
 
37
 
        TCPA_RESULT TCS_GetPcrEventsByPcr_TP(struct host_table_entry *, /* in */
38
 
                                             UINT32 PcrIndex,   /* in */
39
 
                                             UINT32 FirstEvent, /* in */
40
 
                                             UINT32 * pEventCount,      /* in ,out */
41
 
                                             TSS_PCR_EVENT ** ppEvents  /* out */
42
 
            );
43
 
 
44
 
        TCPA_RESULT TCS_GetPcrEventLog_TP(struct host_table_entry *,    /* in */
45
 
                                          UINT32 * pEventCount, /* out */
46
 
                                          TSS_PCR_EVENT ** ppEvents     /* out */
47
 
            );
48
 
 
49
 
        TCPA_RESULT TCS_RegisterKey_TP(struct host_table_entry *,       /* in */
50
 
                                       TSS_UUID WrappingKeyUUID,        /* in */
51
 
                                       TSS_UUID KeyUUID,        /* in */
52
 
                                       UINT32 cKeySize, /* in */
53
 
                                       BYTE * rgbKey,   /* in */
54
 
                                       UINT32 cVendorData,      /* in */
55
 
                                       BYTE * gbVendorData      /* in */
56
 
            );
57
 
 
58
 
        TCPA_RESULT TCSP_UnregisterKey_TP(struct host_table_entry *,    /* in */
59
 
                                          TSS_UUID KeyUUID      /* in */
60
 
            );
61
 
 
62
 
        TCPA_RESULT TCS_EnumRegisteredKeys_TP(struct host_table_entry *,        /* in */
63
 
                                              TSS_UUID * pKeyUUID,      /* in */
64
 
                                              UINT32 * pcKeyHierarchySize,      /* out */
65
 
                                              TSS_KM_KEYINFO ** ppKeyHierarchy  /* out */
66
 
            );
67
 
 
68
 
        TCPA_RESULT TCS_GetRegisteredKey_TP(struct host_table_entry *,  /* in */
69
 
                                            TSS_UUID KeyUUID,   /* in */
70
 
                                            TSS_KM_KEYINFO ** ppKeyInfo /* out */
71
 
            );
72
 
 
73
 
        TCPA_RESULT TCS_GetRegisteredKeyBlob_TP(struct host_table_entry *,      /* in */
74
 
                                                TSS_UUID KeyUUID,       /* in */
75
 
                                                UINT32 * pcKeySize,     /* out */
76
 
                                                BYTE ** prgbKey /* out */
77
 
            );
78
 
 
79
 
        TCPA_RESULT TCSP_LoadKeyByBlob_TP(struct host_table_entry *,    /* in */
80
 
                                          TCS_KEY_HANDLE hUnwrappingKey,        /* in */
81
 
                                          UINT32 cWrappedKeyBlobSize,   /* in */
82
 
                                          BYTE * rgbWrappedKeyBlob,     /* in */
83
 
                                          TPM_AUTH * pAuth,     /* in , out */
84
 
                                          TCS_KEY_HANDLE * phKeyTCSI,   /* out */
85
 
                                          TCS_KEY_HANDLE * phKeyHMAC    /* out */
86
 
            );
87
 
 
88
 
        TCPA_RESULT TCSP_LoadKeyByUUID_TP(struct host_table_entry *,    /* in */
89
 
                                          TSS_UUID KeyUUID,     /* in */
90
 
                                          TCS_LOADKEY_INFO * pLoadKeyInfo,      /* in , out */
91
 
                                          TCS_KEY_HANDLE * phKeyTCSI    /* out */
92
 
            );
93
 
 
94
 
        TCPA_RESULT TCSP_EvictKey_TP(struct host_table_entry *, /* in */
95
 
                                     TCS_KEY_HANDLE hKey        /* in */
96
 
            );
97
 
 
98
 
        TCPA_RESULT TCSP_CreateWrapKey_TP(struct host_table_entry *,    /* in */
99
 
                                          TCS_KEY_HANDLE hWrappingKey,  /* in */
100
 
                                          TCPA_ENCAUTH KeyUsageAuth,    /* in */
101
 
                                          TCPA_ENCAUTH KeyMigrationAuth,        /* in */
102
 
                                          UINT32 keyInfoSize,   /* in */
103
 
                                          BYTE * keyInfo,       /* in */
104
 
                                          UINT32 * keyDataSize, /* out */
105
 
                                          BYTE ** keyData,      /* out */
106
 
                                          TPM_AUTH * pAuth      /* in , out */
107
 
            );
108
 
 
109
 
        TCPA_RESULT TCSP_GetPubKey_TP(struct host_table_entry *,        /* in */
110
 
                                      TCS_KEY_HANDLE hKey,      /* in */
111
 
                                      TPM_AUTH * pAuth, /* in , out */
112
 
                                      UINT32 * pcPubKeySize,    /* out */
113
 
                                      BYTE ** prgbPubKey        /* out */
114
 
            );
115
 
 
116
 
        TCPA_RESULT TCSP_MakeIdentity_TP(struct host_table_entry *,     /* in */
117
 
                                         TCPA_ENCAUTH identityAuth,     /* in */
118
 
                                         TCPA_CHOSENID_HASH IDLabel_PrivCAHash, /* in */
119
 
                                         UINT32 idKeyInfoSize,  /* in */
120
 
                                         BYTE * idKeyInfo,      /* in */
121
 
                                         TPM_AUTH * pSrkAuth,   /* in , out */
122
 
                                         TPM_AUTH * pOwnerAuth, /* in , out */
123
 
                                         UINT32 * idKeySize,    /* out */
124
 
                                         BYTE ** idKey, /* out */
125
 
                                         UINT32 * pcIdentityBindingSize,        /* out */
126
 
                                         BYTE ** prgbIdentityBinding,   /* out */
127
 
                                         UINT32 * pcEndorsementCredentialSize,  /* out */
128
 
                                         BYTE ** prgbEndorsementCredential,     /* out */
129
 
                                         UINT32 * pcPlatformCredentialSize,     /* out */
130
 
                                         BYTE ** prgbPlatformCredential,        /* out */
131
 
                                         UINT32 * pcConformanceCredentialSize,  /* out */
132
 
                                         BYTE ** prgbConformanceCredential      /* out */
133
 
            );
134
 
 
135
 
        TCPA_RESULT TCSP_SetOwnerInstall_TP(struct host_table_entry *,  /* in */
136
 
                                            TSS_BOOL state      /* in */
137
 
            );
138
 
 
139
 
        TCPA_RESULT TCSP_TakeOwnership_TP(struct host_table_entry *,    /* in */
140
 
                                          UINT16 protocolID,    /* in */
141
 
                                          UINT32 encOwnerAuthSize,      /* in */
142
 
                                          BYTE * encOwnerAuth,  /* in */
143
 
                                          UINT32 encSrkAuthSize,        /* in */
144
 
                                          BYTE * encSrkAuth,    /* in */
145
 
                                          UINT32 srkInfoSize,   /* in */
146
 
                                          BYTE * srkInfo,       /* in */
147
 
                                          TPM_AUTH * ownerAuth, /* in , out */
148
 
                                          UINT32 * srkKeySize, BYTE ** srkKey);
149
 
 
150
 
        TCPA_RESULT TCSP_OIAP_TP(struct host_table_entry *,     /* in */
151
 
                                 TCS_AUTHHANDLE * authHandle,   /* out */
152
 
                                 TCPA_NONCE * nonce0    /* out */
153
 
            );
154
 
 
155
 
        TCPA_RESULT TCSP_OSAP_TP(struct host_table_entry *,     /* in */
156
 
                                 TCPA_ENTITY_TYPE entityType,   /* in */
157
 
                                 UINT32 entityValue,    /* in */
158
 
                                 TCPA_NONCE nonceOddOSAP,       /* in */
159
 
                                 TCS_AUTHHANDLE * authHandle,   /* out */
160
 
                                 TCPA_NONCE * nonceEven,        /* out */
161
 
                                 TCPA_NONCE * nonceEvenOSAP     /* out */
162
 
            );
163
 
 
164
 
        TCPA_RESULT TCSP_ChangeAuth_TP(struct host_table_entry *,
165
 
                                       TCS_KEY_HANDLE parentHandle,     /* in */
166
 
                                       TCPA_PROTOCOL_ID protocolID,     /* in */
167
 
                                       TCPA_ENCAUTH newAuth,    /* in */
168
 
                                       TCPA_ENTITY_TYPE entityType,     /* in */
169
 
                                       UINT32 encDataSize,      /* in */
170
 
                                       BYTE * encData,  /* in */
171
 
                                       TPM_AUTH * ownerAuth,    /* in , out */
172
 
                                       TPM_AUTH * entityAuth,   /* in , out */
173
 
                                       UINT32 * outDataSize,    /* out */
174
 
                                       BYTE ** outData  /* out */
175
 
            );
176
 
 
177
 
        TCPA_RESULT TCSP_ChangeAuthOwner_TP(struct host_table_entry *,  /* in */
178
 
                                            TCPA_PROTOCOL_ID protocolID,        /* in */
179
 
                                            TCPA_ENCAUTH newAuth,       /* in */
180
 
                                            TCPA_ENTITY_TYPE entityType,        /* in */
181
 
                                            TPM_AUTH * ownerAuth        /* in , out */
182
 
            );
183
 
 
184
 
        TCPA_RESULT TCSP_ChangeAuthAsymStart_TP(struct host_table_entry *,      /* in */
185
 
                                                TCS_KEY_HANDLE idHandle,        /* in */
186
 
                                                TCPA_NONCE antiReplay,  /* in */
187
 
                                                UINT32 KeySizeIn,       /* in */
188
 
                                                BYTE * KeyDataIn,       /* in */
189
 
                                                TPM_AUTH * pAuth,       /* in , out */
190
 
                                                UINT32 * KeySizeOut,    /* out */
191
 
                                                BYTE ** KeyDataOut,     /* out */
192
 
                                                UINT32 * CertifyInfoSize,       /* out */
193
 
                                                BYTE ** CertifyInfo,    /* out */
194
 
                                                UINT32 * sigSize,       /* out */
195
 
                                                BYTE ** sig,    /* out */
196
 
                                                TCS_KEY_HANDLE * ephHandle      /* out */
197
 
            );
198
 
 
199
 
        TCPA_RESULT TCSP_ChangeAuthAsymFinish_TP(struct host_table_entry *,     /* in */
200
 
                                                 TCS_KEY_HANDLE parentHandle,   /* in */
201
 
                                                 TCS_KEY_HANDLE ephHandle,      /* in */
202
 
                                                 TCPA_ENTITY_TYPE entityType,   /* in */
203
 
                                                 TCPA_HMAC newAuthLink, /* in */
204
 
                                                 UINT32 newAuthSize,    /* in */
205
 
                                                 BYTE * encNewAuth,     /* in */
206
 
                                                 UINT32 encDataSizeIn,  /* in */
207
 
                                                 BYTE * encDataIn,      /* in */
208
 
                                                 TPM_AUTH * ownerAuth,  /* in , out */
209
 
                                                 UINT32 * encDataSizeOut,       /* out */
210
 
                                                 BYTE ** encDataOut,    /* out */
211
 
                                                 TCPA_SALT_NONCE * saltNonce,   /* out */
212
 
                                                 TCPA_DIGEST * changeProof      /* out */
213
 
            );
214
 
 
215
 
        TCPA_RESULT TCSP_TerminateHandle_TP(struct host_table_entry *,  /* in */
216
 
                                            TCS_AUTHHANDLE handle       /* in */
217
 
            );
218
 
 
219
 
        TCPA_RESULT TCSP_ActivateTPMIdentity_TP(struct host_table_entry *,      /* in */
220
 
                                                TCS_KEY_HANDLE idKey,   /* in */
221
 
                                                UINT32 blobSize,        /* in */
222
 
                                                BYTE * blob,    /* in */
223
 
                                                TPM_AUTH * idKeyAuth,   /* in , out */
224
 
                                                TPM_AUTH * ownerAuth,   /* in , out */
225
 
                                                UINT32 * SymmetricKeySize,      /* out */
226
 
                                                BYTE ** SymmetricKey    /* out */
227
 
            );
228
 
 
229
 
        TCPA_RESULT TCSP_Extend_TP(struct host_table_entry *,   /* in */
230
 
                                   TCPA_PCRINDEX pcrNum,        /* in */
231
 
                                   TCPA_DIGEST inDigest,        /* in */
232
 
                                   TCPA_PCRVALUE * outDigest    /* out */
233
 
            );
234
 
 
235
 
        TCPA_RESULT TCSP_PcrRead_TP(struct host_table_entry *,  /* in */
236
 
                                    TCPA_PCRINDEX pcrNum,       /* in */
237
 
                                    TCPA_PCRVALUE * outDigest   /* out */
238
 
            );
239
 
 
240
 
        TCPA_RESULT TCSP_Quote_TP(struct host_table_entry *,    /* in */
241
 
                                  TCS_KEY_HANDLE keyHandle,     /* in */
242
 
                                  TCPA_NONCE antiReplay,        /* in */
243
 
                                  UINT32 pcrDataSizeIn, /* in */
244
 
                                  BYTE * pcrDataIn,     /* in */
245
 
                                  TPM_AUTH * privAuth,  /* in , out */
246
 
                                  UINT32 * pcrDataSizeOut,      /* out */
247
 
                                  BYTE ** pcrDataOut,   /* out */
248
 
                                  UINT32 * sigSize,     /* out */
249
 
                                  BYTE ** sig   /* out */
250
 
            );
251
 
 
252
 
        TCPA_RESULT TCSP_DirWriteAuth_TP(struct host_table_entry *,     /* in */
253
 
                                         TCPA_DIRINDEX dirIndex,        /* in */
254
 
                                         TCPA_DIRVALUE newContents,     /* in */
255
 
                                         TPM_AUTH * ownerAuth   /* in , out */
256
 
            );
257
 
 
258
 
        TCPA_RESULT TCSP_DirRead_TP(struct host_table_entry *,  /* in */
259
 
                                    TCPA_DIRINDEX dirIndex,     /* in */
260
 
                                    TCPA_DIRVALUE * dirValue    /* out */
261
 
            );
262
 
 
263
 
        TCPA_RESULT TCSP_Seal_TP(struct host_table_entry *,     /* in */
264
 
                                 TCS_KEY_HANDLE keyHandle,      /* in */
265
 
                                 TCPA_ENCAUTH encAuth,  /* in */
266
 
                                 UINT32 pcrInfoSize,    /* in */
267
 
                                 BYTE * PcrInfo,        /* in */
268
 
                                 UINT32 inDataSize,     /* in */
269
 
                                 BYTE * inData, /* in */
270
 
                                 TPM_AUTH * pubAuth,    /* in , out */
271
 
                                 UINT32 * SealedDataSize,       /* out */
272
 
                                 BYTE ** SealedData     /* out */
273
 
            );
274
 
 
275
 
        TCPA_RESULT TCSP_Unseal_TP(struct host_table_entry *,   /* in */
276
 
                                   TCS_KEY_HANDLE parentHandle, /* in */
277
 
                                   UINT32 SealedDataSize,       /* in */
278
 
                                   BYTE * SealedData,   /* in */
279
 
                                   TPM_AUTH * parentAuth,       /* in , out */
280
 
                                   TPM_AUTH * dataAuth, /* in , out */
281
 
                                   UINT32 * DataSize,   /* out */
282
 
                                   BYTE ** Data /* out */
283
 
            );
284
 
 
285
 
        TCPA_RESULT TCSP_UnBind_TP(struct host_table_entry *,   /* in */
286
 
                                   TCS_KEY_HANDLE keyHandle,    /* in */
287
 
                                   UINT32 inDataSize,   /* in */
288
 
                                   BYTE * inData,       /* in */
289
 
                                   TPM_AUTH * privAuth, /* in , out */
290
 
                                   UINT32 * outDataSize,        /* out */
291
 
                                   BYTE ** outData      /* out */
292
 
            );
293
 
 
294
 
        TCPA_RESULT TCSP_CreateMigrationBlob_TP(struct host_table_entry *,      /* in */
295
 
                                                TCS_KEY_HANDLE parentHandle,    /* in */
296
 
                                                TCPA_MIGRATE_SCHEME migrationType,      /* in */
297
 
                                                UINT32 MigrationKeyAuthSize,    /* in */
298
 
                                                BYTE * MigrationKeyAuth,        /* in */
299
 
                                                UINT32 encDataSize,     /* in */
300
 
                                                BYTE * encData, /* in */
301
 
                                                TPM_AUTH * parentAuth,  /* in , out */
302
 
                                                TPM_AUTH * entityAuth,  /* in , out */
303
 
                                                UINT32 * randomSize,    /* out */
304
 
                                                BYTE ** random, /* out */
305
 
                                                UINT32 * outDataSize,   /* out */
306
 
                                                BYTE ** outData /* out */
307
 
            );
308
 
 
309
 
        TCPA_RESULT TCSP_ConvertMigrationBlob_TP(struct host_table_entry *,     /* in */
310
 
                                                 TCS_KEY_HANDLE parentHandle,   /* in */
311
 
                                                 UINT32 inDataSize,     /* in */
312
 
                                                 BYTE * inData, /* in */
313
 
                                                 UINT32 randomSize,     /* in */
314
 
                                                 BYTE * random, /* in */
315
 
                                                 TPM_AUTH * parentAuth, /* in , out */
316
 
                                                 UINT32 * outDataSize,  /* out */
317
 
                                                 BYTE ** outData        /* out */
318
 
            );
319
 
 
320
 
        TCPA_RESULT TCSP_AuthorizeMigrationKey_TP(struct host_table_entry *,    /* in */
321
 
                                                  TCPA_MIGRATE_SCHEME migrateScheme,    /* in */
322
 
                                                  UINT32 MigrationKeySize,      /* in */
323
 
                                                  BYTE * MigrationKey,  /* in */
324
 
                                                  TPM_AUTH * ownerAuth, /* in, out */
325
 
                                                  UINT32 * MigrationKeyAuthSize,        /* out */
326
 
                                                  BYTE ** MigrationKeyAuth      /* out */
327
 
            );
328
 
 
329
 
        TCPA_RESULT TCSP_CertifyKey_TP(struct host_table_entry *,       /* in */
330
 
                                       TCS_KEY_HANDLE certHandle,       /* in */
331
 
                                       TCS_KEY_HANDLE keyHandle,        /* in */
332
 
                                       TCPA_NONCE antiReplay,   /* in */
333
 
                                       TPM_AUTH * certAuth,     /* in, out */
334
 
                                       TPM_AUTH * keyAuth,      /* in, out */
335
 
                                       UINT32 * CertifyInfoSize,        /* out */
336
 
                                       BYTE ** CertifyInfo,     /* out */
337
 
                                       UINT32 * outDataSize,    /* out */
338
 
                                       BYTE ** outData  /* out */
339
 
            );
340
 
 
341
 
        TCPA_RESULT TCSP_Sign_TP(struct host_table_entry *,     /* in */
342
 
                                 TCS_KEY_HANDLE keyHandle,      /* in */
343
 
                                 UINT32 areaToSignSize, /* in */
344
 
                                 BYTE * areaToSign,     /* in */
345
 
                                 TPM_AUTH * privAuth,   /* in, out */
346
 
                                 UINT32 * sigSize,      /* out */
347
 
                                 BYTE ** sig    /* out */
348
 
            );
349
 
 
350
 
        TCPA_RESULT TCSP_GetRandom_TP(struct host_table_entry *,        /* in */
351
 
                                      UINT32 bytesRequested,    /* in */
352
 
                                      BYTE ** randomBytes       /* out */
353
 
            );
354
 
 
355
 
        TCPA_RESULT TCSP_StirRandom_TP(struct host_table_entry *,       /* in */
356
 
                                       UINT32 inDataSize,       /* in */
357
 
                                       BYTE * inData    /* in */
358
 
            );
359
 
 
360
 
        TCPA_RESULT TCS_GetCapability_TP(struct host_table_entry *,     /* in */
361
 
                                         TCPA_CAPABILITY_AREA capArea,  /* in */
362
 
                                         UINT32 subCapSize,     /* in */
363
 
                                         BYTE * subCap, /* in */
364
 
                                         UINT32 * respSize,     /* out */
365
 
                                         BYTE ** resp   /* out */
366
 
            );
367
 
 
368
 
        TCPA_RESULT TCSP_GetCapability_TP(struct host_table_entry *,    /* in */
369
 
                                          TCPA_CAPABILITY_AREA capArea, /* in */
370
 
                                          UINT32 subCapSize,    /* in */
371
 
                                          BYTE * subCap,        /* in */
372
 
                                          UINT32 * respSize,    /* out */
373
 
                                          BYTE ** resp  /* out */
374
 
            );
375
 
 
376
 
        TCPA_RESULT TCSP_GetCapabilitySigned_TP(struct host_table_entry *,      /* in */
377
 
                                                TCS_KEY_HANDLE keyHandle,       /* in */
378
 
                                                TCPA_NONCE antiReplay,  /* in */
379
 
                                                TCPA_CAPABILITY_AREA capArea,   /* in */
380
 
                                                UINT32 subCapSize,      /* in */
381
 
                                                BYTE * subCap,  /* in */
382
 
                                                TPM_AUTH * privAuth,    /* in, out */
383
 
                                                TCPA_VERSION * Version, /* out */
384
 
                                                UINT32 * respSize,      /* out */
385
 
                                                BYTE ** resp,   /* out */
386
 
                                                UINT32 * sigSize,       /* out */
387
 
                                                BYTE ** sig     /* out */
388
 
            );
389
 
 
390
 
        TCPA_RESULT TCSP_GetCapabilityOwner_TP(struct host_table_entry *,       /* in */
391
 
                                               TPM_AUTH * pOwnerAuth,   /* out */
392
 
                                               TCPA_VERSION * pVersion, /* out */
393
 
                                               UINT32 * pNonVolatileFlags,      /* out */
394
 
                                               UINT32 * pVolatileFlags  /* out */
395
 
            );
396
 
 
397
 
        TCPA_RESULT TCSP_CreateEndorsementKeyPair_TP(struct host_table_entry *, /* in */
398
 
                                                     TCPA_NONCE antiReplay,     /* in */
399
 
                                                     UINT32 endorsementKeyInfoSize,     /* in */
400
 
                                                     BYTE * endorsementKeyInfo, /* in */
401
 
                                                     UINT32 * endorsementKeySize,       /* out */
402
 
                                                     BYTE ** endorsementKey,    /* out */
403
 
                                                     TCPA_DIGEST * checksum     /* out */
404
 
            );
405
 
 
406
 
        TCPA_RESULT TCSP_ReadPubek_TP(struct host_table_entry *,        /* in */
407
 
                                      TCPA_NONCE antiReplay,    /* in */
408
 
                                      UINT32 * pubEndorsementKeySize,   /* out */
409
 
                                      BYTE ** pubEndorsementKey,        /* out */
410
 
                                      TCPA_DIGEST * checksum    /* out */
411
 
            );
412
 
 
413
 
        TCPA_RESULT TCSP_DisablePubekRead_TP(struct host_table_entry *, /* in */
414
 
                                             TPM_AUTH * ownerAuth       /* in, out */
415
 
            );
416
 
 
417
 
        TCPA_RESULT TCSP_OwnerReadPubek_TP(struct host_table_entry *,   /* in */
418
 
                                           TPM_AUTH * ownerAuth,        /* in, out */
419
 
                                           UINT32 * pubEndorsementKeySize,      /* out */
420
 
                                           BYTE ** pubEndorsementKey    /* out */
421
 
            );
422
 
 
423
 
        TCPA_RESULT TCSP_SelfTestFull_TP(struct host_table_entry *, TCS_CONTEXT_HANDLE hContext /* in */
424
 
            );
425
 
 
426
 
        TCPA_RESULT TCSP_CertifySelfTest_TP(struct host_table_entry *,  /* in */
427
 
                                            TCS_KEY_HANDLE keyHandle,   /* in */
428
 
                                            TCPA_NONCE antiReplay,      /* in */
429
 
                                            TPM_AUTH * privAuth,        /* in, out */
430
 
                                            UINT32 * sigSize,   /* out */
431
 
                                            BYTE ** sig /* out */
432
 
            );
433
 
 
434
 
        TCPA_RESULT TCSP_GetTestResult_TP(struct host_table_entry *,    /* in */
435
 
                                          UINT32 * outDataSize, /* out */
436
 
                                          BYTE ** outData       /* out */
437
 
            );
438
 
 
439
 
        TCPA_RESULT TCSP_OwnerSetDisable_TP(struct host_table_entry *,  /* in */
440
 
                                            TSS_BOOL disableState,      /* in */
441
 
                                            TPM_AUTH * ownerAuth        /* in, out */
442
 
            );
443
 
 
444
 
        TCPA_RESULT TCSP_OwnerClear_TP(struct host_table_entry *,       /* in */
445
 
                                       TPM_AUTH * ownerAuth     /* in, out */
446
 
            );
447
 
 
448
 
        TCPA_RESULT TCSP_DisableOwnerClear_TP(struct host_table_entry *,        /* in */
449
 
                                              TPM_AUTH * ownerAuth      /* in, out */
450
 
            );
451
 
 
452
 
        TCPA_RESULT TCSP_ForceClear_TP(struct host_table_entry *, TCS_CONTEXT_HANDLE hContext   /* in */
453
 
            );
454
 
 
455
 
        TCPA_RESULT TCSP_DisableForceClear_TP(struct host_table_entry *, TCS_CONTEXT_HANDLE hContext    /* in */
456
 
            );
457
 
 
458
 
        TCPA_RESULT TCSP_PhysicalDisable_TP(struct host_table_entry *, TCS_CONTEXT_HANDLE hContext      /* in */
459
 
            );
460
 
 
461
 
        TCPA_RESULT TCSP_PhysicalEnable_TP(struct host_table_entry *, TCS_CONTEXT_HANDLE hContext       /* in */
462
 
            );
463
 
 
464
 
        TCPA_RESULT TCSP_PhysicalSetDeactivated_TP(struct host_table_entry *,   /* in */
465
 
                                                   TSS_BOOL state       /* in */
466
 
            );
467
 
 
468
 
        TCPA_RESULT TCSP_PhysicalPresence_TP(struct host_table_entry *, /* in */
469
 
                                                   TCPA_PHYSICAL_PRESENCE fPhysicalPresence     /* in */
470
 
            );
471
 
 
472
 
        TCPA_RESULT TCSP_SetTempDeactivated_TP(struct host_table_entry *, TCS_CONTEXT_HANDLE hContext   /* in */
473
 
            );
474
 
 
475
 
        TCPA_RESULT TCSP_FieldUpgrade_TP(struct host_table_entry *,     /* in */
476
 
                                         UINT32 dataInSize,     /* in */
477
 
                                         BYTE * dataIn, /* in */
478
 
                                         UINT32 * dataOutSize,  /* out */
479
 
                                         BYTE ** dataOut,       /* out */
480
 
                                         TPM_AUTH * ownerAuth   /* in, out */
481
 
            );
482
 
 
483
 
        TCPA_RESULT TCSP_SetRedirection_TP(struct host_table_entry *,   /* in */
484
 
                                           TCS_KEY_HANDLE keyHandle,    /* in */
485
 
                                           UINT32 c1,   /* in */
486
 
                                           UINT32 c2,   /* in */
487
 
                                           TPM_AUTH * privAuth  /* in, out */
488
 
            );
489
 
 
490
 
        TCPA_RESULT TCSP_CreateMaintenanceArchive_TP(struct host_table_entry *, /* in */
491
 
                                                     TSS_BOOL generateRandom,   /* in */
492
 
                                                     TPM_AUTH * ownerAuth,      /* in, out */
493
 
                                                     UINT32 * randomSize,       /* out */
494
 
                                                     BYTE ** random,    /* out */
495
 
                                                     UINT32 * archiveSize,      /* out */
496
 
                                                     BYTE ** archive    /* out */
497
 
            );
498
 
 
499
 
        TCPA_RESULT TCSP_LoadMaintenanceArchive_TP(struct host_table_entry *,   /* in */
500
 
                                                   UINT32 dataInSize,   /* in, out */
501
 
                                                   BYTE * dataIn,       /* in, out */
502
 
                                                   TPM_AUTH * ownerAuth,        /* in, out */
503
 
                                                   UINT32 * dataOutSize,        /* out */
504
 
                                                   BYTE ** dataOut      /* out */
505
 
            );
506
 
 
507
 
        TCPA_RESULT TCSP_KillMaintenanceFeature_TP(struct host_table_entry *,   /* in */
508
 
                                                   TPM_AUTH * ownerAuth /* in, out */
509
 
            );
510
 
 
511
 
        TCPA_RESULT TCSP_LoadManuMaintPub_TP(struct host_table_entry *, /* in */
512
 
                                             TCPA_NONCE antiReplay,     /* in */
513
 
                                             UINT32 PubKeySize, /* in */
514
 
                                             BYTE * PubKey,     /* in */
515
 
                                             TCPA_DIGEST * checksum     /* out */
516
 
            );
517
 
 
518
 
        TCPA_RESULT TCSP_ReadManuMaintPub_TP(struct host_table_entry *, /* in */
519
 
                                             TCPA_NONCE antiReplay,     /* in */
520
 
                                             TCPA_DIGEST * checksum     /* out */
521
 
            );
522
 
 
523
 
#endif