[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-crypto
Subject:    Re: loop-AES supported ciphers
From:       Jari Ruusu <jari.ruusu () pp ! inet ! fi>
Date:       2002-02-26 18:44:44
[Download RAW message or body]

Richard Zidlicky wrote:
> is there any way to use other encryption ciphers than AES with
> loop-AES? The name seems to contradict that.

More ciphers can be loaded as modules. Loop-AES comes with just one cipher
built in. For example, to use twofish cipher from SuSE kernel sources all
you need to do is copy the drivers/block/loop_fish2.c file to some
directory, and the compile it with a Makefile like this:


LINUX_SOURCE=/lib/modules/$(shell uname -r)/build
TD=$(shell pwd)
all:
	cd $(LINUX_SOURCE) && make SUBDIRS=$(TD) modules
modules:
	$(CC) $(CFLAGS) -DKBUILD_BASENAME=loop_fish2 -c loop_fish2.c -o loop_fish2.o
	mkdir -p $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)/block
	cp -p loop_fish2.o $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)/block
	depmod -a


And then use it like this:

    make
    modprobe loop_fish2
    losetup -e twofish128 /dev/loop0 /dev/hda666
    mkfs .....
    losetup -d /dev/loop0

Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic