Code: Select all
me@mysystem portage# mount /home
You must specify a key size (in bits) for use with CryptoAPI encryption.The same problem is reported (in Russian) here: http://forums.gentoo.org/viewtopic.php? ... =utillinux.[/code]
Code: Select all
me@mysystem portage# mount /home
You must specify a key size (in bits) for use with CryptoAPI encryption.
Code: Select all
# hashalot ripemd160 | losetup -p0 -e twofish-cbc-256 /dev/loop/1 /dev/hda3
# mount /dev/loop/1 /home
Here's the relevant line:watersb wrote:Please post your /etc/fstab and I can help you fix this.
Code: Select all
/dev/hda3 /home reiserfs encryption=twofish,noatime,loopI no longer remember how large the keysize is, but I shall try both 128 and 256 on the next reboot.There are two possibilities:
First, you may not be naming your cipher correctly.
Basically, you will need to specify the key size in the cipher name. For example, you say aes-cbc-256 instead of saying aes.
I hope not. I didn't like the whole mess with multiple implementations, such as the kerneli patch, loop-aes, etc., so I waited until the kernel 2.6 was at a decently advanced stage and then used it to prepare a new filesystem.Second possibility: you are using a partition that was used by the kerneli 2.4 cryptoAPI.
How have you managed to get a 256 bit key? I've been driven mad over the last couple of days trying to get an up to date kernel which can read my loop file I created with 2.4. As far as I can tell, the latest international patches only give a maximum key size of 128 and I use 256watersb wrote:Here is my command chain for mounting a partition that was set up with the 2.4 cryptoAPI:
Code: Select all
# hashalot ripemd160 | losetup -p0 -e twofish-cbc-256 /dev/loop/1 /dev/hda3 # mount /dev/loop/1 /home
Code: Select all
/dev/ida/disc0/part2 /home ext2 defaults,noauto,loop,encryption=twofish-cbc-256,keygen=/usr/sbin/hashalot;rmd160 0 0