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.
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