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

Walter Hofmann cryptsetup-060429114853-d2b2 at secretlab.mine.nu
Thu May 11 06:45:41 UTC 2006


On Thu, May 11, 2006 at 12:42:43AM +0200, David Härdeman wrote:
> >
> >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?

Yes. It's a bunch of hex digits plus a single newline character.

But I did try to strip the newline from the file earlier and it made no 
difference (with the version from unstable). I'll test again.

Walter




More information about the Pkg-cryptsetup-devel mailing list