]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/tpm2-util.c
tpm2: add tpm2_get_or_create_srk()
authorDan Streetman <ddstreet@ieee.org>
Wed, 14 Jun 2023 19:49:33 +0000 (15:49 -0400)
committerDan Streetman <ddstreet@ieee.org>
Wed, 5 Jul 2023 21:39:18 +0000 (17:39 -0400)
commitcea525a902246520d063ab53f667a0f33be650f0
treea9f2cec8b6bdef0f714fa1a9a13484f1e1bf2a84
parentd2d29c3be2ff9557d74c7bf852c1423ea6cfa25a
tpm2: add tpm2_get_or_create_srk()

Add function to simplify getting the TPM SRK; if one exists, it is provided,
otherwise one is created and then the new SRK provided.

This also add tpm2_create_loaded() and updates tpm2_seal() to use the new
functions instead of tpm2_make_primary().
src/shared/tpm2-util.c