All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinz Diehl <htd@fancy-poultry.org>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] passfrase or dev_random for keyfile of a dmcrypt_swap
Date: Wed, 21 Apr 2010 10:34:17 +0200	[thread overview]
Message-ID: <20100421083417.GA6910@fancy-poultry.org> (raw)
In-Reply-To: <20100420141506.845AC44B6C@ws5-1.us4.outblaze.com>

On 20.04.2010, Si St wrote: 

> To Heinz: Would not a pre-generated keyfile need to be opened by a passfrase?

No, the keyfile itself is the "passphrase". I'm not talking about the
master key here, what I mean is something like

 dd if=/dev/urandom of=keyfile bs=64 count=1
 cryptsetup luksFormat /dev/sdx /path/to/keyfile
 
You could now e.g. do something like

 swap /dev/sdx /path/to/keyfile swap
 
in your crypttab, save the keyfile somewhere on the encrypted root
partition and open the swapspace using a bootscript after your root partition 
has been mapped. You could then backup the keyfile in a safe place and use
it to map the swap partition manually if desired (in the scenario you
described).

  parent reply	other threads:[~2010-04-21  8:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-20 14:15 [dm-crypt] passfrase or dev_random for keyfile of a dmcrypt_swap Si St
2010-04-20 15:15 ` Arno Wagner
2010-04-21  8:34 ` Heinz Diehl [this message]
2010-04-21  9:06   ` Jonas Meurer
  -- strict thread matches above, loose matches on Subject: below --
2010-04-20 18:06 Si St
2010-04-20 19:14 ` Arno Wagner
2010-04-19 16:37 Si St
2010-04-19 16:54 ` Arno Wagner
2010-04-19 19:01 ` Heinz Diehl
2010-04-20  5:41 ` Luca Berra

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

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

  git send-email \
    --in-reply-to=20100421083417.GA6910@fancy-poultry.org \
    --to=htd@fancy-poultry.org \
    --cc=dm-crypt@saout.de \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.