coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tss_commands.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <stdint.h>
4 
5 const struct s_tpm_extend_cmd{
9 } tpm_extend_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x22, 0x0, 0x0, 0x0, 0x14, },
10 10, 14, };
11 
12 const struct s_tpm_get_random_cmd{
15 } tpm_get_random_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x46, },
16 10, };
17 
21  {0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65,
22  0x0, 0x0, 0x0, 0x5, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x11, },
23 };
24 
29  {0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65,
30  0x0, 0x0, 0x0, 0x11, 0x0, 0x0, 0x0, 0x4, },
31 18, };
32 
36  {0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65,
37  0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x9, },
38 };
39 
40 const struct s_tpm_getflags_cmd{
42 } tpm_getflags_cmd = {
43  {0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65,
44  0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x8, },
45 };
46 
51  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0, 0x72, },
52 10, };
53 
57  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f, },
58 };
59 
63  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x70, },
64 };
65 
66 const struct s_tpm_forceclear_cmd{
68 } tpm_forceclear_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, },
69 };
70 
71 const struct s_tpm_readpubek_cmd{
73 } tpm_readpubek_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, },
74 };
75 
79  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x53, },
80 };
81 
85  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, },
86 };
87 
88 const struct s_tpm_resume_cmd{
90 } tpm_resume_cmd = {
91  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x2, },
92 };
93 
94 const struct s_tpm_savestate_cmd{
96 } tpm_savestate_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x98, },
97 };
98 
99 const struct s_tpm_startup_cmd{
101 } tpm_startup_cmd = {
102  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x1, },
103 };
104 
105 const struct s_tpm_finalizepp_cmd{
107 } tpm_finalizepp_cmd = {
108  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x2, 0xa0, },
109 };
110 
111 const struct s_tpm_pplock_cmd{
113 } tpm_pplock_cmd = {
114  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x4, },
115 };
116 
117 const struct s_tpm_ppenable_cmd{
119 } tpm_ppenable_cmd = {
120  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x20, },
121 };
122 
123 const struct s_tpm_ppassert_cmd{
125 } tpm_ppassert_cmd = {
126  {0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x8, },
127 };
128 
129 const struct s_tpm_pcr_read_cmd{
132 } tpm_pcr_read_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x15, },
133 10, };
134 
135 const struct s_tpm_nv_read_cmd{
139 } tpm_nv_read_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0xcf, },
140 10, 18, };
141 
142 const struct s_tpm_nv_write_cmd{
147 } tpm_nv_write_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcd, },
148 10, 18, 22, };
149 
156  {0x0, 0xc1, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0xcc,
157  0x0, 0x18, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0,
158  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
159  0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
160  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x17,
161  },
162  12, 70, 77,
163 };
164 
165 const int kWriteInfoLength = 12;
unsigned short uint16_t
Definition: stdint.h:11
unsigned char uint8_t
Definition: stdint.h:8
uint16_t inDigest
Definition: tss_commands.h:8
uint8_t buffer[34]
Definition: tss_commands.h:6
uint16_t pcrNum
Definition: tss_commands.h:7
uint8_t buffer[10]
Definition: tss_commands.h:67
uint8_t buffer[14]
Definition: tss_commands.h:13
uint8_t buffer[22]
Definition: tss_commands.h:41
uint8_t buffer[22]
Definition: tss_commands.h:136
uint8_t buffer[256]
Definition: tss_commands.h:143
uint8_t buffer[14]
Definition: tss_commands.h:130
uint8_t buffer[12]
Definition: tss_commands.h:124
uint8_t buffer[12]
Definition: tss_commands.h:118
uint8_t buffer[12]
Definition: tss_commands.h:112
uint8_t buffer[30]
Definition: tss_commands.h:72
uint8_t buffer[12]
Definition: tss_commands.h:89
uint8_t buffer[10]
Definition: tss_commands.h:95
uint8_t buffer[12]
Definition: tss_commands.h:100
const struct s_tpm_pcr_read_cmd tpm_pcr_read_cmd
const struct s_tpm_extend_cmd tpm_extend_cmd
const struct s_tpm_physicaldisable_cmd tpm_physicaldisable_cmd
const struct s_tpm_ppassert_cmd tpm_ppassert_cmd
const struct s_tpm_getstclearflags_cmd tpm_getstclearflags_cmd
const struct s_tpm_nv_definespace_cmd tpm_nv_definespace_cmd
const struct s_tpm_nv_write_cmd tpm_nv_write_cmd
const struct s_tpm_selftestfull_cmd tpm_selftestfull_cmd
const int kWriteInfoLength
Definition: tss_commands.h:165
const struct s_tpm_get_random_cmd tpm_get_random_cmd
const struct s_tpm_finalizepp_cmd tpm_finalizepp_cmd
const struct s_tpm_getflags_cmd tpm_getflags_cmd
const struct s_tpm_getpermissions_cmd tpm_getpermissions_cmd
const int kNvDataPublicPermissionsOffset
Definition: tss_commands.h:166
const struct s_tpm_startup_cmd tpm_startup_cmd
const struct s_tpm_physicalsetdeactivated_cmd tpm_physicalsetdeactivated_cmd
const struct s_tpm_ppenable_cmd tpm_ppenable_cmd
const struct s_tpm_savestate_cmd tpm_savestate_cmd
const struct s_tpm_readpubek_cmd tpm_readpubek_cmd
const struct s_tpm_forceclear_cmd tpm_forceclear_cmd
const struct s_tpm_nv_read_cmd tpm_nv_read_cmd
const struct s_tpm_physicalenable_cmd tpm_physicalenable_cmd
const struct s_tpm_pplock_cmd tpm_pplock_cmd
const struct s_tpm_resume_cmd tpm_resume_cmd
const struct s_tpm_getownership_cmd tpm_getownership_cmd
const struct s_tpm_continueselftest_cmd tpm_continueselftest_cmd