On Tue, Mar 15, 2005 at 09:46:41AM +0000, Dick Middleton wrote:
> >> On Thu, Mar 10, 2005 at 07:11:37PM +0000, Dick Middleton wrote:
> >> cryptsetup  -d /etc/keys/part3  create part3  /dev/hda3
> >> Command failed: No such file or directory
> >> Same problem with --key-file rather than -d
> 
> > I think there's something else the matter; this works for me.
> 
> I don't think it's a real "file not found" error.  I can copy this 
> keyfile anywhere and it reports same error but if I give some arbitary 
> file, like a pdf or a text file it accepts it.  I think it's a length 
> error.

Hmmm.

> Is this file supposed to contain a password or a hash?

It defaults to the raw key when given the -d option.
You can confirm this with 'dmsetup table <dev>'.

If you enter a password, it certainly defaults to using a hash function. 
I imagine this is the same for 'cat file | cryptsetup'.

If you passed the '-h <hash>' option this might make it behave the same.
I don't have time to verify this. If you need the same key for
compatability, you can use 'dmsetup table' to get the raw key after mounting
it with a passphrase and a hash function.

Your keyfile must be at least 32 bytes for an AES256 bit key.
(16 bytes for an AES128).

Hope this helps!

-- 
Wesley W. Terpstra <[EMAIL PROTECTED]>


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

Reply via email to