XSecure_Sha3Finish - 2021.2 English

Xilinx Standalone Library Documentation: OS and Libraries Document Collection

Document ID
UG643
Release Date
2021-10-27
Version
2021.2 English

This function updates SHA3 engine with final data which includes SHA3 padding and reads final hash on complete data.

Prototype

u32 XSecure_Sha3Finish(XSecure_Sha3 *InstancePtr, u8 *Hash);

Parameters

The following table lists the XSecure_Sha3Finish function arguments.

Table 1. XSecure_Sha3Finish Arguments
Name Description
InstancePtr Pointer to the XSecure_Sha3 instance.
Hash Pointer to location where resulting hash will be written

Returns

XST_SUCCESS if finished without any errors XST_FAILURE if Sha3PadType is other than KECCAK or NIST