From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] XTS performance
Date: Tue, 1 May 2012 11:29:47 +0200 [thread overview]
Message-ID: <20120501092947.GA2245@tansi.org> (raw)
In-Reply-To: <4F9F821F.2040209@gmx.com>
Hi Yaron,
effort for XTS per cipher block is a bit higher than ESSIV,
as you need one additional GF(2^128) multiplication per
crypto-block. But you are right, there is only one encryption
for the "IV" per sector, so performance is often compareble
to ESSIV.
I think XTS mode does have a potentially larger cache footprint
(the multiplication). Crypto hardware typically supports CBC
mode but may not support XTS mode. In the standard case
these aspects do not really matter.
There may also have been some confusion with EME mode. EME
mode does CBC twice, with some masking step in between.
Arno
On Tue, May 01, 2012 at 09:26:39AM +0300, Yaron Sheffer wrote:
> Hi,
>
> Looking back at the archives, it appears that aes-xts-plain in dm-crypt
> runs at half the speed of aes-cbc-essiv:
> http://www.saout.de/pipermail/dm-crypt/2010-November/001348.html. Milan
> explained it at the time by XTS doing 2 AES operations for each
> plaintext block. But my understanding of XTS is that it is similar to
> ESSIV: 1 AES op per 16-byte block, plus 1 op for the sector.
>
> - Did I misread the definition of XTS, and it's really 2 AES ops per
> 16-byte block?
>
> - Does anybody have more recent performance comparisons, confirming (or
> not) the performance difference?
>
> Thanks,
>
> Yaron
>
> _______________________________________________
> 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
----
One of the painful things about our time is that those who feel certainty
are stupid, and those with any imagination and understanding are filled
with doubt and indecision. -- Bertrand Russell
next prev parent reply other threads:[~2012-05-01 9:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 6:26 [dm-crypt] XTS performance Yaron Sheffer
2012-05-01 9:29 ` Arno Wagner [this message]
2012-05-01 12:35 ` Heinz Diehl
-- strict thread matches above, loose matches on Subject: below --
2012-04-30 12:00 Yaron Sheffer
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=20120501092947.GA2245@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.