s390/crypto: Support for SHA3 via CPACF (MSA6)
authorJoerg Schmidbauer <jschmidb@de.ibm.com>
Wed, 14 Aug 2019 12:56:54 +0000 (14:56 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 13 Sep 2019 10:18:50 +0000 (12:18 +0200)
commit3c2eb6b76cabb7d90834798d6455f7f3431fc989
tree92d5ec5f38d007b9f74bca75bfa4f3159e0f2fc0
parent724dc336b79ff965bd5773257642685cf33ed9af
s390/crypto: Support for SHA3 via CPACF (MSA6)

This patch introduces sha3 support for s390.

- Rework the s390-specific SHA1 and SHA2 related code to
  provide the basis for SHA3.
- Provide two new kernel modules sha3_256_s390 and
  sha3_512_s390 together with new kernel options.

Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/configs/debug_defconfig
arch/s390/configs/defconfig
arch/s390/crypto/Makefile
arch/s390/crypto/sha.h
arch/s390/crypto/sha3_256_s390.c [new file with mode: 0644]
arch/s390/crypto/sha3_512_s390.c [new file with mode: 0644]
arch/s390/crypto/sha_common.c
arch/s390/include/asm/cpacf.h
drivers/crypto/Kconfig