38 #ifndef __DRIVERLIB_DES_H__ 39 #define __DRIVERLIB_DES_H__ 61 #define DES_CFG_DIR_DECRYPT 0x00000000 62 #define DES_CFG_DIR_ENCRYPT 0x00000004 70 #define DES_CFG_MODE_ECB 0x00000000 71 #define DES_CFG_MODE_CBC 0x00000010 72 #define DES_CFG_MODE_CFB 0x00000020 81 #define DES_CFG_SINGLE 0x00000000 82 #define DES_CFG_TRIPLE 0x00000008 90 #define DES_INT_CONTEXT_IN 0x00000001 91 #define DES_INT_DATA_IN 0x00000002 92 #define DES_INT_DATA_OUT 0x00000004 93 #define DES_INT_DMA_CONTEXT_IN 0x00010000 94 #define DES_INT_DMA_DATA_IN 0x00020000 95 #define DES_INT_DMA_DATA_OUT 0x00040000 103 #define DES_DMA_CONTEXT_IN 0x00000080 104 #define DES_DMA_DATA_OUT 0x00000040 105 #define DES_DMA_DATA_IN 0x00000020 112 extern void DESConfigSet(uint32_t ui32Base, uint32_t ui32Config);
113 extern void DESDataRead(uint32_t ui32Base, uint32_t *pui32Dest);
116 uint32_t *pui32Dest, uint32_t ui32Length);
117 extern void DESDataWrite(uint32_t ui32Base, uint32_t *pui32Src);
119 extern void DESDMADisable(uint32_t ui32Base, uint32_t ui32Flags);
120 extern void DESDMAEnable(uint32_t ui32Base, uint32_t ui32Flags);
121 extern void DESIntClear(uint32_t ui32Base, uint32_t ui32IntFlags);
122 extern void DESIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags);
123 extern void DESIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags);
124 extern void DESIntRegister(uint32_t ui32Base,
void (*pfnHandler)(
void));
125 extern uint32_t
DESIntStatus(uint32_t ui32Base,
bool bMasked);
127 extern bool DESIVSet(uint32_t ui32Base, uint32_t *pui32IVdata);
128 extern void DESKeySet(uint32_t ui32Base, uint32_t *pui32Key);
129 extern void DESLengthSet(uint32_t ui32Base, uint32_t ui32Length);
130 extern void DESReset(uint32_t ui32Base);
141 #endif // __DRIVERLIB_DES_H__ void DESConfigSet(uint32_t ui32Base, uint32_t ui32Config)
Definition: des.c:122
uint32_t DESIntStatus(uint32_t ui32Base, bool bMasked)
Definition: des.c:510
bool DESDataReadNonBlocking(uint32_t ui32Base, uint32_t *pui32Dest)
Definition: des.c:271
void DESLengthSet(uint32_t ui32Base, uint32_t ui32Length)
Definition: des.c:244
void DESDMADisable(uint32_t ui32Base, uint32_t ui32Flags)
Definition: des.c:783
bool DESDataProcess(uint32_t ui32Base, uint32_t *pui32Src, uint32_t *pui32Dest, uint32_t ui32Length)
Definition: des.c:435
void DESIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Definition: des.c:679
void DESKeySet(uint32_t ui32Base, uint32_t *pui32Key)
Definition: des.c:156
bool DESIVSet(uint32_t ui32Base, uint32_t *pui32IVdata)
Definition: des.c:199
void DESIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: des.c:556
void DESReset(uint32_t ui32Base)
Definition: des.c:66
void DESDataWrite(uint32_t ui32Base, uint32_t *pui32Src)
Definition: des.c:390
void DESDMAEnable(uint32_t ui32Base, uint32_t ui32Flags)
Definition: des.c:749
void DESIntUnregister(uint32_t ui32Base)
Definition: des.c:713
void DESIntClear(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: des.c:640
void DESDataRead(uint32_t ui32Base, uint32_t *pui32Dest)
Definition: des.c:313
void DESIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: des.c:598
bool DESDataWriteNonBlocking(uint32_t ui32Base, uint32_t *pui32Src)
Definition: des.c:348