crypto: xilinx - Add Xilinx SHA3 driver
authorHarsha <harsha.harsha@xilinx.com>
Wed, 23 Feb 2022 10:35:03 +0000 (16:05 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Mar 2022 22:49:21 +0000 (10:49 +1200)
commit7ecc3e34474b7055994314ab6cff75eac7d03b71
tree5b5d32857a63ad2a233e8df3099b139376d079be
parent80f940ef527efdd8e36c69f7b5ee8e07ac8891d9
crypto: xilinx - Add Xilinx SHA3 driver

This patch adds SHA3 driver support for the Xilinx ZynqMP SoC.
Xilinx ZynqMP SoC has SHA3 engine used for secure hash calculation.
The flow is
SHA3 request from Userspace -> SHA3 driver-> ZynqMp driver-> Firmware ->
SHA3 HW Engine

SHA3 HW engine in Xilinx ZynqMP SoC, does not support parallel processing
of 2 hash requests.
Therefore, software fallback is being used for init, update, final,
export and import in the ZynqMP SHA driver
For digest, the calculation of SHA3 hash is done by the hardened
SHA3 accelerator in Xilinx ZynqMP SoC.

Signed-off-by: Harsha <harsha.harsha@xilinx.com>
Signed-off-by: Kalyani Akula <kalyani.akula@xilinx.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig
drivers/crypto/xilinx/Makefile
drivers/crypto/xilinx/zynqmp-sha.c [new file with mode: 0644]