| OLD | NEW |
| 1 /* Following this comment, this file contains the content of the file | 1 /* Following this comment, this file contains the content of the file |
| 2 * structures.h which is automatically generated from generator.c. This file | 2 * structures.h which is automatically generated from generator.c. This file |
| 3 * is included for convenience. Any changes to generator.c (typically when | 3 * is included for convenience. Any changes to generator.c (typically when |
| 4 * adding commands) will require its recompilation and reexecution. The output | 4 * adding commands) will require its recompilation and reexecution. The output |
| 5 * should be used as structures.h. The compilation of generator.c requires the | 5 * should be used as structures.h. The compilation of generator.c requires the |
| 6 * trousers library, which is only available on Linux. | 6 * trousers library, which is only available on Linux. |
| 7 */ | 7 */ |
| 8 /* This file is automatically generated */ | 8 /* This file is automatically generated */ |
| 9 | 9 |
| 10 struct { | 10 struct { |
| 11 uint8_t buffer[34]; |
| 12 uint8_t* pcrNum; |
| 13 uint8_t* inDigest; |
| 14 } tpm_extend_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x22, 0x0, 0x0, 0x0, 0x14, }, |
| 15 tpm_extend_cmd.buffer + 10, tpm_extend_cmd.buffer + 14, }; |
| 16 |
| 17 struct { |
| 11 uint8_t buffer[22]; | 18 uint8_t buffer[22]; |
| 12 } tpm_getcapability_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65,
0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x8, }, | 19 uint8_t* index; |
| 20 } tpm_getpermissions_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65
, 0x0, 0x0, 0x0, 0x11, 0x0, 0x0, 0x0, 0x4, }, |
| 21 tpm_getpermissions_cmd.buffer + 18, }; |
| 22 |
| 23 struct { |
| 24 uint8_t buffer[22]; |
| 25 } tpm_getflags_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65, 0x0,
0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x8, }, |
| 13 }; | 26 }; |
| 14 | 27 |
| 15 struct { | 28 struct { |
| 16 uint8_t buffer[11]; | 29 uint8_t buffer[11]; |
| 17 uint8_t* deactivated; | 30 uint8_t* deactivated; |
| 18 } tpm_physicalsetdeactivated_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x
0, 0x72, }, | 31 } tpm_physicalsetdeactivated_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x
0, 0x72, }, |
| 19 tpm_physicalsetdeactivated_cmd.buffer + 10, }; | 32 tpm_physicalsetdeactivated_cmd.buffer + 10, }; |
| 20 | 33 |
| 21 struct { | 34 struct { |
| 22 uint8_t buffer[10]; | 35 uint8_t buffer[10]; |
| 23 } tpm_physicalenable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f,
}, | 36 } tpm_physicalenable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f,
}, |
| 24 }; | 37 }; |
| 25 | 38 |
| 26 struct { | 39 struct { |
| 27 uint8_t buffer[10]; | 40 uint8_t buffer[10]; |
| 28 } tpm_forceclear_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, }, | 41 } tpm_forceclear_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, }, |
| 29 }; | 42 }; |
| 30 | 43 |
| 31 struct { | 44 struct { |
| 32 uint8_t buffer[30]; | 45 uint8_t buffer[30]; |
| 33 } tpm_readpubek_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, }, | 46 } tpm_readpubek_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, }, |
| 34 }; | 47 }; |
| 35 | 48 |
| 36 struct { | 49 struct { |
| 37 uint8_t buffer[10]; | 50 uint8_t buffer[10]; |
| 51 } tpm_continueselftest_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5
3, }, |
| 52 }; |
| 53 |
| 54 struct { |
| 55 uint8_t buffer[10]; |
| 38 } tpm_selftestfull_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, }
, | 56 } tpm_selftestfull_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, }
, |
| 39 }; | 57 }; |
| 40 | 58 |
| 41 struct { | 59 struct { |
| 42 uint8_t buffer[12]; | 60 uint8_t buffer[12]; |
| 43 } tpm_startup_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0
x1, }, | 61 } tpm_startup_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0
x1, }, |
| 44 }; | 62 }; |
| 45 | 63 |
| 46 struct { | 64 struct { |
| 47 uint8_t buffer[12]; | 65 uint8_t buffer[12]; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 70 | 88 |
| 71 struct { | 89 struct { |
| 72 uint8_t buffer[101]; | 90 uint8_t buffer[101]; |
| 73 uint8_t* index; | 91 uint8_t* index; |
| 74 uint8_t* perm; | 92 uint8_t* perm; |
| 75 uint8_t* size; | 93 uint8_t* size; |
| 76 } tpm_nv_definespace_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0xcc
, 0x0, 0x18, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x17, }, | 94 } tpm_nv_definespace_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0xcc
, 0x0, 0x18, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x17, }, |
| 77 tpm_nv_definespace_cmd.buffer + 12, tpm_nv_definespace_cmd.buffer + 70, tpm_nv_d
efinespace_cmd.buffer + 77, }; | 95 tpm_nv_definespace_cmd.buffer + 12, tpm_nv_definespace_cmd.buffer + 70, tpm_nv_d
efinespace_cmd.buffer + 77, }; |
| 78 | 96 |
| 79 const int kWriteInfoLength = 12; | 97 const int kWriteInfoLength = 12; |
| 98 const int kNvDataPublicPermissionsOffset = 60; |
| OLD | NEW |