This function encrypts Len (length) number of bytes of the passed in Src (source) buffer and stores the encrypted data along with its associated 16 byte tag in the Dst (destination) buffer.
u32 XSecure_AesEncryptData(XSecure_Aes *InstancePtr, u8 *Dst, const u8 *Src, u32 Len);
The following table lists the
XSecure_AesEncryptData function arguments.
|A pointer to the XSecure_Aes instance.
|A pointer to a buffer where encrypted data along with GCM tag will be stored. The Size of buffer provided should be Size of the data plus 16 bytes
|A pointer to input data for encryption.
|Size of input data in bytes, whereas the number of bytes provided should be multiples of 4.
Returns XST_SUCCESS if encryption is successful