XSecure_Sha3Finish - 2023.1 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 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