All of lore.kernel.org
 help / color / mirror / Atom feed
From: Massimo Burcheri <massimo@burcheri.de>
To: dm-crypt@saout.de
Subject: [dm-crypt] Fwd: Incompatible LRW changes from 2.6.27 to 2.6.29?
Date: Mon, 5 Oct 2009 19:34:52 +0200	[thread overview]
Message-ID: <200910051934.53231.massimo@burcheri.de> (raw)

Hello,


Attached you will find my explicit description of the problem I already 
posted to several news groups like this Message-ID
<4543608.1EYhl2MHyX@burcheri.albasani.net>
without getting any ansers so far.
I even wrote to the authors of the LRW kernel modules who told me to 
better ask the LUKS community...

Regards,
Massimo Burcheri



--------------- Weitergeleitete Nachricht (Anfang)

Betreff: Incompatible LRW changes from 2.6.27 to 2.6.29?
Absender: Massimo Burcheri <massimo.burcheri@gmx.de>
Datum: Tue, 01 Sep 2009 16:49:30 +0200
Newsgruppe: comp.os.linux.development.system

Hello,

since 2.6.29 (especially patched linux-2.6.29-gentoo-r5) I cannot open a
LUKS encrypted partition anymore. The same with 2.6.30. Under 2.6.27 it
still works.
By  cryptsetup -c twofish  or without -c option (that is AES by default)
there are no problems with using encrypted partitions on both kernels.
Therefore it could be related to the LRW option.

My applied cipher is twofish-lrw-benbi:sha256.
Kernel configuration on "Cryptographic API is unchanged from 2.6.27 to
the more recent.

I did some  tests with LUKS-encrypted loop disks. There I noticed that
this cipher is incompatible from 2.6.27 to 2.6.29/30. With both kernels
I can format like this:

,----
| # cryptsetup  luksFormat -c twofish-lrw-benbi:sha256 \
| -s 256 -h sha1 /dev/loop1
`----

But the resulting encrypted partition cannot be opened with the other
kernel (neither from 27 to 29 nor from 29 to 27:
/No key available with this passphrase./
Opening with the same kernel works.

The LUKS headers of encryptions from the different kernels look
identical:

,----[ # cryptsetup luksDump /dev/loop1 ]
| LUKS header information for /dev/loop1
| 
| Version:        1
| Cipher name:    twofish
| Cipher mode:    lrw-benbi:sha256
| Hash spec:      sha1
| Payload offset: 2056
| MK bits:        256
| MK digest:      3a 10 55 b7 e9 51 bc 97 3c 8d 91 80 cb 1d 88 54 df b8
0e c9
| MK salt:        ae 8d bf 92 31 cd e6 3a 77 c4 e8 02 61 62 b6 4e
|                 42 91 52 fb 3a 1b 42 8d b3 6c e9 83 b3 91 ec e9
| MK iterations:  10
| UUID:           06c85177-a209-4ebf-bbdc-50dc96ee6467
| 
| Key Slot 0: ENABLED
|         Iterations:             228229
|         Salt:                   4b d8 65 b6 a5 db 35 3f 92 d3 d6 b4 97
8a 63 5b
|                                 b1 a3 80 bd 33 90 56 63 d3 a0 f7 fd 44
3c a3 d4
|         Key material offset:    8
|         AF stripes:             4000
| Key Slot 1: DISABLED
| Key Slot 2: DISABLED
| Key Slot 3: DISABLED
| Key Slot 4: DISABLED
| Key Slot 5: DISABLED
| Key Slot 6: DISABLED
| Key Slot 7: DISABLED
`----

cryptsetup version is 1.0.6-r2.

Has someone noticed the same? Or is that a Gentoo Patch-set issue? From
there I still got no answers [1]. Just as in the german group [2].

I will switch to newer (and better) XTS soon.

Regards,
Massimo

References:
[1] https://forums.gentoo.org/viewtopic-t-775793.html
[2] <1781787.Dl8k9oMu2H@burcheri.albasani.net>

--------------- Weitergeleitete Nachricht (Ende)

             reply	other threads:[~2009-10-05 17:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05 17:34 Massimo Burcheri [this message]
2009-10-09 11:55 ` [dm-crypt] Fwd: Incompatible LRW changes from 2.6.27 to 2.6.29? Milan Broz
2009-10-09 12:26   ` Milan Broz
2009-10-09 20:07 ` Moji
2009-10-11 20:05   ` Massimo Burcheri
2009-10-11 21:56     ` 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=200910051934.53231.massimo@burcheri.de \
    --to=massimo@burcheri.de \
    --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.