~ubuntu-branches/ubuntu/jaunty/trousers/jaunty

« back to all changes in this revision

Viewing changes to src/include/tss/tcpa_error.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
 
  TPM error return codes basically extracted from TCPA Main Specification V1.1b
4
 
 
5
 
  --*/
6
 
 
7
 
#ifndef __TCPA_ERROR_H__
8
 
#define __TCPA_ERROR_H__
9
 
 
10
 
 
11
 
//////////////////////////////////////////////////////////////////////
12
 
// error codes
13
 
 
14
 
#ifndef TCPA_E_BASE
15
 
#define TCPA_E_BASE    0x00000000L
16
 
#endif
17
 
 
18
 
#ifndef TCPA_E_NON_FATAL
19
 
#define TCPA_E_NON_FATAL   0x00000800L
20
 
#endif
21
 
 
22
 
 
23
 
// Successful completion of the TCPA operation.
24
 
#define TCPA_SUCCESS    TCPA_E_BASE
25
 
 
26
 
//
27
 
// MessageId: TCPA_E_AUTHFAIL
28
 
//
29
 
// MessageText:
30
 
//
31
 
// Authentication failed.
32
 
//
33
 
#define TCPA_E_AUTHFAIL    (UINT32)(TCPA_E_BASE + 0x1)
34
 
 
35
 
//
36
 
// MessageId: TCPA_E_BADINDEX
37
 
//
38
 
// MessageText:
39
 
//
40
 
// The index to a PCR, DIR or other register is incorrect.
41
 
//
42
 
#define TCPA_E_BADINDEX    (UINT32)(TCPA_E_BASE + 0x2)
43
 
 
44
 
//
45
 
// MessageId: TCPA_E_BAD_PARAMETER
46
 
//
47
 
// MessageText:
48
 
//
49
 
// One or more TCPA command parameter is bad.
50
 
//
51
 
#define TCPA_E_BAD_PARAMETER   (UINT32)(TCPA_E_BASE + 0x3)
52
 
 
53
 
//
54
 
// MessageId: TCPA_E_AUDITFAILURE
55
 
//
56
 
// MessageText:
57
 
//
58
 
// An operation completed successfully but the auditing of that operation failed.
59
 
// 
60
 
#define TCPA_E_AUDITFAILURE   (UINT32)(TCPA_E_BASE + 0x4)
61
 
 
62
 
//
63
 
// MessageId: TCPA_E_CLEAR_DISABLED
64
 
//
65
 
// MessageText:
66
 
//
67
 
// The clear disable flag is set and all clear operations now require physical access.
68
 
//
69
 
#define TCPA_E_CLEAR_DISABLED   (UINT32)(TCPA_E_BASE + 0x5)
70
 
 
71
 
//
72
 
// MessageId: TCPA_E_DEACTIVATED
73
 
//
74
 
// MessageText:
75
 
//
76
 
// The TCPA is deactivated.
77
 
//
78
 
#define TCPA_E_DEACTIVATED   (UINT32)(TCPA_E_BASE + 0x6)
79
 
 
80
 
//
81
 
// MessageId: TCPA_E_DISABLED
82
 
//
83
 
// MessageText:
84
 
//
85
 
// The TCPA is disabled.
86
 
//
87
 
#define TCPA_E_DISABLED    (UINT32)(TCPA_E_BASE + 0x7)
88
 
 
89
 
//
90
 
// MessageId: TCPA_E_DISABLED_CMD
91
 
//
92
 
// MessageText:
93
 
//
94
 
// The target TCPA command has been disabled.
95
 
//
96
 
#define TCPA_E_DISABLED_CMD   (UINT32)(TCPA_E_BASE + 0x8)
97
 
 
98
 
//
99
 
// MessageId: TCPA_E_FAIL
100
 
//
101
 
// MessageText:
102
 
//
103
 
// The TCPA operation failed.
104
 
//
105
 
#define TCPA_E_FAIL    (UINT32)(TCPA_E_BASE + 0x9)
106
 
 
107
 
//
108
 
// MessageId: TCPA_E_INACTIVE 
109
 
//
110
 
// MessageText:
111
 
//
112
 
// The TCPA is inactive.
113
 
//
114
 
#define TCPA_E_INACTIVE    (UINT32)(TCPA_E_BASE + 0xA)
115
 
 
116
 
//
117
 
// MessageId: TCPA_E_INSTALL_DISABLED
118
 
//
119
 
// MessageText:
120
 
//
121
 
// The ability to install an owner is disabled.
122
 
//
123
 
