]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: add tests for systemd-cryptenroll --tpm2-seal-key-handle
authorDan Streetman <ddstreet@ieee.org>
Fri, 6 Oct 2023 15:14:25 +0000 (11:14 -0400)
committerDan Streetman <ddstreet@ieee.org>
Tue, 10 Oct 2023 09:56:45 +0000 (05:56 -0400)
commitadcd3266ecddd8527374b2ba905ed0e98b19385c
treeff58207c04dc167e2811ab59b19033f0e9175b96
parent382bfd90c316dfdd39066e42ead12e47522738fe
test: add tests for systemd-cryptenroll --tpm2-seal-key-handle

In TEST-70-TPM2, test systemd-cryptenroll --tpm2-seal-key-handle using the
default (0) as well as the SRK handle (0x81000001), and test using a non-SRK
handle index after creating and persisting a primary key.

In test/test-tpm2, test tpm2_seal() and tpm2_unseal() using default (0), the SRK
handle, and a transient handle.
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c
test/TEST-70-TPM2/test.sh
test/units/testsuite-70.sh