coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tcpa_log_serialized.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __TCPA_LOG_SERIALIZED_H__
4
#define __TCPA_LOG_SERIALIZED_H__
5
6
#include <
stdint.h
>
7
8
#define MAX_TCPA_LOG_ENTRIES 50
9
#define TCPA_DIGEST_MAX_LENGTH 64
10
#define TCPA_PCR_HASH_NAME 50
11
#define TCPA_PCR_HASH_LEN 10
12
/* Assumption of 2K TCPA log size reserved for CAR/SRAM */
13
#define MAX_PRERAM_TCPA_LOG_ENTRIES 15
14
15
struct
tcpa_entry
{
16
uint32_t
pcr
;
17
char
digest_type
[
TCPA_PCR_HASH_LEN
];
18
uint8_t
digest
[
TCPA_DIGEST_MAX_LENGTH
];
19
uint32_t
digest_length
;
20
char
name
[
TCPA_PCR_HASH_NAME
];
21
}
__packed
;
22
23
struct
tcpa_table
{
24
uint16_t
max_entries
;
25
uint16_t
num_entries
;
26
struct
tcpa_entry
entries
[0];
/* Variable number of entries */
27
}
__packed
;
28
29
#endif
stdint.h
uint16_t
unsigned short uint16_t
Definition:
stdint.h:11
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
uint8_t
unsigned char uint8_t
Definition:
stdint.h:8
tcpa_entry
Definition:
tcpa_log_serialized.h:15
tcpa_entry::digest
uint8_t digest[TCPA_DIGEST_MAX_LENGTH]
Definition:
tcpa_log_serialized.h:18
tcpa_entry::pcr
uint32_t pcr
Definition:
tcpa_log_serialized.h:16
tcpa_entry::digest_length
uint32_t digest_length
Definition:
tcpa_log_serialized.h:19
tcpa_entry::name
char name[TCPA_PCR_HASH_NAME]
Definition:
tcpa_log_serialized.h:20
tcpa_entry::digest_type
char digest_type[TCPA_PCR_HASH_LEN]
Definition:
tcpa_log_serialized.h:17
tcpa_table
Definition:
tcpa_log_serialized.h:23
tcpa_table::max_entries
uint16_t max_entries
Definition:
tcpa_log_serialized.h:24
tcpa_table::num_entries
uint16_t num_entries
Definition:
tcpa_log_serialized.h:25
tcpa_table::entries
struct tcpa_entry entries[0]
Definition:
tcpa_log_serialized.h:26
__packed
struct tcpa_entry __packed
TCPA_DIGEST_MAX_LENGTH
#define TCPA_DIGEST_MAX_LENGTH
Definition:
tcpa_log_serialized.h:9
TCPA_PCR_HASH_LEN
#define TCPA_PCR_HASH_LEN
Definition:
tcpa_log_serialized.h:11
TCPA_PCR_HASH_NAME
#define TCPA_PCR_HASH_NAME
Definition:
tcpa_log_serialized.h:10
src
commonlib
include
commonlib
tcpa_log_serialized.h
Generated by
1.9.1