From ccf85031f9af488539cde9f6da3181f81deb104e Mon Sep 17 00:00:00 2001 From: Heike Wiedemann Date: Fri, 15 Jul 2022 13:59:25 +0200 Subject: [PATCH] Add output to pcr allocate to ask for TPM reset --- eltt2.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eltt2.c b/eltt2.c index 644fc55..4c110b7 100644 --- a/eltt2.c +++ b/eltt2.c @@ -1615,24 +1615,26 @@ static int pcr_allocate(uint8_t *pcr_cmd_buf, hash_algo_enum hash_algo) memcpy(pcr_cmd_buf + 34, set, sizeof(set)); memcpy(pcr_cmd_buf + 40, clear, sizeof(clear)); memcpy(pcr_cmd_buf + 46, clear, sizeof(clear)); - printf("PCR allocate SHA-1 bank\n"); + printf("PCR allocate SHA-1 bank.\n"); } else if (ALG_SHA256 == hash_algo) { memcpy(pcr_cmd_buf + 34, clear, sizeof(clear)); memcpy(pcr_cmd_buf + 40, set, sizeof(set)); memcpy(pcr_cmd_buf + 46, clear, sizeof(clear)); - printf("PCR allocate SHA-256 bank\n"); + printf("PCR allocate SHA-256 bank.\n"); } else if (ALG_SHA384 == hash_algo) { memcpy(pcr_cmd_buf + 34, clear, sizeof(clear)); memcpy(pcr_cmd_buf + 40, clear, sizeof(clear)); memcpy(pcr_cmd_buf + 46, set, sizeof(set)); - printf("PCR allocate SHA-384 bank\n"); + printf("PCR allocate SHA-384 bank.\n"); } } while (0); + printf("In order to take effect, please perform a TPM reset.\n"); + return ret_val; }