cryptsetup: add libcryptsetup TPM2 PIN support
authorGrigori Goronzy <greg@chown.ath.cx>
Fri, 18 Feb 2022 11:00:12 +0000 (12:00 +0100)
committerGrigori Goronzy <greg@chown.ath.cx>
Tue, 15 Mar 2022 20:17:00 +0000 (21:17 +0100)
commit1f895adac287b5f1b6b854caa586093616ccc172
treea7e9423ab858529573ac05956c7a16c3a40f5e24
parentbea344a1a426e615ba87b66b6d3ff4b265c57a95
cryptsetup: add libcryptsetup TPM2 PIN support

This is unfinished: we don't have any way to actually query for PINs
interactively this way. It is similar to FIDO2 and PKCS#11 in this
regard.

Nonetheless, this code is capable of validating and dumping tokens, so
it is already useful as-is.
src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-tpm2.c
src/cryptsetup/cryptsetup-tokens/luks2-tpm2.c
src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h