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

Go to the source code of this file.

Macros

#define DES_CFG_DIR_DECRYPT   0x00000000
 
#define DES_CFG_DIR_ENCRYPT   0x00000004
 
#define DES_CFG_MODE_ECB   0x00000000
 
#define DES_CFG_MODE_CBC   0x00000010
 
#define DES_CFG_MODE_CFB   0x00000020
 
#define DES_CFG_SINGLE   0x00000000
 
#define DES_CFG_TRIPLE   0x00000008
 
#define DES_INT_CONTEXT_IN   0x00000001
 
#define DES_INT_DATA_IN   0x00000002
 
#define DES_INT_DATA_OUT   0x00000004
 
#define DES_INT_DMA_CONTEXT_IN   0x00010000
 
#define DES_INT_DMA_DATA_IN   0x00020000
 
#define DES_INT_DMA_DATA_OUT   0x00040000
 
#define DES_DMA_CONTEXT_IN   0x00000080
 
#define DES_DMA_DATA_OUT   0x00000040
 
#define DES_DMA_DATA_IN   0x00000020
 

Functions

void DESConfigSet (uint32_t ui32Base, uint32_t ui32Config)
 
void DESDataRead (uint32_t ui32Base, uint32_t *pui32Dest)
 
bool DESDataReadNonBlocking (uint32_t ui32Base, uint32_t *pui32Dest)
 
bool DESDataProcess (uint32_t ui32Base, uint32_t *pui32Src, uint32_t *pui32Dest, uint32_t ui32Length)
 
void DESDataWrite (uint32_t ui32Base, uint32_t *pui32Src)
 
bool DESDataWriteNonBlocking (uint32_t ui32Base, uint32_t *pui32Src)
 
void DESDMADisable (uint32_t ui32Base, uint32_t ui32Flags)
 
void DESDMAEnable (uint32_t ui32Base, uint32_t ui32Flags)
 
void DESIntClear (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void DESIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void DESIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void DESIntRegister (uint32_t ui32Base, void(*pfnHandler)(void))
 
uint32_t DESIntStatus (uint32_t ui32Base, bool bMasked)
 
void DESIntUnregister (uint32_t ui32Base)
 
bool DESIVSet (uint32_t ui32Base, uint32_t *pui32IVdata)
 
void DESKeySet (uint32_t ui32Base, uint32_t *pui32Key)
 
void DESLengthSet (uint32_t ui32Base, uint32_t ui32Length)
 
void DESReset (uint32_t ui32Base)
 

Macro Definition Documentation

§ DES_CFG_DIR_DECRYPT

#define DES_CFG_DIR_DECRYPT   0x00000000

§ DES_CFG_DIR_ENCRYPT

#define DES_CFG_DIR_ENCRYPT   0x00000004

§ DES_CFG_MODE_ECB

#define DES_CFG_MODE_ECB   0x00000000

§ DES_CFG_MODE_CBC

#define DES_CFG_MODE_CBC   0x00000010

§ DES_CFG_MODE_CFB

#define DES_CFG_MODE_CFB   0x00000020

§ DES_CFG_SINGLE

#define DES_CFG_SINGLE   0x00000000

§ DES_CFG_TRIPLE

#define DES_CFG_TRIPLE   0x00000008

Referenced by DESKeySet().

§ DES_INT_CONTEXT_IN

#define DES_INT_CONTEXT_IN   0x00000001

Referenced by DESIntDisable(), and DESIntEnable().

§ DES_INT_DATA_IN

#define DES_INT_DATA_IN   0x00000002

Referenced by DESIntDisable(), and DESIntEnable().

§ DES_INT_DATA_OUT

#define DES_INT_DATA_OUT   0x00000004

Referenced by DESIntDisable(), and DESIntEnable().

§ DES_INT_DMA_CONTEXT_IN

#define DES_INT_DMA_CONTEXT_IN   0x00010000

§ DES_INT_DMA_DATA_IN

#define DES_INT_DMA_DATA_IN   0x00020000

§ DES_INT_DMA_DATA_OUT

#define DES_INT_DMA_DATA_OUT   0x00040000

§ DES_DMA_CONTEXT_IN

#define DES_DMA_CONTEXT_IN   0x00000080

Referenced by DESDMADisable(), and DESDMAEnable().

§ DES_DMA_DATA_OUT

#define DES_DMA_DATA_OUT   0x00000040

Referenced by DESDMADisable(), and DESDMAEnable().

§ DES_DMA_DATA_IN

#define DES_DMA_DATA_IN   0x00000020

Referenced by DESDMADisable(), and DESDMAEnable().

Copyright 2017, Texas Instruments Incorporated