Skip to content

Commit e700306

Browse files
committed
Fix for Intel stage 1 measurement (its a signed image payload)
1 parent 7be56a7 commit e700306

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tpm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ static int TPM2_IoCb(TPM2_CTX* ctx, const uint8_t* txBuf, uint8_t* rxBuf,
229229

230230
#ifdef WOLFBOOT_MEASURED_BOOT
231231

232-
#ifdef WOLFBOOT_MEASURED_BOOT_APP_PARTITION
233-
/* Legacy: measure the boot (application) partition */
232+
#if defined(WOLFBOOT_MEASURED_BOOT_APP_PARTITION) || defined(STAGE1_AUTH)
233+
/* measure the boot (application) partition */
234234
#ifndef WOLFBOOT_NO_PARTITIONS
235235
#define SELF_HASH_ADDR ((uintptr_t)WOLFBOOT_PARTITION_BOOT_ADDRESS)
236236
#define SELF_HASH_SZ ((uint32_t)WOLFBOOT_PARTITION_SIZE)

0 commit comments

Comments
 (0)