 |
AM263Px MCU+ SDK
11.00.00
|
|
Go to the documentation of this file.
57 #include <drivers/hw_include/cslr.h>
58 #include <security_common/drivers/crypto/dthe/hw_include/cslr_aes.h>
68 #define DTHE_AES_ECB_MODE (0x00000000U)
70 #define DTHE_AES_CBC_MODE (0x00000001U)
72 #define DTHE_AES_CTR_MODE (0x00000002U)
74 #define DTHE_AES_ICM_MODE (0x00000004U)
76 #define DTHE_AES_CFB_MODE (0x00000008U)
78 #define DTHE_AES_F8_MODE (0x00000010U)
80 #define DTHE_AES_F9_MODE (0x00000020U)
82 #define DTHE_AES_XTS_MODE (0x00000040U)
84 #define DTHE_AES_CBC_MAC_MODE (0x00000080U)
86 #define DTHE_AES_CMAC_MODE (0x00000100U)
88 #define DTHE_AES_GCM_MODE (0x00000200U)
90 #define DTHE_AES_GHASH_ONLY_MODE (0x00000400U)
92 #define DTHE_AES_CCM_MODE (0x00000800U)
95 #define DTHE_AES_KEY_128_SIZE (0x00000001U)
97 #define DTHE_AES_KEY_192_SIZE (0x00000002U)
99 #define DTHE_AES_KEY_256_SIZE (0x00000003U)
102 #define DTHE_AES_ENCRYPT (0x016FE45DU)
104 #define DTHE_AES_DECRYPT (0xDCBA4213U)
107 #define DTHE_AES_CTR_WIDTH_16 (0x00000001U)
109 #define DTHE_AES_CTR_WIDTH_32 (0x00000002U)
111 #define DTHE_AES_CTR_WIDTH_64 (0x00000004U)
113 #define DTHE_AES_CTR_WIDTH_96 (0x00000008U)
115 #define DTHE_AES_CTR_WIDTH_128 (0x00000010U)
118 #define DTHE_AES_ONE_SHOT_SUPPORT (0x00000000U)
120 #define DTHE_AES_STREAM_INIT (0xAA11BB22U)
122 #define DTHE_AES_STREAM_UPDATE (0x33CC44DDU)
124 #define DTHE_AES_STREAM_FINISH (0xEE55FF66U)
127 #define DTHE_AES_NO_MODE (0x0U)
129 #define DTHE_AES_GCM_MODE_1 (0x1U)
131 #define DTHE_AES_GCM_MODE_2 (0x2U)
133 #define DTHE_AES_GCM_MODE_3 (0x3U)
136 #define DTHE_AES_XTS_MODE_1 (0x1U)
138 #define DTHE_AES_XTS_MODE_2 (0x2U)
140 #define DTHE_AES_XTS_MODE_3 (0x3U)
154 typedef enum DTHE_AES_Return_e
184 typedef struct DTHE_AES_Params_t
uint32_t counterWidth
Definition: dthe_aes.h:263
AES Driver Parameters This structure has all the parameters which are need by the AES Driver to perfo...
Definition: dthe_aes.h:185
uint32_t streamState
Definition: dthe_aes.h:269
uint8_t keyLen
Length of the Key.
Definition: dthe_aes.h:217
This file contains the prototype of DTHE driver APIs.
uint32_t * ptrIV
Definition: dthe_aes.h:222
uint32_t ccmM
Definition: dthe_aes.h:300
uint32_t aadLength
Definition: dthe_aes.h:290
uint32_t modeSelect
Definition: dthe_aes.h:309
uint32_t algoType
Definition: dthe_aes.h:187
uint32_t streamSize
Definition: dthe_aes.h:280
uint32_t dataLenBytes
Definition: dthe_aes.h:229
uint32_t opType
Operation to be performed by the AES Driver.
Definition: dthe_aes.h:190
uint32_t * ptrPlainTextData
Definition: dthe_aes.h:253
uint32_t * ptrTag
Definition: dthe_aes.h:258
DTHE_AES_Return_t DTHE_AES_execute(DTHE_Handle handle, const DTHE_AES_Params *ptrParams)
The function is used to execute the AES Driver with the specified parameters.
DTHE_AES_Return_t DTHE_AES_close(DTHE_Handle handle)
Function to close DTHE AES Driver.
DTHE_AES_Return_t
DTHE AES Driver Error code.
Definition: dthe_aes.h:155
uint32_t ccmL
Definition: dthe_aes.h:295
uint32_t * ptrKey2
Definition: dthe_aes.h:212
uint32_t * ptrKey1
Definition: dthe_aes.h:207
void * DTHE_Handle
Handle to the DTHE driver.
Definition: dthe.h:85
uint32_t * ptrAAD
Definition: dthe_aes.h:285
uint32_t * ptrKey
Definition: dthe_aes.h:202
@ DTHE_AES_RETURN_SUCCESS
Definition: dthe_aes.h:156
uint32_t * ptrEncryptedData
Definition: dthe_aes.h:242
Bool useKEKMode
Definition: dthe_aes.h:196
@ DTHE_AES_RETURN_FAILURE
Definition: dthe_aes.h:157
DTHE_AES_Return_t DTHE_AES_open(DTHE_Handle handle)
Function to Open DTHE AES Driver.