All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kaspar <zkaspar82@gmail.com>
To: linux-crypto@vger.kernel.org
Subject: serpent-sse2 - different key size same speed?
Date: Mon, 19 Mar 2012 19:06:47 +0100	[thread overview]
Message-ID: <jk7sn8$blt$1@dough.gmane.org> (raw)

Hello everyone,

I just quick tested 3.3.0 kernel (x86_64) to get idea how serpent-sse2
implementation works on Core2 machine. My dirty testing revealed that
key size doesn't have impact on speed. Is such behavior normal ?

Test machine: Core2 E6600 (2.40GHz), 3GB RAM, Scientific Linux 6.2
dm-crypt on /dev/loop0, 1.5G image file:
/dev/loop0: [0010]:11323 (/dev/shm/test.img)


Encrypt (dd if=/dev/zero of=/dev/mapper/test bs=1M)
-s 256 -c aes-xts-plain64     : 159 - 162 MB/s
-s 512 -c aes-xts-plain64     : 129 - 141 MB/s

-s 256 -c serpent-xts-plain64 : 142 - 146 MB/s
-s 512 -c serpent-xts-plain64 : 139 - 148 MB/s


Decrypt (dd if=/dev/mapper/test of=/dev/null bs=1M)
-s 256 -c aes-xts-plain64     : 113 - 114 MB/s
-s 512 -c aes-xts-plain64     :   90.1 MB/s

-s 256 -c serpent-xts-plain64 :  105.0 MB/s
-s 512 -c serpent-xts-plain64 :  105.0 MB/s


(perf top shows as expected high usage of: serpent_dec_blk_8way and
serpent_enc_blk_8way)

Z.

             reply	other threads:[~2012-03-19 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19 18:06 Zdenek Kaspar [this message]
2012-03-20  6:53 ` serpent-sse2 - different key size same speed? Jussi Kivilinna
2012-03-20  8:08   ` Zdenek Kaspar

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='jk7sn8$blt$1@dough.gmane.org' \
    --to=zkaspar82@gmail.com \
    --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 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.