This function calculates the SHA-3 digest on the given input data.
Prototype
u32 XSecure_Sha3Digest(XSecure_Sha3 *InstancePtr, const u8 *In, const u32 Size, u8 *Out);
Parameters
The following table lists the XSecure_Sha3Digest
function arguments.
Name | Description |
---|---|
InstancePtr | Pointer to the XSecure_Sha3 instance. |
In | Pointer to the input data for hashing |
Size | Size of the input data |
Out | Pointer to location where resulting hash will be written. |
Returns
- XST_SUCCESS if digest calculation done successfully
- XST_FAILURE if any error from Sha3Update or Sha3Finish.