[PATCH] key_protector: Add systemd TPM2 Key Protector

2025-03-06 Thread Diorcet Yann
The systemd TPM2 key protector is a module that enables the automatic retrieval of a fully-encrypted disk's unlocking key from a systemd token in luks2 partition header. Inspired by the tpm2_key_protector module and the cryptsetup systemd implementation. The systemd TPM2 key protector registe

Re: [PATCH] tss2: restore buffer offset on tpm2_submit_command retry

2025-03-06 Thread Ross Philipson via Grub-devel
On 3/6/25 11:46 AM, Yann Diorcet wrote: When tpm2_submit_command_real is called for a retry, the content of out buffer can already be set with previous grub_tcg2_submit_command call's reply. Restore previous offset allowing the next tpm2_submit_command_real calls to succeed. This solves the issu

[PATCH] tss2: restore buffer offset on tpm2_submit_command retry

2025-03-06 Thread Yann Diorcet
When tpm2_submit_command_real is called for a retry, the content of out buffer can already be set with previous grub_tcg2_submit_command call's reply. Restore previous offset allowing the next tpm2_submit_command_real calls to succeed. This solves the issues occurring during TPM_CC_Load command on