Macros | Functions
aes.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define AES_CFG_DIR_ENCRYPT   0x00000004
 
#define AES_CFG_DIR_DECRYPT   0x00000000
 
#define AES_CFG_KEY_SIZE_128BIT   0x00000008
 
#define AES_CFG_KEY_SIZE_192BIT   0x00000010
 
#define AES_CFG_KEY_SIZE_256BIT   0x00000018
 
#define AES_CFG_MODE_M   0x2007fe60
 
#define AES_CFG_MODE_ECB   0x00000000
 
#define AES_CFG_MODE_CBC   0x00000020
 
#define AES_CFG_MODE_CTR   0x00000040
 
#define AES_CFG_MODE_ICM   0x00000200
 
#define AES_CFG_MODE_CFB   0x00000400
 
#define AES_CFG_MODE_XTS_TWEAKJL   0x00000800
 
#define AES_CFG_MODE_XTS_K2IJL   0x00001000
 
#define AES_CFG_MODE_XTS_K2ILJ0   0x00001800
 
#define AES_CFG_MODE_F8   0x00002000
 
#define AES_CFG_MODE_F9   0x20004000
 
#define AES_CFG_MODE_CBCMAC   0x20008000
 
#define AES_CFG_MODE_GCM_HLY0ZERO   0x20010000
 
#define AES_CFG_MODE_GCM_HLY0CALC   0x20020040
 
#define AES_CFG_MODE_GCM_HY0CALC   0x20030040
 
#define AES_CFG_MODE_CCM   0x20040040
 
#define AES_CFG_CTR_WIDTH_32   0x00000000
 
#define AES_CFG_CTR_WIDTH_64   0x00000080
 
#define AES_CFG_CTR_WIDTH_96   0x00000100
 
#define AES_CFG_CTR_WIDTH_128   0x00000180
 
#define AES_CFG_CCM_L_1   0x00000000
 
#define AES_CFG_CCM_L_2   0x00080000
 
#define AES_CFG_CCM_L_3   0x00100000
 
#define AES_CFG_CCM_L_4   0x00180000
 
#define AES_CFG_CCM_L_5   0x00200000
 
#define AES_CFG_CCM_L_6   0x00280000
 
#define AES_CFG_CCM_L_7   0x00300000
 
#define AES_CFG_CCM_L_8   0x00380000
 
#define AES_CFG_CCM_M_4   0x00400000
 
#define AES_CFG_CCM_M_6   0x00800000
 
#define AES_CFG_CCM_M_8   0x00c00000
 
#define AES_CFG_CCM_M_10   0x01000000
 
#define AES_CFG_CCM_M_12   0x01400000
 
#define AES_CFG_CCM_M_14   0x01800000
 
#define AES_CFG_CCM_M_16   0x01c00000
 
#define AES_INT_CONTEXT_IN   0x00000001
 
#define AES_INT_CONTEXT_OUT   0x00000008
 
#define AES_INT_DATA_IN   0x00000002
 
#define AES_INT_DATA_OUT   0x00000004
 
#define AES_INT_DMA_CONTEXT_IN   0x00010000
 
#define AES_INT_DMA_CONTEXT_OUT   0x00080000
 
#define AES_INT_DMA_DATA_IN   0x00020000
 
#define AES_INT_DMA_DATA_OUT   0x00040000
 
#define AES_DMA_DATA_IN   0x00000020
 
#define AES_DMA_DATA_OUT   0x00000040
 
#define AES_DMA_CONTEXT_IN   0x00000080
 
#define AES_DMA_CONTEXT_OUT   0x00000100
 

Functions

void AESAuthLengthSet (uint32_t ui32Base, uint32_t ui32Length)
 
void AESConfigSet (uint32_t ui32Base, uint32_t ui32Config)
 
void AESDataRead (uint32_t ui32Base, uint32_t *pui32Dest)
 
bool AESDataReadNonBlocking (uint32_t ui32Base, uint32_t *pui32Dest)
 
bool AESDataProcess (uint32_t ui32Base, uint32_t *pui32Src, uint32_t *pui32Dest, uint32_t ui32Length)
 
bool AESDataAuth (uint32_t ui32Base, uint32_t *pui32Src, uint32_t ui32Length, uint32_t *pui32Tag)
 
