DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] LuksResume with key on partition
@ 2010-05-06  8:24 Warren Crossing
  2010-05-06  9:02 ` Milan Broz
  0 siblings, 1 reply; 8+ messages in thread
From: Warren Crossing @ 2010-05-06  8:24 UTC (permalink / raw)
  To: dm-crypt

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

Hello,

I have copied my key to /dev/sdc3 using dd

The key size is 152bytes or 1216bits.

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"

If I don't specify a size then I get a warning about
Warning: exhausting read requested, but key file /dev/sdc3 is not a regular file, function might 
never return.

I have also tried -s 152

To get around this in cryptab I use
keyscript=/key.sh

where key.sh

dd bs=1 count=1217 if=$1

Why must equal count=1217??

I have hexdump and diffed them they are the same for the first 1216 bits

I also set all the remaining bits on the partition to 00 using dd.

Please assist!








[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2393 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-05-07 18:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06  8:24 [dm-crypt] LuksResume with key on partition Warren Crossing
2010-05-06  9:02 ` Milan Broz
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox