Skip to content

Commit 5024b1b

Browse files
poetteringbluca
authored andcommitted
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 acaca5a) (cherry picked from commit 51390a1)
1 parent 1ccc38e commit 5024b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analyze/analyze-pcrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
static int get_pcr_alg(const char **ret) {
1212
assert(ret);
1313

14-
FOREACH_STRING(alg, "sha256", "sha1") {
14+
FOREACH_STRING(alg, "sha256", "sha384", "sha1") {
1515
_cleanup_free_ char *p = NULL;
1616

1717
if (asprintf(&p, "/sys/class/tpm/tpm0/pcr-%s/0", alg) < 0)

0 commit comments

Comments
 (0)