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