Re: cryptoloop on 2.4.22 won?t work

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

 



On Wed, Sep 10, 2003 at 12:21:21PM +0200, Erik Tews wrote:
> On Wed, Sep 10, 2003 at 08:04:21PM +1000, Alexander Zangerl wrote:
> > On Wed, 10 Sep 2003 10:47:34 +0100, Dale Amon writes:
> > >There is another side-effect. The password taken by
> > >losetup is no longer the plaintext, but is assumed to
> > >be already hashed. If you wish to use an old loopback
> > >file system, you will have to feed your plaintext 
> > >password through "hashalot" and pipe it into losetup.
> > 
> > ahem, that can't be all the truth: i haven't got hashalot 
> > but am currently using my old encrypted partition just the same as
> > before (ie. typing the same passphrase to losetup) without any
> > problems.
> > 
> > that's an aes-encrypted partition which had been created using
> > the cryptoapi-core and cryptoloop packages (sometime between 2.4.18 and
> > 2.4.21) and a standard debian losetup.
> > now i'm using 2.4.22 with jari's cryptoloop patch and the in-kernel cryptoapi.
> 
> I can confirm this, I got a aes-256 partition too which works with
> 2.4.21 + debian mount and 2.4.22 with loop-jari and the spedial patch
> for 2.11z.
> 

I have problems migrating from patch-int+loop-hvr to patch-cryptoloop..

I created the cryptoloop-fs using Linux 2.4.21 with patch-int + loop-hvr and
unpatched losetup from debian 3.0 (woody).

Now, I compiled 2.4.22 with patch-cryptoloop-jari and patch-aes-asm. I'm
still using losetup from debian 3.0 (woody).. 

I couldn't get the fs to work with the new kernel. losetup complained
something about the encryption type or so (Sorry, I don't have the exact
error message available now..)

I'm using aes (keysize 256).

I tried using util-linux 2.12, and encryption type aes-cbc-256 like this:

hashalot ripemd160 | ./losetup -p0 -e aes-cbc-256 /dev/loop0 /dev/vg0/lv0
 
But I couldn't mount the loop0 after this.. so the key was not set up like
in my patch-int+loop-hvr combo..

Any ideas? 

Thanks!

-- Pasi Kärkkäinen
       
                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.
-
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