linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
To: Johannes Goetzfried 
	<Johannes.Goetzfried@informatik.stud.uni-erlangen.de>
Cc: "Herbert Xu" <herbert@gondor.hengli.com.au>,
	linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org,
	"Tilo Müller" <tilo.mueller@informatik.uni-erlangen.de>
Subject: Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation
Date: Mon, 28 May 2012 09:25:05 +0300	[thread overview]
Message-ID: <20120528092505.211453i11cwxhp4w@naisho.dyndns.info> (raw)
In-Reply-To: <20120527144919.GE17705@kronos.redsun>

Quoting Johannes Goetzfried  
<Johannes.Goetzfried@informatik.stud.uni-erlangen.de>:

> This patch adds a x86_64/avx assembler implementation of the Twofish block
> cipher. The implementation processes eight blocks in parallel (two 4 block
> chunk AVX operations). The table-lookups are done in general-purpose  
> registers.
> For small blocksizes the 3way-parallel functions from the twofish-x86_64-3way
> module are called. A good performance increase is provided for blocksizes
> greater or equal to 128B.
>
> Patch has been tested with tcrypt and automated filesystem tests.
>

It would be benefical to expand the twofish vectors in  
crypto/testmgr.h from 3 blocks
to 8 blocks so that 8-way algorithm(s) can be checked runtime. And  
while at expanding
test-vectors, why not just expand to 16 blocks... AVX2 is just one year away:
   
https://github.com/jkivilin/crypto-avx2/commit/1a72d7a6a1553aee70ad4b6a1980ca372181f40d

>
> Tcrypt benchmark results:
>
> Intel Core i5-2500 CPU (fam:6, model:42, step:7)

<snip>

> +/*
> + * Glue Code for AVX assembler version of Twofish Cipher
> + *
> + * Copyright (C) 2012 Johannes Goetzfried
> + *     <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>
> + *
> + * Glue code based on twofish_sse2_glue.c by:
> + *  Copyright (C) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi>

I think you mean serpent_sse2_glue.c :)

-Jussi



  reply	other threads:[~2012-05-28  6:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-27 14:49 [PATCH] crypto: twofish - add x86_64/avx assembler implementation Johannes Goetzfried
2012-05-28  6:25 ` Jussi Kivilinna [this message]
2012-05-28 13:52   ` Johannes Goetzfried
2012-08-15  8:42 ` Jussi Kivilinna
2012-08-15  9:28   ` Borislav Petkov
2012-08-15 11:00     ` Jussi Kivilinna
2012-08-15 12:52       ` Borislav Petkov
2012-08-15 13:48         ` Jussi Kivilinna
2012-08-15 14:03           ` Borislav Petkov
2012-08-15 14:22             ` Jussi Kivilinna
2012-08-15 15:33               ` Borislav Petkov
2012-08-15 17:34             ` Jussi Kivilinna
2012-08-16 13:29               ` Borislav Petkov
2012-08-16 14:26                 ` Jussi Kivilinna
2012-08-17  7:37                 ` Jussi Kivilinna
2012-08-20 17:32                   ` Borislav Petkov
2012-08-22  4:35                     ` Jussi Kivilinna
2012-08-22 13:31                       ` Borislav Petkov
2012-08-22 19:20                         ` Jussi Kivilinna
2012-08-23  0:05                           ` Jason Garrett-Glaser
2012-08-23  8:33                             ` Jussi Kivilinna
2012-08-23 14:36                           ` Borislav Petkov
2012-08-28  9:17                             ` Jussi Kivilinna
2012-08-28 16:25                               ` Borislav Petkov
  -- strict thread matches above, loose matches on Subject: below --
2012-05-28 13:54 Johannes Goetzfried
2012-06-12 10:05 ` Herbert Xu

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=20120528092505.211453i11cwxhp4w@naisho.dyndns.info \
    --to=jussi.kivilinna@mbnet.fi \
    --cc=Johannes.Goetzfried@informatik.stud.uni-erlangen.de \
    --cc=herbert@gondor.hengli.com.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tilo.mueller@informatik.uni-erlangen.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;
as well as URLs for NNTP newsgroup(s).