Bug#365333: [Pkg-cryptsetup-devel] Bug#365333: cryptsetup incompatibility

David Härdeman david at 2gen.com
Wed May 10 22:42:43 UTC 2006


On Wed, May 10, 2006 at 11:58:07PM +0200, Walter Hofmann wrote:
>On Tue, May 02, 2006 at 12:35:46AM +0200, Jonas Meurer wrote:
>> 
>> then this was still a plain cryptsetup version, without the luks support.
>> 
>> would it be possible for you, to test some older versions of cryptsetup?
>> interesting would be cryptsetup 20050111-4 (last version without luks,
>> currently in testing), 1.0.1-8 (first implementation with luks) and if
>> these work, also 1.0.1-16.
>
>I finally tested version 20050111-4 with libdevmapper1.01_1.01.04-2. The 
>behaviour is as follows:
>Using the command line
> cryptsetup -c aes-cbc-plain -s 256 create 'root' '/dev/hda3' </key
>everything worked as before. However, with the command line
> cryptsetup -c aes-cbc-plain -s 256 create 'root' '/dev/hda3' -d /key
>the device map is created, but contains random data (ie. wrong key).

Yes, cryptsetup strips trailing newlines from the input when its a file 
via stdin. It doesn't if the input is a file provided via the -d switch.

I'm guessing there's a newline character in your /key file?

//David




More information about the Pkg-cryptsetup-devel mailing list