xref: /aosp_15_r20/external/vboot_reference/utility/include/tpmextras.h (revision 8617a60d3594060b7ecbd21bc622a7c14f3cf2bc)
1 /* Copyright 2010 The ChromiumOS Authors
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  *
5  * TPM definitions not available in any TSS include file :-(
6  */
7 
8 #ifndef VBOOT_REFERENCE_TPMEXTRAS_H_
9 #define VBOOT_REFERENCE_TPMEXTRAS_H_
10 
11 #define TPM_MAX_COMMAND_SIZE 4096
12 #define TPM_LARGE_ENOUGH_COMMAND_SIZE 256  /* saves space in the firmware */
13 #define TPM_ENCAUTH_SIZE 20
14 #define TPM_PUBEK_SIZE 256
15 
16 typedef struct tdTPM_WRITE_INFO {
17   uint32_t nvIndex;
18   uint32_t offset;
19   uint32_t dataSize;
20 } TPM_WRITE_INFO;
21 
22 #endif  /* VBOOT_REFERENCE_TPMEXTRAS_H_ */
23