Thu 02 of Sep, 2010 [15:27 UTC]  
Menu

cryptsetup

Cryptsetup Info
edit print PDF
Português Brasileiro
We are an organized group of writers who specialize in producing custom academic papers of the highest quality. We also provide many other services including editing, review and translation. Our aim is to become the best, most trusted and preferred site for those who seek excellent academic papers. We provide our clients with ability to fulfill their writing needs with a standard that is unmatched.



About cryptsetup

Because the way using dmsetup directly is too complicated for most people Christophe has written a native cryptsetup program thet behaves like one of the coach purses patched losetup's out there. The first essay version (v0.1) based on some of the native cryptsetup implementation in C is ready.
cryptsetup 0.1 requires libgcrypt 1.1.x and libdevmapper
Don't forget to call scripts/devmap_mknod.sh (only once) in the device-mapper package to create the /dev/mapper/control device node if you don't use devfs or udev.

If you are interested in helping to develop cryptsetup contact Christophe about getting write access to his cvs server.

Logo Design

V0.1 Syntax

Syntax: /usr/local/sbin/cryptsetup <OPTIONS> <action> <name> <device>
<OPTIONS>:
-c <cipher> (see /proc/crypto)
-h {plain/<hash>} (see hashalot, WARNING: use ripemd160 instead of rmd160)
-y (verifies the passphrase by asking for it twice)
-d <file> (read key from file
e.g. /dev/urandom; useful for swap devices.
If set, the parameters -h and -y will be ignored)
-s <keysize> (in bits) (WARNING: in bytes for cryptsetup.sh)
-b <size> (in sectors)
-o <offset> (in sectors)
-p <skipped> (in sectors)
<action> is one of:
create - create device
remove - remove device
reload - modify active device
resize - resize active device
status - show device status
<name> is the device to create under /dev/mapper/
<device> is the encrypted device


When creating a device the program will ask for the a passphrase. The passphrase will then be hashed using the hashalot program and be used as key.
Alternatively a passphrase can be piped through stdin.
The hashing can be turned off with -h plain.

The defaults are aes with a 256 bit key, hashed using ripemd160.

Don't forget: cryptsetup only creates a mapping. If you call cryptsetup again after a reboot and supply the same passphrase you will be able to mount your filesystem you created before.

Changelog
v0.1 - First Release

Bugs
v0.1 - Can't mount files directly, use losetup first.
v0.1 - Can't mount read-only devices (CD/DVD-ROM's) use losetup first.

Compiling the latest version from CVS
The latest version of cryptsetup is available by CVS. There is a web frontend to the CVS version here.
To check out the latest version from CVS do the following (keyboard input in bold):
^alex@berbara:~$ cvs -d:pserver:cvs@cvs.saout.de:/cvsroot/saout login
Logging in to :pserver:cvs@cvs.saout.de:2401/cvsroot/saout
CVS password: cvs
alex@berbara:~$ cvs -z3 -d:pserver:cvs@cvs.saout.de:/cvsroot/saout co cryptsetup
cvs server: warning: NULL value for key `All' at line 1 of `/cvsroot/saout/CVSROOT/modules'
cvs checkout: warning: NULL value for key `All' at line 1 of `/cvsroot/saout/CVSROOT/modules'
cvs checkout: Updating cryptsetup
U cryptsetup/AUTHORS
U cryptsetup/ChangeLog
U cryptsetup/Makefile.am
< SNIPP >
U cryptsetup/src/cryptsetup.c
U cryptsetup/src/cryptsetup.h
alex@berbara:~$ cd cryptsetup
alex@berbara:~/cryptsetup$ ./autogen.sh
< SNIPP >
config.status: creating po/Makefile
Now type `make' to compile the package.
alex@berbara:~/cryptsetup$ make
make all-recursive
< SNIPP >
alex@berbara:~/cryptsetup$ su - -c "make"
Password: root password

Created by: alex last modification: Thursday 05 of August, 2010 [12:37:39 UTC] by Anonymous


Posted messages

Top Hide all
author message
the -s option
on: Mon 16 of May, 2005 [19:09 UTC] score: 0.00
I dont quite understand how the -s paramter works. What if I do a :
echo "1234567890123456789012xx" | cryptsetup create -s 256 -h plain create test /dev/hda1

The key is 16bits longer than 256. I first asummed that the -s option would cut the key to 256 bits (20 chars) but this is not the case. Does it only control the key size when you enter a key interactivly?


author message
Jonnw0w005
Hello world!
on: Wed 02 of Dec, 2009 [09:10 UTC] score: 0.00
Very often is happening that people need to get know referring to this post and in such situation it’s good to have a support of the really good term paper writing services and buy custom essay papers there only.





author message
Jonnw0w005
Hello world!
on: Wed 02 of Dec, 2009 [09:11 UTC] score: 0.00
This very well done story must be used at the custom written essay, because it is not very hard to buy essay selecting the reliable essay writing services.






Page: 1/1
1