From: "shmick@riseup.net" <shmick@riseup.net>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] benchmark, kernel, libgcrypt, comparisons
Date: Thu, 30 Jan 2014 02:52:54 +1100 [thread overview]
Message-ID: <52E923D6.9000703@riseup.net> (raw)
In-Reply-To: <52E9174B.6020803@gmail.com>
Milan Broz:
> On 01/29/2014 03:22 PM, shmick@riseup.net wrote:
>> i came across a text file benchmark i did with the 2nd latest cryptsetup
>> and thought id see how 1.6.3 would look
>>
>> i have different kernel and libgcrpyt versions since 1.6.2 as well and
>> it was said on the gnupg list when libgcrypt 1.6.0 came out there were
>> some speed improvements
>
> In fact, gcrypt 1.6.0 was major slowdown for PBKDF2 (previously cryptsetup
> used own implementation because it was not available in gcrypt), but it will
> be fixed in gcrypt 1.6.1.
>
>> what would likely be the main source of speed increases - kernel or
>> libgcrypt ?
>
> In general, for hash algorithm used in header parsing or key derivation
> user space library is important (gcrypt), for block ciphers it is kernel.
>
> Usually in userspace openssl backend is faster, but gcrypt is default.
thanks
i compiled with openssl to see and hash algos were approx 2x 'speedier'
for me
>
> It is not much important because this is used only during device unlocking,
> data access later is pure kernel dm-crypt job.
>
>> serpent decryption is vastly faster, twofish in general but seems AES isn't
>
> This depends on machine (and which cipher implementation - it can be accelerated
> through AES-NI, SSE instruction etc, depends on your arch and kernel config).
> I think kernel API has continuous improvement, so check crypt modules available
> (dmcrypt will simply use what crypto API provides).
>
> Milan
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
>
next prev parent reply other threads:[~2014-01-29 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 14:22 [dm-crypt] benchmark, kernel, libgcrypt, comparisons shmick
2014-01-29 14:59 ` Milan Broz
2014-01-29 15:52 ` shmick [this message]
2014-01-30 22:10 ` Matthias Schniedermeyer
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=52E923D6.9000703@riseup.net \
--to=shmick@riseup.net \
--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.