XSecure_AesDecryptInit - XSecure_AesDecryptInit - 2026.1 English - UG643

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

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

This function initializes the AES engine for decryption and is required to be executed before XSecure_AesDecryptUpdate function.

Note: If all of the decryption data is available, use XSecure_AesDecryptData function.

Prototype

u32 XSecure_AesDecryptInit(XSecure_Aes *InstancePtr, u8 *DecData, u32 Size, u8 *GcmTagAddr);

Parameters

The following table lists the XSecure_AesDecryptInit function arguments.

Table 1. XSecure_AesDecryptInit Arguments
Name Description
InstancePtr Pointer to the XSecure_Aes instance.
DecData Pointer in which decrypted data is stored.
Size Expected size of the data in bytes whereas the number of bytes provided is multiples of 4.
GcmTagAddr Pointer to the GCM tag which requires verification during decryption of the data.

Returns

None