linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFT 0/2] arm64: AES in ECB/CBC/CTR/XTS modes
@ 2014-03-18 11:44 Ard Biesheuvel
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2014-03-18 11:44 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-18 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18 11:44 [PATCH RFT 0/2] arm64: AES in ECB/CBC/CTR/XTS modes Ard Biesheuvel
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

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).