- XilSecure SHA-3 APIs in provides access to ZynqMP hardware accelerator for SHA-3/384 hash calculation
- Uses NIST SHA-3 padding by default
-
User can configure system to use Keccak padding.
Initialization Functions
XSecure_Sha3Initialize
Initializes a specific Xsecure_Sha3 instance so that it is ready to be used
Hash functions
XSecure_Sha3Start
Configure and start SHA3 engine
XSecure_Sha3Update
Updates hash for new input data block
XSecure_Sha3Finish
Sends the last data and padding when blocksize is not multiple of 104 bytes
XSecure_Sha3Digest
Calculates the SHA-3 digest on the given input data
XSecure_Sha3_ReadHash
Reads the SHA3 hash of the data. It can be called intermediately of updates also to read hashs.
XSecure_Sha3PadSelection This function provides an option to select the SHA-3 padding type ( NIST / KECCAK) to be used while calculating the hash