unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: David Trudgian <dave@trudgian.net>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: 38826 <38826@debbugs.gnu.org>
Subject: [bug#38826] Fwd: [bug #55093] Add LUKS2 support
Date: Fri, 10 Jan 2020 13:03:22 -0600	[thread overview]
Message-ID: <16f90d6f00f.e61facad831696.4328929059229895663@trudgian.net> (raw)
In-Reply-To: <87imljcodn.fsf@nckx>

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

>> Yay, this is implemented in
>> https://git.savannah.gnu.org/cgit/grub.git/commit/?id=365e0cc3e7e44151c14dd29514c2f870b49f9755
>
> I'll take a look later.  We'll see whether or not it would be prudent
> to ship this as-is in Guix.


I had a look at this before, and the issue remaining is that the LUKS2
support in GRUB via this patch is not compatible with the default PBKDF
that is going to be used by cryptsetup when creating LUKS2 partitions.

Looking at `cryptsetup --help` on Guix or elsewhere will show that the
default LUKS2 PBKDF is argon2i. Unfortunately only pbkdf2 is supported by
this GRUB2 patch (it's the default PBKDF for LUKS1).

It's possible to create LUKS2 encrypted partitions using pbkdf2, but
this means they aren't using a PBKDF of the same strength that most
people expect from LUKS2 use elsewhere - in distros where an
unencrypted `/boot` is used to avoid the direct support in GRUB problem.

I'm not sure if this is a major concern or not here?

Have spent some of my morning writing up about encryption in Singularity
containers, which uses LUKS2... so this is a fun topic to see in my
mailbox right now :-)

Cheers,

DT

[-- Attachment #2: Type: text/html, Size: 1650 bytes --]

      reply	other threads:[~2020-01-10 19:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-31  3:47 [bug#38826] doc: Mention no LUKS2 for luks-device-mapping David Trudgian
2020-01-02 22:32 ` Danny Milosavljevic
2020-01-02 22:53   ` Tobias Geerinckx-Rice via Guix-patches via
2020-01-03  1:56     ` David Trudgian
2020-01-10 15:39     ` [bug#38826] Fwd: [bug #55093] Add LUKS2 support Tobias Geerinckx-Rice via Guix-patches via
2020-01-10 19:03       ` David Trudgian [this message]
     [not found] <20181125-133249.sv131345.66349@savannah.gnu.org>
     [not found] ` <20190329-085821.sv141454.39342@savannah.gnu.org>
     [not found]   ` <20190529-204303.sv92573.55917@savannah.gnu.org>
     [not found]     ` <20191104-210711.sv164522.57380@savannah.gnu.org>
     [not found]       ` <20191104-214103.sv131345.42463@savannah.gnu.org>

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16f90d6f00f.e61facad831696.4328929059229895663@trudgian.net \
    --to=dave@trudgian.net \
    --cc=38826@debbugs.gnu.org \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).