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] [dm-devel] dm-crypt performance
Date: Tue, 9 Apr 2013 20:40:54 +0200	[thread overview]
Message-ID: <20130409184054.GA28430@tansi.org> (raw)
In-Reply-To: <Pine.LNX.4.64.1304091352320.10025@file.rdu.redhat.com>

On Tue, Apr 09, 2013 at 02:08:59PM -0400, Mikulas Patocka wrote:
> 
> 
> On Tue, 26 Mar 2013, Milan Broz wrote:
> 
> > - Are we sure we are not inroducing some another side channel in disc
> > encryption? (Unprivileged user can measure timing here).
> > (Perhaps stupid reason but please do not prefer performance to security
> > in encryption. Enough we have timing attacks for AES implementations...)

I think they are not really preventable. From what I have seen in
reseach, with an user on the same machine, timing attacke may be
extremely hard to prevent.

As long as the attacker sits on the same hardware or has a low-jitter
connection to it, he can do very precise measurements. Eventually, 
this will have to be solved by cipher implementation techniques. 
Aniother problem is that operations that look like they are data
independent can turn out to actually be data dependent. 

> So use serpent - it is implemented without any data-dependent lookup 
> tables, so it has no timing attacks.

That is what people think at this time. Competent people thought there
were no timing attacks on AES in 2000 as well. And there is the
problem that Serpent is not as well scrutinized as AES at this time
and that is likely to get worse. So it may have other problems.

> AES uses data-dependent lookup tables, on CPU with hyperthreding, the 
> second thread can observe L1 cache footprint done by the first thread and 
> get some information about data being encrypted...

Yes, but that is not the only potential problem. For example, with 
Intel now implementing voltage regulators on the CPU, we may
even see power-usage based leaks. If you are paranoid, constant
time-contant-power implementations are the only solution. And 
while feasible, they are sloooooooowwwwww...

