XSecure_AesDecrypt - 2022.2 English

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

Document ID
UG643
Release Date
2022-10-19
Version
2022.2 English

This function will handle the AES-GCM Decryption.

Note: This function is used for decrypting the Image's partition encrypted by Bootgen

Prototype

s32 XSecure_AesDecrypt(XSecure_Aes *InstancePtr, u8 *Dst, const u8 *Src, u32 Length);

Parameters

The following table lists the XSecure_AesDecrypt function arguments.

Table 1. XSecure_AesDecrypt Arguments
Name Description
InstancePtr Pointer to the XSecure_Aes instance.
Src Pointer to encrypted data source location
Dst Pointer to location where decrypted data will be written.
Length Expected total length of decrypted image expected.

Returns

returns XST_SUCCESS if successful, or the relevant errorcode.