You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1009 B
28 lines
1009 B
1 month ago
|
From 51390a1f41a762ef96d3c496d8a5d890d722907d Mon Sep 17 00:00:00 2001
|
||
|
From: Lennart Poettering <lennart@poettering.net>
|
||
|
Date: Tue, 4 Jun 2024 11:02:34 +0200
|
||
|
Subject: [PATCH] analyze: show pcrs also in sha384 bank
|
||
|
|
||
|
SHA384 is pretty much the bank we actually *want* to use, since it's
|
||
|
faster to calculate than SHA256, hence at the very least, start
|
||
|
considering.
|
||
|
|
||
|
(cherry picked from commit acaca5ab250a51be6ba07768bee80bf0f7b462fa)
|
||
|
---
|
||
|
src/analyze/analyze-pcrs.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/analyze/analyze-pcrs.c b/src/analyze/analyze-pcrs.c
|
||
|
index 43e415fc6d..1c3da3fd84 100644
|
||
|
--- a/src/analyze/analyze-pcrs.c
|
||
|
+++ b/src/analyze/analyze-pcrs.c
|
||
|
@@ -11,7 +11,7 @@
|
||
|
static int get_pcr_alg(const char **ret) {
|
||
|
assert(ret);
|
||
|
|
||
|
- FOREACH_STRING(alg, "sha256", "sha1") {
|
||
|
+ FOREACH_STRING(alg, "sha256", "sha384", "sha1") {
|
||
|
_cleanup_free_ char *p = NULL;
|
||
|
|
||
|
if (asprintf(&p, "/sys/class/tpm/tpm0/pcr-%s/0", alg) < 0)
|