View previous topic :: View next topic |
Author |
Message |
JyZude n00b
Joined: 23 Apr 2002 Posts: 15
|
Posted: Wed Oct 08, 2003 4:38 am Post subject: cryptoloop and vanilla 2.4.22... any luck? |
|
|
Vanilla kernel 2.4.22 changes a helluva lot when it comes to the cryptoapi stuff. And, it's all undocumented!
After trawling through some mailing lists I finally figured out what's going on. 2.4.22 contains a backport of the 2.6 crypto interface, but it does not contain a cryptoloop driver. However, it seems someone has made a patch to put in the cryptoloop driver. See: http://mail.nl.linux.org/linux-crypto/2003-08/msg00107.html
Okay, so here's what I did. I emerged vanilla-sources-2.4.22 and then applied the patch as follows:
Code: |
cd /usr/src/linux
patch -p1 <patch-cryptoloop-jari-2.4.22.0
|
It patched perfectly. Then...
Code: |
genkernel --config
(turn cryptoloop on in menuconfig)
|
Built everything fine.
And finally...
Code: |
modprobe serpent
modprobe cryptoloop
mount -o loop,encryption=serpent,keybits=256 /mnt/cdisk /.../encrypted_ext3_volume
|
And it tells me I must specify the filesystem type. So I tried using losetup, and again it seems to setup the loop device fine but doesn't ask for a password, and I can't mount the loop device.
Any idea what's going on? How do I tell it the password? Do I need util-linux-1.12 instead of 1.11z?
Mike. |
|
Back to top |
|
|
piefke n00b
Joined: 05 Sep 2003 Posts: 57
|
Posted: Thu Oct 09, 2003 12:25 pm Post subject: |
|
|
how do you use losetup?
lfor example: losetup -e twofish /dev/loop0 /dev/hdb5
while twofish is your cipher, and /dev/hdb5 the path to your device or a file, where you want to save your data.
after this you have to format /dev/loop0 with your datasystem (be sure the device above contaiins nothing important
then you can mount /dev/loop0.
should work |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|