From: ard.biesheuvel@linaro.org (Ard Biesheuvel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RFT 0/2] arm64: AES in ECB/CBC/CTR/XTS modes
Date: Tue, 18 Mar 2014 12:44:21 +0100 [thread overview]
Message-ID: <1395143063-28897-1-git-send-email-ard.biesheuvel@linaro.org> (raw)
This code has been sitting in my personal git repo for about 6 months, waiting
for a piece of hardware to do some performance testing on. I am losing my
patience so I am posting it now so others may have a go if they are interested.
Please post back your results in that case.
(Note that an early version containing just the Crypto Extensions code was
posted a while ago.)
These are asynchronous versions of AES in ECB, CBC, CTR and XTS modes. They use
ablk_helper, hence the inclusion of patch #1.
Patch #2 contains both a Crypto Extensions and a plain NEON implementation. As
much as possible of the glue and chaining mode code was shared, and the diff
between crypto extensions and NEON split out into aes-ce.S and aes-neon.S
The Makefile allows some tweaking with INTERLEAVE and INTERLEAVE_INLINE. I don't
expect the overhead of inline expansion to be justified, but I do expect there
to be a difference between non-interleaved and interleaved instantiations. Note
that the NEON code only supports INTERLEAVE=4 for lack of registers. Please
refer to aes-modes.S for more details.
Happy to answer to questions and/or comments.
Ard Biesheuvel (2):
ARM64: pull in <asm/simd.h> from asm-generic
ARM64: add support for NEON and Crypto Extensions accelerated AES
arch/arm64/Makefile | 2 +
arch/arm64/crypto/Makefile | 23 ++
arch/arm64/crypto/aes-ce.S | 147 +++++++++++
arch/arm64/crypto/aes-glue.c | 447 ++++++++++++++++++++++++++++++++++
arch/arm64/crypto/aes-modes.S | 555 ++++++++++++++++++++++++++++++++++++++++++
arch/arm64/crypto/aes-neon.S | 382 +++++++++++++++++++++++++++++
arch/arm64/include/asm/Kbuild | 1 +
crypto/Kconfig | 14 ++
8 files changed, 1571 insertions(+)
create mode 100644 arch/arm64/crypto/Makefile
create mode 100644 arch/arm64/crypto/aes-ce.S
create mode 100644 arch/arm64/crypto/aes-glue.c
create mode 100644 arch/arm64/crypto/aes-modes.S
create mode 100644 arch/arm64/crypto/aes-neon.S
--
1.8.3.2
next reply other threads:[~2014-03-18 11:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 11:44 Ard Biesheuvel [this message]
2014-03-18 11:44 ` [PATCH RFT 1/2] ARM64: pull in <asm/simd.h> from asm-generic Ard Biesheuvel
2014-03-18 11:44 ` [PATCH RFT 2/2] ARM64: add support for NEON and Crypto Extensions accelerated AES Ard Biesheuvel
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=1395143063-28897-1-git-send-email-ard.biesheuvel@linaro.org \
--to=ard.biesheuvel@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).