]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2-util: optionally do wildcard hash check in tpm2_pcr_values_to_mask()
authorLennart Poettering <lennart@poettering.net>
Sun, 22 Dec 2024 17:12:37 +0000 (18:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Jan 2025 09:39:10 +0000 (10:39 +0100)
commit982e791f1c46cf6dc6429ffeebae93eed80879ff
tree1e9b88cf3ba73cfeea5ee03718fa3989f9305347
parent0db32a3bfb59af61aa8e79f2082dc053b9bf22d1
tpm2-util: optionally do wildcard hash check in tpm2_pcr_values_to_mask()

If TPM2_ALG_ERROR (aka "0") is specified as algorithm in
tpm2_pcr_values_to_mask() we'll simply match all algorithms. This allows
us to shorten tpm2_parse_pcr_argument_to_mask() a bit. The function
accepts but ignores a hash algorithm specification currently, hence this
should not really much effect.
src/shared/tpm2-util.c