cryptenroll: Add support for unlocking through TPM2 enrollments

This commit is contained in:
Gabríel Arthúr Pétursson
2024-01-03 16:10:45 +00:00
parent 97fb1fc4b1
commit 631cf7f004
7 changed files with 176 additions and 7 deletions

View File

@@ -52,6 +52,7 @@ _systemd_cryptenroll() {
--password --recovery-key'
[ARG]='--unlock-key-file
--unlock-fido2-device
--unlock-tpm2-device
--pkcs11-token-uri
--fido2-credential-algorithm
--fido2-device
@@ -81,6 +82,9 @@ _systemd_cryptenroll() {
--unlock-fido2-device)
comps="auto $(__get_fido2_devices)"
;;
--unlock-tpm2-device)
comps="auto $(__get_tpm2_devices)"
;;
--pkcs11-token-uri)
comps='auto list pkcs11:'
;;