#define TCPA_E_INSTALL_DISABLED  (UINT32)(TCPA_E_BASE + 0xB)
124
 
 
125
 
//
126
 
// MessageId: TCPA_E_INVALID_HANDLE
127
 
//
128
 
// MessageText:
129
 
//
130
 
// The TCPA key handle presented was invalid.
131
 
//
132
 
#define TCPA_E_INVALID_KEYHANDLE  (UINT32)(TCPA_E_BASE + 0xC)
133
 
 
134
 
//
135
 
// MessageId: TCPA_E_KEYNOTFOUND
136
 
//
137
 
// MessageText:
138
 
//
139
 
// The target key was not found in the TCPA.
140
 
//
141
 
#define TCPA_E_KEYNOTFOUND   (UINT32)(TCPA_E_BASE + 0xD)
142
 
 
143
 
//
144
 
// MessageId: TCPA_E_NEED_SELFTEST
145
 
//
146
 
// MessageText:
147
 
//
148
 
// The capability requires an untested function,
149
 
// additional self-test is required before the capability may execute.
150
 
//
151
 
#define TCPA_E_NEED_SELFTEST   (UINT32)(TCPA_E_BASE + 0xE)
152
 
 
153
 
//
154
 
// MessageId: TCPA_E_MIGRATEFAIL
155
 
//
156
 
// MessageText:
157
 
//
158
 
// Migration authorization failed.
159
 
//
160
 
#define TCPA_E_MIGRATEFAIL   (UINT32)(TCPA_E_BASE + 0xF)
161
 
 
162
 
//
163
 
// MessageId: TCPA_E_NO_PCR_INFO
164
 
//
165
 
// MessageText:
166
 
//
167
 
// A list of PCR values was not supplied.
168
 
//
169
 
#define TCPA_E_NO_PCR_INFO   (UINT32)(TCPA_E_BASE + 0x10)
170
 
 
171
 
//
172
 
// MessageId: TCPA_E_NOSPACE
173
 
//
174
 
// MessageText:
175
 
//
176
 
// No room in the TCPA to load a key.
177
 
//
178
 
#define TCPA_E_NOSPACE    (UINT32)(TCPA_E_BASE + 0x11)
179
 
 
180
 
//
181
 
// MessageId: TCPA_E_NOSRK
182
 
//
183
 
// MessageText:
184
 
//
185
 
// There is no SRK set.
186
 
//
187
 
#define TCPA_E_NOSRK    (UINT32)(TCPA_E_BASE + 0x12)
188
 
 
189
 
//
190
 
// MessageId: TCPA_E_NOTSEALED_BLOB
191
 
//
192
 
// MessageText:
193
 
//
194
 
// An encrypted blob is invalid or was not created by this TCPA.
195
 
//
196
 
#define TCPA_E_NOTSEALED_BLOB   (UINT32)(TCPA_E_BASE + 0x13)
197
 
 
198
 
//
199
 
// MessageId: TCPA_E_OWNER_SET
200
 
//
201
 
// MessageText:
202
 
//
203
 
// An Owner is already set in the TCPA.
204
 
//
205
 
#define TCPA_E_OWNER_SET   (UINT32)(TCPA_E_BASE + 0x14)
206
 
 
207
 
//
208
 
// MessageId: TCPA_E_RESOURCES
209
 
//
210
 
// MessageText:
211
 
//
212
 
// The TPM has insufficient internal resources to perform the requested action.
213
 
//
214
 
#define TCPA_E_RESOURCES   (UINT32)(TCPA_E_BASE + 0x15)
215
 
 
216
 
//
217
 
// MessageId: TCPA_E_SHORTRANDOM
218
 
//
219
 
// MessageText:
220
 
//
221
 
// A random string supplied to the TPM was too short.
222
 
//
223
 
#define TCPA_E_SHORTRANDOM   (UINT32)(TCPA_E_BASE + 0x16)
224
 
 
225
 
//
226
 
// MessageId: TCPA_E_SIZE
227
 
//
228
 
// MessageText:
229
 
//
230
 
// The TPM does not have the space to perform the operation.
231
 
//
232
 
#define TCPA_E_SIZE    (UINT32)(TCPA_E_BASE + 0x17)
233
 
 
234
 
//
235
 
// MessageId: TCPA_E_WRONGPCRVAL
236
 
//
237
 
// MessageText:
238
 
//
239
 
// The named PCR value does not match the current PCR value.
240
 
//
241
 
#define TCPA_E_WRONGPCRVAL   (UINT32)(TCPA_E_BASE + 0x18)
242
 
 
243
 
//
244
 
// MessageId: TCPA_E_BUSY
245
 
//
246
 
