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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to