]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab3cb1a9703d957c8d0be15a3bdc077207fcf862
tree5b5d32857a63ad2a233e8df3099b139376d079be
parent4df89dcf9e285e3d51de8b6c0bd20735ed6dae54
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]