XSecure_AesEncryptUpdate - 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 encrypts the clear-text data passed in and updates the GCM tag from any previous calls. The size from XSecure_AesEncryptInit is decremented from the size passed into this function to determine when the final CSU DMA transfer of data to the AES-GCM cryptographic core.

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

Prototype

u32 XSecure_AesEncryptUpdate(XSecure_Aes *InstancePtr, const u8 *Data, u32 Size);

Parameters

The following table lists the XSecure_AesEncryptUpdate function arguments.

Table 1. XSecure_AesEncryptUpdate Arguments
Name Description
InstancePtr Pointer to the XSecure_Aes instance.
Data Pointer to the data for which encryption should be performed.
Size A 32 bit variable, which holds the size of the input data in bytes, whereas the number of bytes provided should be multiples of 4.

Returns

Returns XST_SUCCESS if data to be encrypted was successfully updated in AES engine