[J][PATCH 0/2] In-kernel crypto: SIMD implementation of chacha20 (LP: 1853152)

frank.heimes at canonical.com frank.heimes at canonical.com
Thu Feb 24 19:11:06 UTC 2022


BugLink: https://bugs.launchpad.net/bugs/1853152

Recent kernel releases provide support for the chacha20 cipher and among
others use it to compute pseudo random numbers for /dev/urandom. Chacha20
is a type of algorithm that can be accelerated using SIMD instructions.
The goal of this item is to use z System SIMD instruction
to implement chacha20.

Heiko Carstens (1):
  s390/crypto: fix compile error for ChaCha20 module

Patrick Steuer (1):
  s390/crypto: add SIMD implementation for ChaCha20

 arch/s390/configs/debug_defconfig |   1 +
 arch/s390/configs/defconfig       |   1 +
 arch/s390/crypto/Makefile         |   2 +
 arch/s390/crypto/chacha-glue.c    | 100 ++++
 arch/s390/crypto/chacha-s390.S    | 907 ++++++++++++++++++++++++++++++
 arch/s390/crypto/chacha-s390.h    |  14 +
 arch/s390/include/asm/vx-insn.h   | 117 ++++
 drivers/crypto/Kconfig            |  12 +
 8 files changed, 1154 insertions(+)
 create mode 100644 arch/s390/crypto/chacha-glue.c
 create mode 100644 arch/s390/crypto/chacha-s390.S
 create mode 100644 arch/s390/crypto/chacha-s390.h

-- 
2.25.1




More information about the kernel-team mailing list