Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1plRN7-0003dp-AU for mharc-grub-devel@gnu.org; Sun, 09 Apr 2023 05:30:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plRN4-0003db-Qp for grub-devel@gnu.org; Sun, 09 Apr 2023 05:30:03 -0400 Received: from aura.sanxion.net ([203.57.114.105]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1plRN2-0004Tz-DP for grub-devel@gnu.org; Sun, 09 Apr 2023 05:30:02 -0400 Received: from webmail.sanxion.net (unknown [192.168.64.200]) by aura.sanxion.net (Postfix) with ESMTP id 4339AE0DB2 for ; Sun, 9 Apr 2023 19:29:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sanxion.net; s=snxdkim; t=1681032589; bh=aHOursDhW/hO0+FSbxQBzejfxnlHQcwnpZDCUdim87g=; h=Date:From:To:Subject:In-Reply-To:References; b=g9INTPgTuSri5DZBh5lfoFdyItCFNR7z6Yc/Vybma4lOGOuPa63EqbsO9WvStzn2F C7+LiHabYIHNDI+oPrn8VNMYRIjAiEl+33kIumSqKJqheY7yJVGXPXeHEslSRowMtu qdVYJCCMQjm5MPk00I5qyxLcIdz0VoOAK86nuJ3qXTLp2DCpY8McWDbJTpk+Snw7uI fSeZ6cO+HReUgjzz3cGHMEd9W3+mZSmERKTzbD/4cSdSFPHcjWFHmRjVD8j/gr4wyj +23a0U0jtzA+DyBZf2fuFIfYi/sFZih/L7m5+KG+EGHsFjHfhpCbnZfVOOI3kqdGJa yR4QvohBFkwYA== MIME-Version: 1.0 Date: Sun, 09 Apr 2023 19:29:48 +1000 From: Simon Perry To: The development of GNU GRUB Subject: Re: LUKS multiple passphrase retries In-Reply-To: References: Message-ID: <4a1f071dbf2f9bdcce4c151c7381f989@sanxion.net> X-Sender: grub-devel@sanxion.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=203.57.114.105; envelope-from=grub-devel@sanxion.net; helo=aura.sanxion.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2023 09:30:03 -0000 On 2023-04-09 06:17 PM, Maxim Fomin wrote: > AFAIK this patch[1] allows to have several passphrase attempts. It was > originally proposed by John Lane as a part of crypto enhancement patch > set[2]. > Several versions of this patch set were sent to grub-devel mailing list > in 2015-2018, but nothing was directly included into git. The patch was > written > for LUKS1 version because support for LUKS2 in grub was included later. > However, it seems it would be trivial to add support for LUKS2. I've actually completely solved this through scripting thanks to what I've learned from Maximilian Stendler's Github repo (who replied earlier). There's a weird trick to it though, where you make a tar file with a simple cfg in it that sources another config and then you have things like functions, loops and if tests available. Working great now, thanks to him. Cheers. --- Simon Perry (aka Pezz)