bool AESDataProcessAuth (uint32_t ui32Base, uint32_t *pui32Src, uint32_t *pui32Dest, uint32_t ui32Length, uint32_t *pui32AuthSrc, uint32_t ui32AuthLength, uint32_t *pui32Tag)
 
void AESDataWrite (uint32_t ui32Base, uint32_t *pui32Src)
 
bool AESDataWriteNonBlocking (uint32_t ui32Base, uint32_t *pui32Src)
 
void AESDMADisable (uint32_t ui32Base, uint32_t ui32Flags)
 
void AESDMAEnable (uint32_t ui32Base, uint32_t ui32Flags)
 
void AESIntClear (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void AESIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void AESIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void AESIntRegister (uint32_t ui32Base, void(*pfnHandler)(void))
 
uint32_t AESIntStatus (uint32_t ui32Base, bool bMasked)
 
void AESIntUnregister (uint32_t ui32Base)
 
void AESIVSet (uint32_t ui32Base, uint32_t *pui32IVdata)
 
void AESIVRead (uint32_t ui32Base, uint32_t *pui32IVdata)
 
void AESKey1Set (uint32_t ui32Base, uint32_t *pui32Key, uint32_t ui32Keysize)
 
void AESKey2Set (uint32_t ui32Base, uint32_t *pui32Key, uint32_t ui32Keysize)
 
void AESKey3Set (uint32_t ui32Base, uint32_t *pui32Key)
 
void AESLengthSet (uint32_t ui32Base, uint64_t ui64Length)
 
void AESReset (uint32_t ui32Base)
 
void AESTagRead (uint32_t ui32Base, uint32_t *pui32TagData)
 

Macro Definition Documentation

§ AES_CFG_DIR_ENCRYPT

#define AES_CFG_DIR_ENCRYPT   0x00000004

Referenced by AESConfigSet().

§ AES_CFG_DIR_DECRYPT

#define AES_CFG_DIR_DECRYPT   0x00000000

Referenced by AESConfigSet().

§ AES_CFG_KEY_SIZE_128BIT

#define AES_CFG_KEY_SIZE_128BIT   0x00000008

§ AES_CFG_KEY_SIZE_192BIT

#define AES_CFG_KEY_SIZE_192BIT   0x00000010

§ AES_CFG_KEY_SIZE_256BIT

#define AES_CFG_KEY_SIZE_256BIT   0x00000018

§ AES_CFG_MODE_M

#define AES_CFG_MODE_M   0x2007fe60

§ AES_CFG_MODE_ECB

#define AES_CFG_MODE_ECB   0x00000000

Referenced by AESConfigSet().

§ AES_CFG_MODE_CBC

#define AES_CFG_MODE_CBC   0x00000020

Referenced by AESConfigSet().

§ AES_CFG_MODE_CTR

#define AES_CFG_MODE_CTR   0x00000040

Referenced by AESConfigSet().

§ AES_CFG_MODE_ICM

#define AES_CFG_MODE_ICM   0x00000200

Referenced by AESConfigSet().

§ AES_CFG_MODE_CFB

#define AES_CFG_MODE_CFB   0x00000400

Referenced by AESConfigSet().

§ AES_CFG_MODE_XTS_TWEAKJL

#define AES_CFG_MODE_XTS_TWEAKJL   0x00000800

Referenced by AESConfigSet().

§ AES_CFG_MODE_XTS_K2IJL

#define AES_CFG_MODE_XTS_K2IJL   0x00001000

Referenced by AESConfigSet().

§ AES_CFG_MODE_XTS_K2ILJ0

#define AES_CFG_MODE_XTS_K2ILJ0   0x00001800

Referenced by AESConfigSet().

§ AES_CFG_MODE_F8

#define AES_CFG_MODE_F8   0x00002000

Referenced by AESConfigSet().

§ AES_CFG_MODE_F9

#define AES_CFG_MODE_F9   0x20004000

Referenced by AESConfigSet().

§ AES_CFG_MODE_CBCMAC

#define AES_CFG_MODE_CBCMAC   0x20008000

Referenced by AESConfigSet().

§ AES_CFG_MODE_GCM_HLY0ZERO

#define AES_CFG_MODE_GCM_HLY0ZERO   0x20010000

Referenced by AESConfigSet().

§ AES_CFG_MODE_GCM_HLY0CALC

#define AES_CFG_MODE_GCM_HLY0CALC   0x20020040

Referenced by AESConfigSet().

§ AES_CFG_MODE_GCM_HY0CALC

#define AES_CFG_MODE_GCM_HY0CALC   0x20030040

Referenced by AESConfigSet().

§ AES_CFG_MODE_CCM

#define AES_CFG_MODE_CCM   0x20040040

Referenced by AESConfigSet().

§ AES_CFG_CTR_WIDTH_32

#define AES_CFG_CTR_WIDTH_32   0x00000000

Referenced by AESConfigSet().

§ AES_CFG_CTR_WIDTH_64

#define AES_CFG_CTR_WIDTH_64   0x00000080

Referenced by AESConfigSet().

§ AES_CFG_CTR_WIDTH_96

#define AES_CFG_CTR_WIDTH_96   0x00000100

Referenced by AESConfigSet().

§ AES_CFG_CTR_WIDTH_128

#define AES_CFG_CTR_WIDTH_128   0x00000180

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_1

#define AES_CFG_CCM_L_1   0x00000000

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_2

#define AES_CFG_CCM_L_2   0x00080000

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_3

#define AES_CFG_CCM_L_3   0x00100000

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_4

#define AES_CFG_CCM_L_4   0x00180000

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_5

#define AES_CFG_CCM_L_5   0x00200000

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_6

#define AES_CFG_CCM_L_6   0x00280000

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_7

#define AES_CFG_CCM_L_7   0x00300000

Referenced by AESConfigSet().

§ AES_CFG_CCM_L_8

#define AES_CFG_CCM_L_8   0x00380000

Referenced by AESConfigSet().

§ AES_CFG_CCM_M_4

#define AES_CFG_CCM_M_4   0x00400000

Referenced by AESConfigSet().

§ AES_CFG_CCM_M_6

#define AES_CFG_CCM_M_6   0x00800000

Referenced by AESConfigSet().

§ AES_CFG_CCM_M_8

#define AES_CFG_CCM_M_8   0x00c00000

Referenced by AESConfigSet().

§ AES_CFG_CCM_M_10

#define AES_CFG_CCM_M_10   0x01000000

Referenced by AESConfigSet().

§ AES_CFG_CCM_M_12

#define AES_CFG_CCM_M_12   0x01400000

Referenced by AESConfigSet().

§ AES_CFG_CCM_M_14

#define AES_CFG_CCM_M_14   0x01800000

Referenced by AESConfigSet().

§ AES_CFG_CCM_M_16

#define AES_CFG_CCM_M_16   0x01c00000

Referenced by AESConfigSet().

§ AES_INT_CONTEXT_IN

#define AES_INT_CONTEXT_IN   0x00000001

Referenced by AESIntDisable(), and AESIntEnable().

§ AES_INT_CONTEXT_OUT

#define AES_INT_CONTEXT_OUT   0x00000008

Referenced by AESIntDisable(), and AESIntEnable().

§ AES_INT_DATA_IN

#define AES_INT_DATA_IN   0x00000002

Referenced by AESIntDisable(), and AESIntEnable().

§ AES_INT_DATA_OUT

#define AES_INT_DATA_OUT   0x00000004

Referenced by AESIntDisable(), and AESIntEnable().

§ AES_INT_DMA_CONTEXT_IN

#define AES_INT_DMA_CONTEXT_IN   0x00010000

§ AES_INT_DMA_CONTEXT_OUT

#define AES_INT_DMA_CONTEXT_OUT   0x00080000

§ AES_INT_DMA_DATA_IN

#define AES_INT_DMA_DATA_IN   0x00020000

§ AES_INT_DMA_DATA_OUT

#define AES_INT_DMA_DATA_OUT   0x00040000

§ AES_DMA_DATA_IN

#define AES_DMA_DATA_IN   0x00000020

Referenced by AESDMADisable(), and AESDMAEnable().

§ AES_DMA_DATA_OUT

#define AES_DMA_DATA_OUT   0x00000040

Referenced by AESDMADisable(), and AESDMAEnable().

§ AES_DMA_CONTEXT_IN

#define AES_DMA_CONTEXT_IN   0x00000080

Referenced by AESDMADisable(), and AESDMAEnable().

§ AES_DMA_CONTEXT_OUT

#define AES_DMA_CONTEXT_OUT   0x00000100

Referenced by AESDMADisable(), and AESDMAEnable().

Copyright 2017, Texas Instruments Incorporated