diff options
author | Dan Streetman <ddstreet@ieee.org> | 2022-12-09 21:05:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-01-17 11:04:37 +0100 |
commit | 1200777b21936bf5647a90504e0ea27e3ec3e42b (patch) | |
tree | 1c120e2b44a5d33fb712fa96e397db66f7183ea8 | |
parent | Merge pull request #25006 from poettering/pcr15 (diff) | |
download | systemd-1200777b21936bf5647a90504e0ea27e3ec3e42b.tar.xz systemd-1200777b21936bf5647a90504e0ea27e3ec3e42b.zip |
tpm2: replace magic number
-rw-r--r-- | src/shared/tpm2-util.c | 2 |
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, }, }; |