DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sam <test532@codingninjas.org>
To: dm-crypt@saout.de
Subject: [dm-crypt] double algorithm question
Date: Sat, 1 Aug 2009 07:39:42 -0400	[thread overview]
Message-ID: <200908010739.42930.test532@codingninjas.org> (raw)

Hi All,

I am wondering if this is a good idea:

encrypt a partition normally with cryptsetup luksFormat (using aes-xts-plain),
then luksOpen,
mkfs.ext2 format the device mapper device that appears,
mount it.
Then, create a giant file that fills up the partition.
losetup it that file,
luksFormat the loop device (using twofish-xts-plain)
luksOpen it,
mkfs.ext2 format the device mapper device that appears,
mount it,
and use it...

My purpose is that I don't trust AES, but I don't trust twofish enough to be 
sure it is better than AES.

I am paranoid enough that the speed hit is acceptable.

Questions:

1) is this the best way to achieve my goal with dm-crypt?
2) is it secure? Or will somehow it cause my data to be less secure than just 
using one cipher? Or will it somehow defeat the security provided by XTS? (i 
would assume it becoming less secure in any way is impossible, but i am not a 
cryptoanalyst, so i don't want to be assuming such things).

I know truecrypt has a feature where you specify the cipher as aes-twofish. 
This is what I wish to achieve, but using dm-crypt.

Regards,
Sam

             reply	other threads:[~2009-08-01 11:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-01 11:39 Sam [this message]
2009-08-01 14:10 ` [dm-crypt] double algorithm question Moji
  -- strict thread matches above, loose matches on Subject: below --
2009-08-01 14:48 Sam
2009-08-02  1:20 ` Roscoe
2009-08-02  1:43   ` Roscoe

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=200908010739.42930.test532@codingninjas.org \
    --to=test532@codingninjas.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox