Linux SHA Driver for Zynq Ultrascale+ MPSoC


Table of Contents

Introduction


The SHA-3 IP core is a high-throughput, area-efficient hardware implementation of the SHA-3/Keccak cryptographic hashing functions, compliant to NISTS’s FIPS 180-4 and FIPS 202 standards.
It’s throughput can optionally be optimized by using input message buffering, which allows it to receive new input while still processing the previous message.
Also, the number of hashing rounds per clock is configurable at synthesis time, allowing users to constrain performance to save silicon resources when desired.

HW IP Features

  • SHA-3/Keccak cryptographic hashing functions.

Features supported in driver

  • SHA-3/Keccak cryptographic hashing functions.

Kernel Configuration




Devicetree

Test Procedure

AF ALG hashing demo exampleCross compile the below example and Need to create the executable file to test the SHA3 functionality.
Please note as the data provided in user space will be located in virtual space, linux driver before handing off to ATF converts the data buffers to physical address.

Mainline status

  • This driver is currently not available in mainline kernel.

Change Log

2017.3
Summary

  • crypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc
Commits
  • 6aa92ef crypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc

2017.4
  • None.

2018.1

  • Uses NIST SHA-3 Padding

Related Links

https://github.com/Xilinx/linux-xlnx/blob/master/drivers/crypto/zynqmp-sha.c