]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/partition/repart.c
tpm2: change tpm2_parse_pcr_argument() parameters to parse to Tpm2PCRValue array
authorDan Streetman <ddstreet@ieee.org>
Thu, 13 Jul 2023 02:36:37 +0000 (22:36 -0400)
committerDan Streetman <ddstreet@ieee.org>
Fri, 4 Aug 2023 14:57:07 +0000 (10:57 -0400)
commit07c040611751facf075dab7a72ab4935142dda3c
tree2cb05be077c0f7d364e7b7d15634073f7ecf31f3
parent6e8fb3ad5ff2dab03b9e2b189adaf463c06a8101
tpm2: change tpm2_parse_pcr_argument() parameters to parse to Tpm2PCRValue array

In order to allow users to specify expected PCR values, change the
tpm2_parse_pcr_argument() to parse the text argument into an array of
Tpm2PCRValue objects, which provide not only the selected PCR indexes, but also
(optionally) the hash algorithm and hash value for each PCR index.
src/creds/creds.c
src/cryptenroll/cryptenroll.c
src/cryptsetup/cryptsetup.c
src/partition/repart.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c