Linux cryptographic layer development
 help / color / mirror / Atom feed
From: rsnel@cube.dyndns.org
To: linux-crypto@vger.kernel.org, christoph.sievers@gmail.com,
	herbert@gondor.apana.org.au
Subject: Re: [PATCH] an XTS blockcipher mode implementation without partial blocks
Date: Fri, 7 Sep 2007 21:23:34 +0200	[thread overview]
Message-ID: <20070907192334.GA9862@cube.dyndns.org> (raw)
In-Reply-To: <20070907183832.GA23067@Chamillionaire.breakpoint.cc>

Hello,

On Fri, Sep 07, 2007 at 08:38:32PM +0200, Sebastian Siewior wrote:
> [...]
>
> >Christoph encountered a deadlock after a few hours and 16GB of data (on
> >an aes-xts-plain partition). Assuming there is an error in xts.c, is
> >there an obvious way of finding it?
> 
> Haven't seen any locks in your code, so your part may be fine. How do I
> use this? 
> 
> cryptsetup -c aes-xts 
> 
> or?

for example: 
cryptsetup --hash sha256 -s 256 -c aes-xts-plain create test /dev/some_partition

The 'plain'-iv should give an on-disk format compatible with the
requirements of IEEE1619/D16. Internally the 256-bit key is split in two
128-bit AES keys. Other allowed key sizes for aes-xts-* are 2*192=384
bit and 2*256=512 bit. (you may want to use a hash with more bits (I don't know
what cryptsetup does if the hash gives less than keysize bits))

Christoph, is your testing machine stable if you run the same test with
aes-lrw-plain and the same keysize?

Greetings,

Rik.

-- 
Nothing is ever a total loss; it can always serve as a bad example.

  reply	other threads:[~2007-09-07 19:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-03 21:45 [PATCH] an XTS blockcipher mode implementation without partial blocks Rik Snel
2007-09-05  0:29 ` Sebastian Siewior
2007-09-06 14:57   ` rsnel
2007-09-07  6:19     ` Herbert Xu
2007-09-07 18:38     ` Sebastian Siewior
2007-09-07 19:23       ` rsnel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-09-06 15:03 Rik Snel
2007-09-12 19:26 ` Sebastian Siewior
2007-09-19 12:24 ` Herbert Xu

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=20070907192334.GA9862@cube.dyndns.org \
    --to=rsnel@cube.dyndns.org \
    --cc=christoph.sievers@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /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