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 authored and Daniel Kiper committed 2025-05-29 15:45:24 +02:00
1 parent 20e6d0c4a4
commit 438f055819
1 file changed
+2
+2
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");