XSecure_AesDecrypt - 2021.1 English

Xilinx Standalone Library Documentation OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2021-06-16
Version
2021.1 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 error code.