loop device encryption with Fedora 11 and losetup -e

Bill Davidsen davidsen at tmr.com
Wed Sep 30 04:37:06 UTC 2009


Patrick Mansfield wrote:
> Hi all -
> 
> What valid encryptions can be used under Fedora 11 with losetup?
> 
> Do I need to manually load the corresponding kernel module? Loading
> aes_i586 and/or aes_generic made no difference.
> 

modprobe cryptoloop

> Are there now better alternatives than using "losetup -e"?
> 
> I keep getting EINVAL while trying to use "losetup -e".
> 
> I'm running with the latest updates, kernel is 2.6.30.5-43.fc11.i686.PAE
> 
> The only thing I can use is "-e 1" or "-E 1", losetup tells me that is
> just an XOR encryption.
> 
> These fail:
> 
> # losetup -e 2 /dev/loop0 ./test.image
> Password:
> ioctl: LOOP_SET_STATUS: Invalid argument
> # losetup -e aes /dev/loop0 ./test.image
> Password:
> ioctl: LOOP_SET_STATUS: Invalid argument
> 
> These both work (losetup -e and -E seem to be treated the same):
> 
> # losetup -e 1 /dev/loop0 ./test.image
> Password:
> # losetup /dev/loop0
> /dev/loop0: [fd02]:3918266 (/home/test/data_images/test.image), encryption XOR (type 1)
> # losetup -d /dev/loop0
> # losetup -E 1 /dev/loop0 ./test.image
> Password:
> # losetup /dev/loop0
> /dev/loop0: [fd02]:3918266 (/home/test/data_images/test.image), encryption XOR (type 1)
> 
> -- Patrick Mansfield
> 


-- 
Bill Davidsen <davidsen at tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot




More information about the users mailing list