disk/luks2: Add attempting to decrypt message to align with luks and geli modules

Signed-off-by: Egor Ignatov <egori@altlinux.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Egor Ignatov 2025-05-27 11:28:45 +03:00 committed by Daniel Kiper
parent 20e6d0c4a4
commit 438f055819

View File

@ -579,6 +579,8 @@ luks2_recover_key (grub_disk_t source,
if (ret)
return ret;
grub_puts_ (N_("Attempting to decrypt master key..."));
if (grub_sub (grub_be_to_cpu64 (header.hdr_size), sizeof (header), &sz))
return grub_error (GRUB_ERR_OUT_OF_RANGE, "underflow detected while calculating json header size");