From: Brad House <brad@monetra.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Recommended modes for performance (SMP+AES-NI)
Date: Mon, 27 Jun 2011 13:00:11 -0400 [thread overview]
Message-ID: <4E08B71B.5060005@monetra.com> (raw)
In-Reply-To: <20110627161855.GA8610@tansi.org>
>> I think we've settled on AES-256, but may entertain AES-128
>> if there is a huge performance difference as I think AES-128
>> is still considered sufficiently safe for our purposes.
>
> The performance difference should be relatively small.
That's my thought too, especially with AES-NI.
>> So, the question is mainly what mode of operation would be
>> best?
>> - cbc-essiv
>> - ctr-{plain64|essiv}
>> - xts-{plain64|essiv}
>> - are there any others I should be considering?
>> NOTE: I'm not sure if essiv is even an option for CTR or XTS
>> modes, I'd like feedback on that, as well as what the
>> security implications are...
>
> ESSIV is only for CBC.
Ah, ok, that's good to know. Thanks.
>> At this point, I'm leaning towards CTR mode, mainly because it
>> was designed explicitly to be parallelizable:
>> http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29
>
> That is only for fine-grained paralellism, and hence not
> applicable here. I am also not sure whether you can even use it
> with dm-crypt as it needs a nonce in addition to the counter.
> And that needs to be stored somewhere.
Well, since Intel provided a specific CTR mode AES-NI patch and
it referenced testing it _using_ dm-crypt
(http://lwn.net/Articles/376562/), I'd assume it is possible to at
least use it with dm-crypt ;)
> Unless you have any specific security requirements beyond
> the standard, go with the defaults. I think you are
> overthinking this. The defaults are what is maintained best
> and also what will get the fastest fixes and problem detection.
No specific security requirements. I'm not worried about
governments targeting breaking this encryption or anything
like that. Just want to make sure the actual storage of this
data isn't the weakest link in the security chain.
> If you have special requiremenrts, any deviation from the
> defaults should have a strong justification comming from
> these requirements. As you have not given any, I cannot
> comment on them.
Sorry, I should have provided more information...
The requirements are basically if the box leaves the building,
that it be infeasible that the plaintext data be retrieved.
Not worried about leakage of statistics or even modification
of data, though if those too can be prevented for little cost,
it'd be nice to have ;)
> As for speed, AFAIK, basically you are still limited to
> one CPU per process that accesses an encrypted disk.
> But keep in mind that with the defaults you get something
> like 100MB/s crypto speed in pure software. Unless this thing
> has an 2.5 or 10Gb/sec interface, and SSDs or mostly
> linear, large-file accesses, that is quite fast enough
> in most cases.
This is a multi-user fileserver hosting remote home directories
(just across the LAN) for Linux and Mac users, primarily developers,
who could be doing anything from compiling code, to tar'ing files,
to heck, even running a VM from the network filesystem (though
that last one won't exactly be recommended).
It _will_ be a pure SSD RAID subsystem (LSI 9260-8i RAID 5 using
8 Intel 320series SSD drives), and interconnected to our network backbone
with a 10Gb/sec interface (SFP+ twinaxial direct-connect). Though
each developer's workstation will be limited to gigabit speeds, the
aggregate of multiple workstations could be higher, and we don't
want the remote share to be a bottleneck.
A combination of NFSv3 and NFSv4 will be used, I'd need to research
this point, but I'd assume each workstation's connection would be
handled via its own process or thread within NFS, so it should be
able to scale multi-core.
Thanks.
-Brad
next prev parent reply other threads:[~2011-06-27 17:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-27 15:38 [dm-crypt] Recommended modes for performance (SMP+AES-NI) Brad House
2011-06-27 16:18 ` Arno Wagner
2011-06-27 17:00 ` Brad House [this message]
2011-06-27 17:35 ` Arno Wagner
2011-06-28 16:41 ` 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=4E08B71B.5060005@monetra.com \
--to=brad@monetra.com \
--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