// MessageText:
247
 
//
248
 
// The TPM is too busy to respond to the command.
249
 
//
250
 
//#define TCPA_E_BUSY    (UINT32)(TCPA_E_BASE + 0x19)
251
 
 
252
 
//
253
 
// MessageId: TCPA_E_BAD_PARAM_SIZE
254
 
//
255
 
// MessageText:
256
 
//
257
 
// The paramSize argument to the command has the incorrect value
258
 
//
259
 
#define TCPA_E_BAD_PARAM_SIZE   (UINT32)(TCPA_E_BASE + 0x19)
260
 
 
261
 
//
262
 
// MessageId: TCPA_E_SHA_THREAD
263
 
//
264
 
// MessageText:
265
 
//
266
 
// There is no existing SHA-1 thread in the TPM.
267
 
//
268
 
#define TCPA_E_SHA_THREAD   (UINT32)(TCPA_E_BASE + 0x1A)
269
 
 
270
 
//
271
 
// MessageId: TCPA_E_SHA_ERROR
272
 
//
273
 
// MessageText:
274
 
//
275
 
// The calculation is unable to proceed because the existing SHA-1
276
 
// thread has already encountered an error.
277
 
//
278
 
#define TCPA_E_SHA_ERROR   (UINT32)(TCPA_E_BASE + 0x1B)
279
 
 
280
 
//
281
 
// MessageId: TCPA_E_FAILEDSELFTEST
282
 
//
283
 
// MessageText:
284
 
//
285
 
// Self-test has failed and the TPM has shutdown.
286
 
//
287
 
#define TCPA_E_FAILEDSELFTEST   (UINT32)(TCPA_E_BASE + 0x1C)
288
 
 
289
 
//
290
 
// MessageId: TCPA_E_AUTH2FAIL
291
 
//
292
 
// MessageText:
293
 
//
294
 
// The authorization for the second key in a 2 key function failed authorization.
295
 
//
296
 
#define TCPA_E_AUTH2FAIL   (UINT32)(TCPA_E_BASE + 0x1D)
297
 
 
298
 
//
299
 
// MessageId: TCPA_E_BADTAG
300
 
//
301
 
// MessageText:
302
 
//
303
 
// The tag value sent to the TPM for a command is invalid.
304
 
//
305
 
#define TCPA_E_BADTAG    (UINT32)(TCPA_E_BASE + 0x1E)
306
 
 
307
 
//
308
 
// MessageId: TCPA_E_IOERROR
309
 
//
310
 
// MessageText:
311
 
//
312
 
//  An IO error occurred transmitting information to the TPM.
313
 
//
314
 
#define TCPA_E_IOERROR    (UINT32)(TCPA_E_BASE + 0x1F)
315
 
 
316
 
//
317
 
// MessageId: TCPA_E_ENCRYPT_ERROR
318
 
//
319
 
// MessageText:
320
 
//
321
 
// The TPM encryption process had a problem.
322
 
//
323
 
#define TCPA_E_ENCRYPT_ERROR   (UINT32)(TCPA_E_BASE + 0x20)
324
 
 
325
 
//
326
 
// MessageId: TCPA_E_DECRYPT_ERROR
327
 
//
328
 
// MessageText:
329
 
//
330
 
// The TPM decryption process did not complete.
331
 
//
332
 
#define TCPA_E_DECRYPT_ERROR   (UINT32)(TCPA_E_BASE + 0x21)
333
 
 
334
 
//
335
 
// MessageId: TCPA_E_INVALID_AUTHHANDLE
336
 
//
337
 
// MessageText:
338
 
//
339
 
// The TPM auth handle was invalid.
340
 
//
341
 
#define TCPA_E_INVALID_AUTHHANDLE  (UINT32)(TCPA_E_BASE + 0x22)
342
 
 
343
 
//
344
 
// MessageId: TCPA_E_NO_ENDORSEMENT
345
 
//
346
 
// MessageText:
347
 
//
348
 
// The TPM does not have an Endorsement Key installed.
349
 
//
350
 
#define TCPA_E_NO_ENDORSEMENT   (UINT32)(TCPA_E_BASE + 0x23)
351
 
 
352
 
//
353
 
// MessageId: TCPA_E_INVALID_KEYUSAGE
354
 
//
355
 
// MessageText:
356
 
//
357
 
// The usage of a key is not allowed.
358
 
//
359
 
#define TCPA_E_INVALID_KEYUSAGE  (UINT32)(TCPA_E_BASE + 0x24)
360
 
 
361
 
//
362
 
// MessageId: TCPA_E_WRONG_ENTITYTYPE
363
 
