All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup and loop-AES devices
Date: Sat, 4 Dec 2010 02:31:20 +0100	[thread overview]
Message-ID: <20101204013120.GA21693@tansi.org> (raw)
In-Reply-To: <20101203191133.GA25638@dialog.thp.Uni-Koeln.DE>

One thing you can try is to compile and run your own kenrel.
I have been doing that with Debian for 6-7 years now, without
any major issues. Its not even a "sort-of" Debian kernel,
just a hard boot of a kernel from kernel.org without initrd, 
both with modules and anything statically compiled in. I
am currently running 2.6.36.1 with lenny.

I have never used loop-AES, but a short look at the instructions
at  http://loop-aes.sourceforge.net/loop-AES.README seems to 
indicate the module and tools can be built up to including the 
upcomming 2.6.37 kernel.

Arno


On Fri, Dec 03, 2010 at 08:11:33PM +0100, Markus Porto wrote:
> Hello,
> 
> I have a very stupid question concerning dm-crypt: I recently moved to a new
> laptop on which I installed Debian squeeze. On my previous laptop (which run
> Debian lenny) I used dm-crypt for USB sticks etc. and loop-AES for CDs/DVDs.
> In Debian squeeze, somehow loop-AES does not to work anymore (there are a
> couple of reports concerning that), but I read on your web page
> http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions that
> dm-crypt can also handle loop-AES encrypted devices.
> 
> I create an encrypted DVD of the directory /tmp/encrypted_dvd using
> 
> cd /tmp
> yes "" | dd of=/tmp/encrypted_dvd.iso bs=512 count=16
> head -c 3705 /dev/urandom | uuencode -m - | head -n 66 | tail -n 65 | \
>  gpg --symmetric -a | dd of=/tmp/encrypted_dvd.iso conv=notrunc
> genisoimage -quiet -r /tmp/encrypted_dvd | \
>  aespipe -e AES128 -K /tmp/encrypted_dvd.iso -O 16 >> /tmp/encrypted_dvd.iso
> growisofs -dvd-compat -speed=8 -Z /dev/dvd=/tmp/encrypted_dvd.iso
> 
> so that the first 8192 bytes contain the encrypted keys.
> 
> Previously (with Debian lenny), I mounted the DVD using the options
> `ro,exec,loop,encryption=AES128,gpgkey=/dev/dvd,offset=8192' which does not
> work anymore (error message `ioctl: LOOP_SET_STATUS: Invalid argument,
> requested cipher or key length (128 bits) not supported by kernel'). If I
> understood properly, the point is that cryptoloop support has been dropped
> from the squeeze kernel.
> 
> In any case, I still need to read my old CDs/DVDs: How can I do that using
> cryptsetup? I read on the web page mentioned above that
> 
> losetup /dev/loop0 /dev/dvd
> cryptsetup -c aes-plain -h sha256 create encrypted /dev/loop0
> mount /dev/mapper/encrypted /media/encrypted_dvd
> 
> should do it, but this does not work (/dev/mapper/encrypted is not an
> ISO9660 filesystem). I tried to add options -o 4 or -p 4 (I understood that
> the size is in blocks and that block size is 2048 bytes for DVDs), and also
> several other values such as 16 (block size 512). How do I have to call
> cryptsetup in my case?
> 
> Many thanks for your kind help.
> 
> Best regards,
> Markus Porto
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
> 

-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

      parent reply	other threads:[~2010-12-04  1:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03 19:11 [dm-crypt] cryptsetup and loop-AES devices Markus Porto
2010-12-03 21:00 ` Milan Broz
2010-12-04  1:31 ` Arno Wagner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101204013120.GA21693@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.