]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: add functions to convert TPM2B_PUBLIC to/from openssl pkey or PEM
authorDan Streetman <ddstreet@ieee.org>
Tue, 27 Jun 2023 19:03:08 +0000 (15:03 -0400)
committerDan Streetman <ddstreet@ieee.org>
Fri, 4 Aug 2023 15:19:54 +0000 (11:19 -0400)
commite3acb4d24c68291376b11bea5787112978e2775f
tree3187bfc3392d40971957b03947e921f3a13622bf
parentcffeee92bbcbd9954a7d3fc909b43d8cc33ff6e3
tpm2: add functions to convert TPM2B_PUBLIC to/from openssl pkey or PEM

Add functions to convert a PEM or pkey to TPM2B_PUBLIC, and functions to
convert TPM2B_PUBLIC to pkey or fingerprint.

Supports both RSA and ECC keys.

Add ECC support to some test-tpm2 tests, and tests to cover the newly added functions.
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/meson.build
src/test/test-tpm2.c