//
364
 
// MessageText:
365
 
//
366
 
//  The submitted entity type is not allowed.
367
 
//
368
 
#define TCPA_E_WRONG_ENTITYTYPE  (UINT32)(TCPA_E_BASE + 0x25)
369
 
 
370
 
//
371
 
// MessageId: TCPA_INVALID_POSTINIT
372
 
//
373
 
// MessageText:
374
 
//
375
 
// The command was received in the wrong sequence relative to TPM_Init and a subsequent TPM_Startup.
376
 
//
377
 
#define TCPA_E_INVALID_POSTINIT  (UINT32)(TCPA_E_BASE + 0x26)
378
 
 
379
 
//
380
 
// MessageId: TCPA_E_INAPPROPRIATE_SIG
381
 
//
382
 
// MessageText:
383
 
//
384
 
// Signed data cannot include additional DER information.
385
 
//
386
 
#define TCPA_E_INAPPROPRIATE_SIG  (UINT32)(TCPA_E_BASE + 0x27)
387
 
 
388
 
//
389
 
// MessageId: TCPA_E_BAD_KEY_PROPERTY
390
 
//
391
 
// MessageText:
392
 
//
393
 
//  The key properties in TCPA_KEY_PARMs are not supported by this TPM.
394
 
//
395
 
#define TCPA_E_BAD_KEY_PROPERTY  (UINT32)(TCPA_E_BASE + 0x28)
396
 
 
397
 
//
398
 
// MessageId: TCPA_E_BAD_MIGRATION
399
 
//
400
 
// MessageText:
401
 
//
402
 
//  The migration properties of this key are incorrect.
403
 
//
404
 
#define TCPA_E_BAD_MIGRATION   (UINT32)(TCPA_E_BASE + 0x29)
405
 
 
406
 
//
407
 
// MessageId: TCPA_E_BAD_SCHEME
408
 
//
409
 
// MessageText:
410
 
//
411
 
// The signature or encryption scheme for this key is incorrect or not permitted in this situation.
412
 
//
413
 
#define TCPA_E_BAD_SCHEME   (UINT32)(TCPA_E_BASE + 0x2A)
414
 
 
415
 
//
416
 
// MessageId: TCPA_E_BAD_DATASIZE
417
 
//
418
 
// MessageText:
419
 
//
420
 
//  The size of the data (or blob) parameter is bad or inconsistent with the referenced key.
421
 
//
422
 
#define TCPA_E_BAD_DATASIZE   (UINT32)(TCPA_E_BASE + 0x2B)
423
 
 
424
 
//
425
 
// MessageId: TCPA_E_BAD_MODE
426
 
//
427
 
// MessageText:
428
 
//
429
 
// A mode parameter is bad, such as capArea or subCapArea for TPM_GetCapability,
430
 
// phsicalPresence parameter for TPM_PhysicalPresence,
431
 
// or migrationType for TPM_CreateMigrationBlob.
432
 
//
433
 
#define TCPA_E_BAD_MODE    (UINT32)(TCPA_E_BASE + 0x2C)
434
 
 
435
 
//
436
 
// MessageId: TCPA_E_BAD_PRESENCE
437
 
//
438
 
// MessageText:
439
 
//
440
 
// Either the physicalPresence or physicalPresenceLock bits have the wrong value.
441
 
//
442
 
#define TCPA_E_BAD_PRESENCE   (UINT32)(TCPA_E_BASE + 0x2D)
443
 
 
444
 
//
445
 
// MessageId: TCPA_E_BAD_VERSION
446
 
//
447
 
// MessageText:
448
 
//
449
 
// The TPM cannot perform this version of the capability.
450
 
//
451
 
#define TCPA_E_BAD_VERSION   (UINT32)(TCPA_E_BASE + 0x2E)
452
 
 
453
 
 
454
 
//////////////////////////////////////////////////////////////////////
455
 
// non fatal errors
456
 
 
457
 
//
458
 
// MessageId: TCPA_E_RETRY
459
 
//
460
 
// MessageText:
461
 
//
462
 
// The TPM is too busy to respond to the command immediately,
463
 
// but the command could be resubmitted at a later time.
464
 
//
465
 
#define TCPA_E_RETRY  (UINT32)(TCPA_E_BASE + TCPA_E_NON_FATAL)
466
 
 
467
 
#endif // __TCPA_ERROR_H__
 
1
 
 
2
#ifndef __TCPA_ERROR_H__
 
3
#define __TCPA_ERROR_H__
 
4
 
 
5
#warning including deprecated header file tcpa_error.h
 
6
 
 
7
#endif