Re: [PATCH 06/10] tpm2_key_protector: Unseal key from a buffer

2025-01-02 Thread Gary Lin via Grub-devel
On Thu, Jan 02, 2025 at 02:12:57PM -0500, Stefan Berger wrote: > > > On 12/19/24 3:12 AM, Gary Lin wrote: > > As the preparation to load the sealed key from the NV index handle, > > Extract the logic to handle the file buffer from ... to prepare to load the > sealed key from the NV index handle.

Re: [PATCH 06/10] tpm2_key_protector: Unseal key from a buffer

2025-01-02 Thread Stefan Berger
On 12/19/24 3:12 AM, Gary Lin wrote: As the preparation to load the sealed key from the NV index handle, Extract the logic to handle the file buffer from ... to prepare to load the sealed key from the NV index handle. the logic to handle the file buffer is extracted as an independent func

[PATCH 06/10] tpm2_key_protector: Unseal key from a buffer

2024-12-19 Thread Gary Lin via Grub-devel
As the preparation to load the sealed key from the NV index handle, the logic to handle the file buffer is extracted as an independent function and the SRK recover function only reads the file and sends the file buffer to the new function. Besides, the file format is detected automatically before u