DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Warren Crossing <warren.crossing@mofokom.biz>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] LuksResume with key on partition
Date: Thu, 06 May 2010 11:02:53 +0200	[thread overview]
Message-ID: <4BE285BD.2080401@redhat.com> (raw)
In-Reply-To: <4BE27CC0.1070707@mofokom.biz>

On 05/06/2010 10:24 AM, Warren Crossing wrote:
> Hello,
> 
> I have copied my key to /dev/sdc3 using dd

First, why are you not using file but whole partition?

With file you do not need to use -s.

(See man page, read is exhausting for key, so
it tries use the while device.)

> 
> The key size is 152bytes or 1216bits.

-s takes size in bits (multiple of 8 bits only), so 1216.

> 
> Then I luksSuspend and try to resume with
> 
> cryptsetup luksResume -d /dev/sdc3 -s 1216 safe
> but I get "No key available with this passphrase"

This works for me.

Isn't there \n in the end of passphrase? The same syntax
for luksOpen should work for luksResume.

See man page "notes on password processing".

(Also check --debug output, maybe there is some more info.)

Milan

  reply	other threads:[~2010-05-06  9:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-06  8:24 [dm-crypt] LuksResume with key on partition Warren Crossing
2010-05-06  9:02 ` Milan Broz [this message]
2010-05-06  9:54   ` Warren Crossing
2010-05-06 10:02     ` Milan Broz
2010-05-06 13:26       ` Warren Crossing
2010-05-06 13:43         ` Milan Broz
2010-05-07 14:37           ` Warren Crossing
2010-05-07 18:00             ` 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=4BE285BD.2080401@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=warren.crossing@mofokom.biz \
    /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