XSecure_AesDecryptInit - 2021.2 English

Xilinx Standalone Library Documentation: OS and Libraries Document Collection

Document ID
UG643
Release Date
2021-10-27
Version
2021.2 English

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

Note: If all of the data to be decrypted is available, the XSecure_AesDecryptData function can be used instead.

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 will be stored.
Size Expected size of the data in bytes whereas the number of bytes provided should be multiples of 4.
GcmTagAddr Pointer to the GCM tag which needs to be verified during decryption of the data.

Returns

Returns XST_SUCCESS if initialization was successful for decryption