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.
This commit is contained in:
Lennart Poettering
2024-06-14 12:39:40 +01:00
committed by Luca Boccassi
parent 99421eb1ef
commit acaca5ab25
+1 -1
View File
@@ -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)