This function initializes a XSecure_Sha3 structure with the default values required for operating the SHA3 cryptographic engine.
Note: The base address is initialized directly with value from xsecure_hw.h The default is NIST SHA3 padding, to change to KECCAK padding call
XSecure_Sha3PadSelection()
after
XSecure_Sha3Initialize()
. Prototype
s32 XSecure_Sha3Initialize(XSecure_Sha3 *InstancePtr, XCsuDma *CsuDmaPtr);
Parameters
The following table lists the XSecure_Sha3Initialize
function arguments.
Name | Description |
---|---|
InstancePtr | Pointer to the XSecure_Sha3 instance. |
CsuDmaPtr | Pointer to the XCsuDma instance. |
Returns
XST_SUCCESS if initialization was successful