Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
To: linux-crypto@vger.kernel.org
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>
Subject: [PATCH 0/5] Avoid stack buffers in glue code of AVX implementations
Date: Sat, 20 Oct 2012 15:06:31 +0300	[thread overview]
Message-ID: <20121020120431.19422.17000.stgit@localhost6.localdomain6> (raw)

Patches modify AVX implementations so that they avoid using extra
stack memory. Stack is not needed since implementation store
blocks in registers.

---

Jussi Kivilinna (5):
      crypto: x86/glue_helper - use le128 instead of u128 for CTR mode
      crypto: cast6/avx - avoid using temporary stack buffers
      crypto: twofish/avx - avoid using temporary stack buffers
      crypto: serpent/avx - avoid using temporary stack buffers
      crypto: cast5/avx - avoid using temporary stack buffers


 arch/x86/crypto/camellia_glue.c             |   16 +
 arch/x86/crypto/cast5-avx-x86_64-asm_64.S   |  332 +++++++++++++++++++++------
 arch/x86/crypto/cast5_avx_glue.c            |   79 ++----
 arch/x86/crypto/cast6-avx-x86_64-asm_64.S   |  190 ++++++++++-----
 arch/x86/crypto/cast6_avx_glue.c            |   77 +-----
 arch/x86/crypto/glue_helper-asm-avx.S       |   91 +++++++
 arch/x86/crypto/glue_helper.c               |   12 -
 arch/x86/crypto/serpent-avx-x86_64-asm_64.S |  166 +++++++++-----
 arch/x86/crypto/serpent_avx_glue.c          |   49 +---
 arch/x86/crypto/serpent_sse2_glue.c         |   12 -
 arch/x86/crypto/twofish-avx-x86_64-asm_64.S |  208 +++++++++++------
 arch/x86/crypto/twofish_avx_glue.c          |   73 +-----
 arch/x86/crypto/twofish_glue_3way.c         |   20 +-
 arch/x86/include/asm/crypto/glue_helper.h   |   28 +-
 arch/x86/include/asm/crypto/serpent-avx.h   |   27 +-
 arch/x86/include/asm/crypto/twofish.h       |    4 
 16 files changed, 835 insertions(+), 549 deletions(-)
 create mode 100644 arch/x86/crypto/glue_helper-asm-avx.S

             reply	other threads:[~2012-10-20 12:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-20 12:06 Jussi Kivilinna [this message]
2012-10-20 12:06 ` [PATCH 1/5] crypto: x86/glue_helper - use le128 instead of u128 for CTR mode Jussi Kivilinna
2012-10-20 12:06 ` [PATCH 2/5] crypto: cast6/avx - avoid using temporary stack buffers Jussi Kivilinna
2012-10-20 12:06 ` [PATCH 3/5] crypto: twofish/avx " Jussi Kivilinna
2012-10-20 12:06 ` [PATCH 4/5] crypto: serpent/avx " Jussi Kivilinna
2012-10-20 12:06 ` [PATCH 5/5] crypto: cast5/avx " Jussi Kivilinna
2012-10-24 13:11 ` [PATCH 0/5] Avoid stack buffers in glue code of AVX implementations 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=20121020120431.19422.17000.stgit@localhost6.localdomain6 \
    --to=jussi.kivilinna@mbnet.fi \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox