From: Egor Ignatov Date: Tue, 27 May 2025 08:28:45 +0000 (+0300) Subject: disk/luks2: Add attempting to decrypt message to align with luks and geli modules X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=438f055819548ac7323a5f29bd16b627cf8cb4fb;p=thirdparty%2Fgrub.git disk/luks2: Add attempting to decrypt message to align with luks and geli modules Signed-off-by: Egor Ignatov Reviewed-by: Daniel Kiper --- diff --git a/grub-core/disk/luks2.c b/grub-core/disk/luks2.c index 8036d76ff..b17cd2115 100644 --- a/grub-core/disk/luks2.c +++ b/grub-core/disk/luks2.c @@ -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");