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

Table 1. XSecure_Sha3Initialize Arguments
Name Description
InstancePtr Pointer to the XSecure_Sha3 instance.
CsuDmaPtr Pointer to the XCsuDma instance.

Returns

XST_SUCCESS if initialization was successful