-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treewide: stop calling custom TPM log "TCPA"
TCPA usually refers to log described by TPM 1.2 specification. Change-Id: I896bd94f18b34d6c4b280f58b011d704df3d4022 Ticket: https://ticket.coreboot.org/issues/423 Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69444 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
- Loading branch information
1 parent
16a444c
commit 2710df7
Showing
26 changed files
with
156 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#ifndef COMMONLIB_TPM_LOG_SERIALIZED_H | ||
#define COMMONLIB_TPM_LOG_SERIALIZED_H | ||
|
||
#include <commonlib/bsd/helpers.h> | ||
#include <stdint.h> | ||
|
||
#define MAX_TPM_LOG_ENTRIES 50 | ||
#define TPM_CB_LOG_DIGEST_MAX_LENGTH 64 | ||
#define TPM_CB_LOG_PCR_HASH_NAME 50 | ||
#define TPM_CB_LOG_PCR_HASH_LEN 10 | ||
/* Assumption of 2K TCPA log size reserved for CAR/SRAM */ | ||
#define MAX_PRERAM_TPM_LOG_ENTRIES 15 | ||
|
||
struct tpm_cb_log_entry { | ||
uint32_t pcr; | ||
char digest_type[TPM_CB_LOG_PCR_HASH_LEN]; | ||
uint8_t digest[TPM_CB_LOG_DIGEST_MAX_LENGTH]; | ||
uint32_t digest_length; | ||
char name[TPM_CB_LOG_PCR_HASH_NAME]; | ||
} __packed; | ||
|
||
struct tpm_cb_log_table { | ||
uint16_t max_entries; | ||
uint16_t num_entries; | ||
struct tpm_cb_log_entry entries[0]; /* Variable number of entries */ | ||
} __packed; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.