Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Dale Amon <amon@vnl.com>
To: "roosa, william MAJ RES" <william-roosa@us.army.mil>
Cc: Milan Broz <mbroz@redhat.com>, Dale Amon <amon@vnl.com>,
	linux-crypto@vger.kernel.org,
	"C.J. Adams-Collier KF7BMP" <cjac@colliertech.org>,
	Ryan Corder <ryanc@greengrey.org>
Subject: Re: Status of aes in Debian/Ubuntu? (UNCLASSIFIED)
Date: Thu, 29 Mar 2012 23:53:33 +0100	[thread overview]
Message-ID: <20120329225333.GU10584@vnl.com> (raw)
In-Reply-To: <7540e2c9ee52.4f740894@us.army.mil>

Just thought it might be useful for someone else
in the future if I feed back the results of some
of my tests.

The first test is the set up of a dm-crypt based
loop back partition:

	# Create a file for our little 30GB test disk
	dd if=/dev/zero of=other.ext4 count=60M

	# Connect it as a loop back.
	losetup /dev/loop0 other.ext4

	# Do a badblocks check that leaves random data on
	# the 'underlying' media.
	badblocks -c 10240 -s -w -t random -v /dev/loop0

	# Generate the partition table and create a single
	# partition
	cfdisk /dev/loop0

	# We will need kpartx to make the partition accessible
	apt-get install kpartx
	kpartx -a -v /dev/loop0
	ls -alF /dev/mapper

	# Now make it a crypt partition and give it a password
	cryptsetup --verbose --verify-passphrase luksFormat /dev/mapper/loop0p1
	WARNING!
	========
	This will overwrite data on /dev/mapper/loop0p1 irrevocably.
	Are you sure? (Type uppercase yes): YES
	Enter LUKS passphrase: 
	Verify passphrase: 
	Command successful.

	# Do the partition crypto set up and give it a device name:
	cryptsetup luksOpen /dev/mapper/loop0p1 junk1
	Enter passphrase for /dev/mapper/loop0p1: 

	# Now put a file system on it, create a mount point and
	# mount it.
	 mkfs.ext4 /dev/mapper/junk1 -m 0.0 -L "WhoIsJohnGalt"
	 mkdir /junk1
	 mount /dev/mapper/junk1 /junk1

The remaining puzzle bits here are the issue of how to make
this work off of /etc/fstab, if that is possible. I also am
going to see if the resulting file backed crypto disk is
directly mountable on a VM as well. 

In addition, I still also want to take a look at what it takes
to make loop-aes work. I was more involved with the cryptoloop
guys way back when and AFAIK, it's dead and gone.

Any suggestions about the fstab issues are welcome.

      reply	other threads:[~2012-03-29 22:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28 12:17 Status of aes in Debian/Ubuntu? Dale Amon
2012-03-28 16:37 ` C.J. Adams-Collier KF7BMP
2012-03-28 18:06   ` Status of aes in Debian/Ubuntu? (UNCLASSIFIED) roosa, william MAJ RES
2012-03-28 19:03   ` Status of aes in Debian/Ubuntu? Ryan Corder
2012-03-28 20:42     ` Dale Amon
2012-03-28 21:14       ` Milan Broz
2012-03-28 21:33         ` Dale Amon
2012-03-29 11:00           ` Status of aes in Debian/Ubuntu? (UNCLASSIFIED) roosa, william MAJ RES
2012-03-29 22:53             ` Dale Amon [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=20120329225333.GU10584@vnl.com \
    --to=amon@vnl.com \
    --cc=cjac@colliertech.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=mbroz@redhat.com \
    --cc=ryanc@greengrey.org \
    --cc=william-roosa@us.army.mil \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox