RE: loop-AES supported ciphers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mr. Ruusu:

	How difficult would it be to add this to the documentation? I am
not sure if it is already there (I was never concerned about such things
as using some other cipher than AES), but it seems like it would be
useful to have in the docs if it is not already.


Very Respectfully, 

Stuart Blake Tener, IT3 (E-4), USNR-R, N3GWG 
Beverly Hills, California
VTU 1904G (Volunteer Training Unit) 
stuart@bh90210.net 
west coast: (310)-358-0202 P.O. Box 16043, Beverly Hills, CA 90209-2043 
east coast: (215)-338-6005 P.O. Box 45859, Philadelphia, PA 19149-5859 

Telecopier: (419)-715-6073 fax to email gateway via www.efax.com (it's
free!) 

JOIN THE US NAVY RESERVE, SERVE YOUR COUNTRY, AND BENEFIT FROM IT ALL. 

Tuesday, February 26, 2002 1:25 PM


-----Original Message-----
From: linux-crypto-bounce@nl.linux.org
[mailto:linux-crypto-bounce@nl.linux.org] On Behalf Of Jari Ruusu
Sent: Tuesday, February 26, 2002 10:45 AM
To: Richard Zidlicky
Cc: linux-crypto@nl.linux.org
Subject: Re: loop-AES supported ciphers

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/


-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/



[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux