Petar Bogdanovic schrieb:
> Thanks for pointing me to `--hash'.
> 
> I did the same with:
> 
> $ sudo losetup -e blowfish128 -H unhashed2 /dev/loop0 /opt/POOL
> 
> and it worked. `unhashed2' is part of the `cryptoloop-support.patch' and
> this is what it does:
> 
> +static void unhashed2_key_setup(unsigned char *keyStr, int ile, unsigned 
> char *keyBuf, int bufSize)
> +{
> +     memset(keyBuf, 0, bufSize);
> +     strncpy((char *)keyBuf, (char *)keyStr, bufSize - 1);
> +     keyBuf[bufSize - 1] = 0;
> +}

Okay, the problem is solved then. I am still curious if you can open the
volume with cryptsetup somehow ...

> Just out of curiosity: Who did this patch and what was the reason for
> including it?

The cryptoloop patch is from Rock Linux apparently. I have no idea why
it was included, but it seems without the patch, cryptoloop won't work
(as you saw for yourself).


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
arch mailing list
arch@archlinux.org
http://archlinux.org/mailman/listinfo/arch

Reply via email to