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

Re: PATCH 2/2: external hashing program use in losetup



Ok, this time for sure.

To recap, since linux-crypto seems to have dropped the other email due to
its size, this patch allows losetup and mount to use an external program
to hash the password. The program is specified using the -P option to
losetup or mount, like so:

losetup -e aes-cbc-128 -P sha256prog /dev/loop/10 /home/sluskyb/testloop
or
mount -o loop,encryption=aes-cbc-128 -P sha256prog /home/sluskyb/testloop /mnt/testloop

Note that the -P and -p options won't work together. As of this patch
losetup/mount will complain if you specify -p and -P, or two of either
-p or -P.

A quick-and-dirty hashing program, comprised mostly of the relevant bits
of the old kerneli patch, can be found at
<URL:http://www.stwing.org/~sluskyb/hashalot.tar.bz2>

QCF?

-- 
Ben Slusky                      |       Ni!
sluskyb@paranoiacs.org          |       Peng!
sluskyb@stwing.org              |       Neewom!
PGP keyID ADA44B3B      
-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/