summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2022-12-09 21:05:49 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-17 11:04:37 +0100
commit1200777b21936bf5647a90504e0ea27e3ec3e42b (patch)
tree1c120e2b44a5d33fb712fa96e397db66f7183ea8
parentMerge pull request #25006 from poettering/pcr15 (diff)
downloadsystemd-1200777b21936bf5647a90504e0ea27e3ec3e42b.tar.xz
systemd-1200777b21936bf5647a90504e0ea27e3ec3e42b.zip
tpm2: replace magic number
-rw-r--r--src/shared/tpm2-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c
index 1b0adab397..af62f03b0f 100644
--- a/src/shared/tpm2-util.c
+++ b/src/shared/tpm2-util.c
@@ -1496,7 +1496,7 @@ int tpm2_seal(const char *device,
.nameAlg = TPM2_ALG_SHA256,
.objectAttributes = TPMA_OBJECT_FIXEDTPM | TPMA_OBJECT_FIXEDPARENT,
.parameters.keyedHashDetail.scheme.scheme = TPM2_ALG_NULL,
- .unique.keyedHash.size = 32,
+ .unique.keyedHash.size = SHA256_DIGEST_SIZE,
.authPolicy = *policy_digest,
},
};