XSecure_Sha3Digest - 2021.1 English

Xilinx Standalone Library Documentation OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2021-06-16
Version
2021.1 English

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.

Table 1. XSecure_Sha3Digest 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.