Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8586C4332F for ; Sun, 5 Nov 2023 06:41:48 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzWov-0001m6-PV; Sun, 05 Nov 2023 01:41:17 -0500 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 1qzWon-0001lm-RP for grub-devel@gnu.org; Sun, 05 Nov 2023 01:41:13 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzWok-0007QD-SP for grub-devel@gnu.org; Sun, 05 Nov 2023 01:41:09 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-32fadd4ad09so2113469f8f.1 for ; Sat, 04 Nov 2023 23:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699166464; x=1699771264; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=+8nABxQ861S9YL0T/MicvLdbsGyzuoCJiqQ4qDVkjvg=; b=E8HnBIdn1uUR5U4a1TESqoN/HcCx7hMpRoofx/i07AJIMEdfyVN5O55Nfm9NKX6GGJ SuZIFNKOydWOhS2rG9U0bJzxkTPsu7qmv8j1c8NNrDk4o2M/ukFS7xsEguqtiBQ3sZBi RRugCnR61y+uGQUVQ+QpQc98zhhY1Qe1dS0FqqoNVhu7EP2NieOxJDWprhxPCf9Ni0OJ O5woN2WmaRwUq477DfVWb86W9cQUcDrPROJ/02JXtszm0tD1tn9g0zv6hirRL0SmNoOZ 0DYAzOczFZBb+Iphy0ExQRiZMiKzR2EXiy/Qjft4Fttohd6zUB0zvA8NDq0FMgOsnstV yGtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699166464; x=1699771264; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+8nABxQ861S9YL0T/MicvLdbsGyzuoCJiqQ4qDVkjvg=; b=XYxeyTcLfY/rUe21q+wZb46xHOHpM/efJ5nT5GOl1DkSl/aee0acHNCVV+LSU64cVT lBBTvXkMjto9roxslJQNbtwIeAI0vF5EHC3p5Df1QfgF0EiVYYeVS6AP/vF+S8P2XvPj /DkaN5XJa3BGKsT1oyT99b29OXh6Am+k2CGqUKV6W0ENze6d9WFF8Yi7HgZ3JYNU706l e6dwoI1o99a0GY3E8AJfvqur19UwqmhpAEk9jwbdsvKOTv2r8tHecVzmC211Klrulzzc MdP1mYxEIl53/6yboKbDcMqLsic67xQ7Ht9fr/FKNPUMYbljxINu3VsgMjtya+bIiRK8 HX/g== X-Gm-Message-State: AOJu0Yz12PfvXOnkCjlqltqum6En6jep1illraIGlrHpEwjeMhRjYAOQ lPse2tio47CZw8+B9hQOKHM= X-Google-Smtp-Source: AGHT+IFdvFa6u8/sKx+fT4CXU5qUbh2CXOfV210l3F9ruObTXtOCKRTvAlgrC829+oALsPAGo0G8rw== X-Received: by 2002:a05:6000:1a8f:b0:32f:8a1e:6ed9 with SMTP id f15-20020a0560001a8f00b0032f8a1e6ed9mr16509909wry.23.1699166464363; Sat, 04 Nov 2023 23:41:04 -0700 (PDT) Received: from dj3ntoo (237.sub-72-110-4.myvzw.com. [72.110.4.237]) by smtp.gmail.com with ESMTPSA id i7-20020adfe487000000b0032de6f95fb3sm6061101wrm.40.2023.11.04.23.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 23:41:03 -0700 (PDT) Date: Sun, 5 Nov 2023 01:40:57 -0500 From: Oskari Pirhonen To: Daniel Kiper Cc: Leah Rowe , grub-devel@gnu.org, Glenn Washburn , main@axelen.xyz, Nicholas Johnson , phcoder@gmail.com, Patrick Steinhardt Subject: Re: PATCHES: argon2 key derivation for luks2 Message-ID: Mail-Followup-To: Daniel Kiper , Leah Rowe , grub-devel@gnu.org, Glenn Washburn , main@axelen.xyz, Nicholas Johnson , phcoder@gmail.com, Patrick Steinhardt References: <20231031113936.02da6802663e1bffa0c76888@libreboot.org> <20231031135758.3grgqch3cspv26nf@tomti.i.net-space.pl> MIME-Version: 1.0 In-Reply-To: <20231031135758.3grgqch3cspv26nf@tomti.i.net-space.pl> Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=xxc3ncoredxx@gmail.com; helo=mail-wr1-x42b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Reply-To: The development of GNU GRUB Content-Type: multipart/mixed; boundary="===============6804121185300501909==" Errors-To: grub-devel-bounces+grub-devel=archiver.kernel.org@gnu.org Sender: grub-devel-bounces+grub-devel=archiver.kernel.org@gnu.org --===============6804121185300501909== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ktmyvSD6y8xkGlyn" Content-Disposition: inline --ktmyvSD6y8xkGlyn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 31, 2023 at 14:57:58 +0100, Daniel Kiper wrote: > Adding a few folks who were working on this... >=20 > On Tue, Oct 31, 2023 at 11:39:36AM +0000, Leah Rowe via Grub-devel wrote: > > i'm not sure if the grub devs have seen this or not. anyway, see > > attached patches. i didn't make these myself but i'm sending them here. > > it's the PHC (password hash competition) implementation of argon2, > > adapted for the grub source code. i've been using this in libreboot and > > it works very well, allows use of cryptomount on modern LUKS2 with > > argon2 key deriv, so you don't need to downgrade to luks1 or pbkdf2 > > anymore. i wrote about it here: https://libreboot.org/news/argon2.html > > > > one thing to note is that though the code is free software, it's a > > permissive non-copyleft license; i still think grub should make use of > > it, regardless. grub has lacked argon2 for years now, and re-writing it > > will probably be a lot of wasted effort if the phc one works. > > > > the phc implementation was originally adapted by someone named Axel, to > > the archlinux aur for grub 2.06: > > https://aur.archlinux.org/cgit/aur.git/tree/?h=3Dgrub-improved-luks2-gi= t&id=3D1c7932d90f1f62d0fd5485c5eb8ad79fa4c2f50d > > > > nicholas johnson (https://nicholasjohnson.ch/) contacted me telling me > > he'd re-adapted the code for grub 2.12, on top of the rc1 tag. i then > > started using it in libreboot's grub. > > > > it would be nice if this could make it into the grub 2.12 release! the > > patches are attached. > > > > PS: the original PHC code is here: > > https://github.com/P-H-C/phc-winner-argon2 >=20 > It seems to me this is based on Patrick Steinhardt work. AFAICT Patrick > is going to repost new version of the patch set after the release. So, > I hope it will be included in the GRUB 2.14. We are not able to take this > patch set into upcoming release in this stage of development. Sorry > about that... >=20 Patrick also mentioned that he'd prefer it if the bundled gcrypt was updated to a version with Argon2 support rather than adapting the reference implementation, but that it is "a _major_ effort". [1] - Oskari [1]: https://lore.kernel.org/grub-devel/Y3xs82f11kZSSi5I@ncase/ --ktmyvSD6y8xkGlyn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQfOU+JeXjo4uxN6vCp8he9GGIfEQUCZUc49QAKCRCp8he9GGIf EerVAQCQiwBzjlxwuqT+7dssu/lGRIlFFHWv6oedFoL6i469qQD/ZdFRU/PF9Ddm ZGP1IpnryniaKo/AJs9+cuecjSQ26Aw= =O3do -----END PGP SIGNATURE----- --ktmyvSD6y8xkGlyn-- --===============6804121185300501909== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KR3J1Yi1kZXZl bCBtYWlsaW5nIGxpc3QKR3J1Yi1kZXZlbEBnbnUub3JnCmh0dHBzOi8vbGlzdHMuZ251Lm9yZy9t YWlsbWFuL2xpc3RpbmZvL2dydWItZGV2ZWwK --===============6804121185300501909==--