Arno
-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
There are two ways of constructing a software design: One way is to make it
so simple that there are obviously no deficiencies, and the other way is to
make it so complicated that there are no obvious deficiencies. The first
method is far more difficult.  --Tony Hoare

  reply	other threads:[~2013-04-10  0:08 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26  3:47 dm-crypt performance Mikulas Patocka
2013-03-26  6:52 ` Christoph Hellwig
2013-03-26 12:27 ` [dm-crypt] [dm-devel] " Alasdair G Kergon
2013-03-26 12:27   ` Alasdair G Kergon
2013-03-26 20:05   ` [dm-crypt] " Milan Broz
2013-03-26 20:05     ` Milan Broz
2013-03-26 20:28     ` [dm-crypt] " Mike Snitzer
2013-03-26 20:28       ` Mike Snitzer
2013-03-26 20:58       ` [dm-crypt] " Milan Broz
2013-03-26 20:58         ` Milan Broz
2013-03-28 18:53       ` [dm-crypt] " Tejun Heo
2013-03-28 18:53         ` Tejun Heo
2013-03-28 19:33         ` [dm-crypt] " Vivek Goyal
2013-03-28 19:33           ` Vivek Goyal
2013-03-28 19:44           ` [dm-crypt] " Tejun Heo
2013-03-28 19:44             ` Tejun Heo
2013-03-28 20:38             ` [dm-crypt] " Vivek Goyal
2013-03-28 20:38               ` Vivek Goyal
2013-03-28 20:45               ` Tejun Heo
2013-04-09 17:51                 ` [dm-crypt] dm-crypt parallelization patches Mikulas Patocka
2013-04-09 17:51                   ` Mikulas Patocka
2013-04-09 17:57                   ` Tejun Heo
2013-04-09 18:08                     ` [dm-crypt] " Mikulas Patocka
2013-04-09 18:08                       ` Mikulas Patocka
2013-04-09 18:10                       ` Tejun Heo
2013-04-09 18:42                         ` [dm-crypt] " Vivek Goyal
2013-04-09 18:42                           ` Vivek Goyal
2013-04-09 18:57                           ` Tejun Heo
2013-04-09 19:13                             ` [dm-crypt] " Vivek Goyal
2013-04-09 19:13                               ` Vivek Goyal
2013-04-09 19:42                         ` [dm-crypt] " Mikulas Patocka
2013-04-09 19:42                           ` Mikulas Patocka
2013-04-09 19:52                           ` Tejun Heo
2013-04-09 20:32                             ` [dm-crypt] " Mikulas Patocka
2013-04-09 20:32                               ` Mikulas Patocka
2013-04-09 21:02                               ` Tejun Heo
2013-04-09 21:03                                 ` Tejun Heo
2013-04-09 21:07                               ` [dm-crypt] " Vivek Goyal
2013-04-09 21:07                                 ` Vivek Goyal
2013-04-09 21:18                                 ` [dm-crypt] " Mikulas Patocka
2013-04-09 21:18                                   ` Mikulas Patocka
2013-04-10 19:24                                   ` [dm-crypt] " Vivek Goyal
2013-04-10 19:24                                     ` Vivek Goyal
2013-04-10 23:42                                     ` [dm-crypt] [PATCH] make dm and dm-crypt forward cgroup context (was: dm-crypt parallelization patches) Mikulas Patocka
2013-04-10 23:42                                       ` Mikulas Patocka
2013-04-10 23:50                                       ` Tejun Heo
2013-04-11 19:49                                         ` [dm-crypt] [PATCH v2] " Mikulas Patocka
2013-04-11 19:49                                           ` Mikulas Patocka
2013-04-11 19:52                                           ` Tejun Heo
2013-04-11 20:00                                             ` Tejun Heo
2013-04-12  0:06                                               ` [dm-crypt] " Mikulas Patocka
2013-04-12  0:06                                                 ` Mikulas Patocka
2013-04-12  0:22                                                 ` Tejun Heo
2013-04-12  5:59                                                   ` [dm-crypt] [PATCH v2] make dm and dm-crypt forward cgroup context Milan Broz
2013-04-12  5:59                                                     ` Milan Broz
2013-04-12 18:17                                                   ` [dm-crypt] [PATCH v2] make dm and dm-crypt forward cgroup context (was: dm-crypt parallelization patches) Mikulas Patocka
2013-04-12 18:17                                                     ` Mikulas Patocka
2013-04-12 18:01                                               ` [dm-crypt] " Mikulas Patocka
2013-04-12 18:01                                                 ` Mikulas Patocka
2013-04-12 18:29                                                 ` Tejun Heo
2013-04-15 13:02                                                   ` [dm-crypt] " Mikulas Patocka
2013-04-15 13:02                                                     ` Mikulas Patocka
2013-04-16 17:24                                                     ` Tejun Heo
2013-04-16 19:41                                                       ` [dm-crypt] " Mikulas Patocka
2013-04-16 19:41                                                         ` Mikulas Patocka
2013-04-18 16:47                                                       ` [dm-crypt] " Mike Snitzer
2013-04-18 16:47                                                         ` Mike Snitzer
2013-04-18 17:03                                                         ` Tejun Heo
2013-05-22 18:50                                                           ` [dm-crypt] " Mike Snitzer
2013-05-22 18:50                                                             ` Mike Snitzer
2013-05-22 19:48                                                             ` Tejun Heo
2013-04-09 18:36                   ` [dm-crypt] dm-crypt parallelization patches Vivek Goyal
2013-04-09 18:36                     ` Vivek Goyal
2013-04-09 18:08     ` [dm-crypt] [dm-devel] dm-crypt performance Mikulas Patocka
2013-04-09 18:08       ` Mikulas Patocka
2013-04-09 18:08       ` Mikulas Patocka
2013-04-09 18:40       ` Arno Wagner [this message]
2013-04-21 20:38         ` [dm-crypt] " Yves-Alexis Perez
2013-04-22  2:28           ` Arno Wagner
2013-04-09 18:59       ` Milan Broz
2013-04-09 18:59         ` Milan Broz

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=20130409184054.GA28430@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.