From: Milan Broz <mbroz@redhat.com>
To: anirudh takkallapally <anirudh.takkallapally@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Unlocking volume using master key
Date: Sat, 11 Feb 2012 11:33:54 +0100 [thread overview]
Message-ID: <4F364412.2010107@redhat.com> (raw)
In-Reply-To: <loom.20120211T001310-597@post.gmane.org>
On 02/11/2012 12:21 AM, anirudh takkallapally wrote:
> Ok cool, thanks for the quick response.
>
> i am compiling cryptsetup, so can i am guessing i will be able to call
> libcryptsetup API.
It was quicker to implement it than explain:)
Try upstream git now, see this commit
http://code.google.com/p/cryptsetup/source/detail?r=d54204564519682881e9a125dd37e3c39502ebfa#
Basically, if you have volume key somewhere in file, you can not only
use it to format
cryptsetup luksFormat --master-key-file <vk_file> <device>
but you can also open device using it now
cryptsetup luksOpen --master-key-file <vk_file> <device> <mapped_name>
Obviously, you are responsible that VK is generated properly
(enough entropy etc) and that you store VK file safely
(anyone can map device using this file without passphrase knowledge).
Use at your own risk :-)
(I will release 1.4.2 version perhaps soon.)
Thanks,
Milan
prev parent reply other threads:[~2012-02-11 10:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 20:11 [dm-crypt] Unlocking volume using master key anirudh takkallapally
2012-02-10 21:05 ` Milan Broz
2012-02-10 23:21 ` anirudh takkallapally
2012-02-11 10:33 ` Milan Broz [this message]
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=4F364412.2010107@redhat.com \
--to=mbroz@redhat.com \
--cc=anirudh.takkallapally@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox