Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-09-2005, 02:28 PM   #1
Registered: Apr 2004
Distribution: Slackware 9.1/10.1, Mandrake 9.1/10.1
Posts: 75

Rep: Reputation: 15
Twofish 256 encryption

Hi, I will be glad if somebody can help me on this...

On a SUSE 9.2 machine, I encrypted a partition on a ext. usb harddisk with the following command:

# losetup -e twofish256 /dev/loop1 /dev/sda1
<type password>
# mkfs.reiserfs /dev/loop1
# mount -t reiserfs /dev/loop1 /mnt/temp1
All went fine, then I copied some file to /mnt/temp1, umount it than move the usb harddisk to a Slackware 10 machine, plugged it in, load the twofish/cryptoloop module and try to mount it:

# mount -t reiserfs -o loop,encryption=twofish256,rw /dev/sda1 /mnt/temp1
ioctl: LOOP_SET_STATUS: Invalid argument
After some investigation, Slackware seems doesn't regonize the "twofish256" option... I then try on the Slackware machine:

# losetup -e twofish256 /dev/loop1 /dev/sda1
<type password>

ioctl: LOOP_SET_STATUS: Invalid argument
However the following is fine:

# losetup -e twofish /dev/loop1 /dev/sda1
<type password>
So my question is, how can I create a 256bits twofish encrypted partition in Slackware 10? Googled it for sometime but haven't found a answer yet.

Many Thanks!!
Old 01-09-2005, 07:45 PM   #2
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Is the slackware losetup patched to work with crypto-loop ?
also make sure the twofish cypher was compiled into the kernel or as a module. if its compiled as a module, you may need to modprobe it.

n the future, use dm-crypt, crypto-loop is old, and depreciated. using dm-crypt will eliminate the porblems you are having now.

for more reasons on why not to use crypto-loop, read the dm-crypt kernel source documentation.
Old 01-10-2005, 01:22 AM   #3
Registered: Apr 2004
Distribution: Slackware 9.1/10.1, Mandrake 9.1/10.1
Posts: 75

Original Poster
Rep: Reputation: 15
Hi qwijibow, I use dm_crypt and all goes fine. (by following this guide:

Thanks for your advice.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where's my 256 meg? tjulius Linux - Newbie 2 04-28-2005 01:06 PM
What is the significance of 256? Cyberian General 9 02-13-2005 03:41 AM
X takes 33% of 256 mb ??? !!! juby Linux - General 5 08-02-2003 10:31 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM
16, 32, 64, 128, 256..... Yuuzhan Vong General 4 07-20-2001 06:14 AM

All times are GMT -5. The time now is 07:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration