xilsecure
Vitis Drivers API Documentation
xsecure_plat_aes.c File Reference

Overview

This file contains Versal Net specific code for Xilsecure aes server.

MODIFICATION HISTORY:
Ver   Who     Date     Changes


5.2 kpt 06/20/23 Initial release 5.4 yog 04/29/24 Fixed doxygen warnings. kpt 06/13/24 Added AES key unwrap with padding support.

 

Macros

#define XSECURE_AES_KEY_WRAP_MAX_ROUNDS   (5U)
 AES key wrap maximum rounds. More...
 
#define XSECURE_AES_256BIT_MAX_KEY_BLOCK_ROUNDS   (4U)
 AES 256-bit number of blocks. More...
 
#define XSECURE_AES_128BIT_MAX_KEY_BLOCK_ROUNDS   (2U)
 AES 128-bit number of blocks. More...
 
#define XSECURE_AES_KEY_WRAP_INIT_DEF_VAL   (0xA6A6A6A6A6A6A6A6U)
 AES init default value. More...
 

Functions

int XSecure_AesEcbCfg (XSecure_Aes *InstancePtr, u32 EcbModeFlag)
 This function sets AES ECB mode. More...
 
int XSecure_AesEcbDecrypt (XSecure_Aes *InstancePtr, u64 KeyAddr, XSecure_AesKeySize KeySize, u64 InDataAddr, u64 OutDataAddr, u32 Size)
 This function writes AES key into XSECURE_AES_USER_KEY_7 and decrypts the data in ECB mode. More...
 
int XSecure_AesKeyUnwrap (XSecure_Aes *InstancePtr, u8 *EphAesKey, XSecure_AesKeySize KeySize, u8 *AesWrapKey, u64 OutDataAddr, u32 Size)
 This function unwraps the given AES wrapped key. More...