All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Feitian PKI donation to dm-crypt projetc
Date: Thu, 04 Nov 2010 09:45:25 +0100	[thread overview]
Message-ID: <4CD272A5.4080901@redhat.com> (raw)
In-Reply-To: <20101103223431.GA20934@tansi.org>

On 11/03/2010 11:34 PM, Arno Wagner wrote:

> The only interface for integrating external keys is by
> reading them from file or stdin and that is by desing
> to keep things simple.

I am maintaining it with the basic idea that libcrypsetup/cryptsetup
is simple tool to configure encrypted partitions using kernel crypto.
Nothing more, nothing less.

New api in libcrypsetup provides two trivial interfaces to get
passphrase or key - directly provided buffer (owned by application)
or keyfile.

For the compatibility reasons it fallbacks to read from
terminal/stdin but the focus is to move passphrase reading
into application responsibility.

IOW if anyone want to handle LUKS mapping in program
(imagine e.g. systemd - issue of these days) it can use
libcryptsetup and handle safe password reading dialog
in application.

(Using stdin in cryptsetup in scripts is problematic - you cannot
control and wipe all buffers. But this option will be always there.
I mean constructions like echo "password" | cryptsetup luksOpen ...)

Handling of various tokens and cards is always wrapper around
cryptsetup - (either scripts or binaries linked to libcryptsetup).

Maybe one day these scripts will be part of upstream tarball,
currently it is up to the distribution to add them.

Milan

  parent reply	other threads:[~2010-11-04  8:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-03 18:26 [dm-crypt] Feitian PKI donation to dm-crypt projetc Jean-Michel Pouré - GOOZE
2010-11-03 20:29 ` Christoph Anton Mitterer
2010-11-03 22:34 ` Arno Wagner
2010-11-04  5:31   ` Jean-Michel Pouré - GOOZE
2010-11-05 13:48     ` Christoph Anton Mitterer
2010-11-05 14:21       ` Arno Wagner
2010-11-05 15:14         ` Viorel Tabara
2010-11-05 16:29       ` Ma Begaj
2010-11-06 18:16         ` Jean-Michel Pouré - GOOZE
2010-11-08 21:58           ` Mario 'BitKoenig' Holbe
2010-11-07 22:44     ` Arno Wagner
2010-11-04  8:45   ` Milan Broz [this message]
2010-11-04 12:16   ` Heinz Diehl
2010-11-04 12:57     ` Mario 'BitKoenig' Holbe
2010-11-04 16:40       ` Arno Wagner
2010-11-04  8:52 ` Milan Broz

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=4CD272A5.4080901@redhat.com \
    --to=mbroz@redhat.com \
    --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.