linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] crypto: Accelerated Chacha20/Poly1305 implementation
@ 2023-04-26 19:11 Danny Tsen
  2023-04-26 19:11 ` [PATCH v2 1/5] An optimized Chacha20 implementation with 8-way unrolling for ppc64le Danny Tsen
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Danny Tsen @ 2023-04-26 19:11 UTC (permalink / raw)
  To: linux-crypto
  Cc: herbert, dtsen, nayna, linux-kernel, Danny Tsen, appro, ltcgcw,
	leitao, linuxppc-dev

This patch series provide an accelerated/optimized Chacha20 and Poly1305
implementation for Power10 or later CPU (ppc64le).  This module
implements algorithm specified in RFC7539.  The implementation
provides 3.5X better performance than the baseline for Chacha20 and
Poly1305 individually and 1.5X improvement for Chacha20/Poly1305
operation.

This patch has been tested with the kernel crypto module tcrypt.ko and
has passed the selftest.  The patch is also tested with
CONFIG_CRYPTO_MANAGER_EXTRA_TESTS enabled.


Danny Tsen (5):
  An optimized Chacha20 implementation with 8-way unrolling for ppc64le.
  Glue code for optmized Chacha20 implementation for ppc64le.
  An optimized Poly1305 implementation with 4-way unrolling for ppc64le.
  Glue code for optmized Poly1305 implementation for ppc64le.
  Update Kconfig and Makefile.

 arch/powerpc/crypto/Kconfig             |   26 +
 arch/powerpc/crypto/Makefile            |    4 +
 arch/powerpc/crypto/chacha-p10-glue.c   |  221 +++++
 arch/powerpc/crypto/chacha-p10le-8x.S   |  842 ++++++++++++++++++
 arch/powerpc/crypto/poly1305-p10-glue.c |  186 ++++
 arch/powerpc/crypto/poly1305-p10le_64.S | 1075 +++++++++++++++++++++++
 6 files changed, 2354 insertions(+)
 create mode 100644 arch/powerpc/crypto/chacha-p10-glue.c
 create mode 100644 arch/powerpc/crypto/chacha-p10le-8x.S
 create mode 100644 arch/powerpc/crypto/poly1305-p10-glue.c
 create mode 100644 arch/powerpc/crypto/poly1305-p10le_64.S

-- 
2.31.1


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

end of thread, other threads:[~2023-07-15  0:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-26 19:11 [PATCH v2 0/5] crypto: Accelerated Chacha20/Poly1305 implementation Danny Tsen
2023-04-26 19:11 ` [PATCH v2 1/5] An optimized Chacha20 implementation with 8-way unrolling for ppc64le Danny Tsen
2023-04-26 19:11 ` [PATCH v2 2/5] Glue code for optmized Chacha20 implementation " Danny Tsen
2023-04-26 19:11 ` [PATCH v2 3/5] An optimized Poly1305 implementation with 4-way unrolling " Danny Tsen
2023-04-26 19:11 ` [PATCH v2 4/5] Glue code for optmized Poly1305 implementation " Danny Tsen
2023-04-26 19:11 ` [PATCH v2 5/5] Update Kconfig and Makefile Danny Tsen
2023-07-14  8:49 ` [PATCH v2 0/5] crypto: Accelerated Chacha20/Poly1305 implementation Herbert Xu
2023-07-14 16:04   ` Danny Tsen

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