40 #ifndef __DRIVERLIB_DES_H__ 41 #define __DRIVERLIB_DES_H__ 60 #define DES_CFG_DIR_DECRYPT 0x00000000 61 #define DES_CFG_DIR_ENCRYPT 0x00000004 69 #define DES_CFG_MODE_ECB 0x00000000 70 #define DES_CFG_MODE_CBC 0x00000010 71 #define DES_CFG_MODE_CFB 0x00000020 80 #define DES_CFG_SINGLE 0x00000000 81 #define DES_CFG_TRIPLE 0x00000008 89 #define DES_INT_CONTEXT_IN 0x00000001 90 #define DES_INT_DATA_IN 0x00000002 91 #define DES_INT_DATA_OUT 0x00000004 92 #define DES_INT_DMA_CONTEXT_IN 0x00010000 93 #define DES_INT_DMA_DATA_IN 0x00020000 94 #define DES_INT_DMA_DATA_OUT 0x00040000 102 #define DES_DMA_CONTEXT_IN 0x00000080 103 #define DES_DMA_DATA_OUT 0x00000040 104 #define DES_DMA_DATA_IN 0x00000020 111 extern void DESConfigSet(uint32_t ui32Base, uint32_t ui32Config);
112 extern void DESDataRead(uint32_t ui32Base, uint8_t *pui8Dest,
117 uint8_t *pui8Dest, uint32_t ui32Length);
118 extern void DESDataWrite(uint32_t ui32Base, uint8_t *pui8Src,
122 extern void DESDMADisable(uint32_t ui32Base, uint32_t ui32Flags);
123 extern void DESDMAEnable(uint32_t ui32Base, uint32_t ui32Flags);
124 extern void DESIntClear(uint32_t ui32Base, uint32_t ui32IntFlags);
125 extern void DESIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags);
126 extern void DESIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags);
127 extern void DESIntRegister(uint32_t ui32Base,
void(*pfnHandler)(
void));
128 extern uint32_t
DESIntStatus(uint32_t ui32Base,
bool bMasked);
130 extern bool DESIVSet(uint32_t ui32Base, uint8_t *pui8IVdata);
131 extern void DESKeySet(uint32_t ui32Base, uint8_t *pui8Key);
143 #endif // __DRIVERLIB_DES_H__ void DESDMADisable(uint32_t ui32Base, uint32_t ui32Flags)
Definition: des.c:866
bool DESDataReadNonBlocking(uint32_t ui32Base, uint8_t *pui8Dest, uint8_t ui8Length)
Definition: des.c:244
bool DESDataWriteNonBlocking(uint32_t ui32Base, uint8_t *pui8Src, uint8_t ui8Length)
Definition: des.c:356
bool DESIVSet(uint32_t ui32Base, uint8_t *pui8IVdata)
Definition: des.c:171
void DESKeySet(uint32_t ui32Base, uint8_t *pui8Key)
Definition: des.c:128
uint32_t DESIntStatus(uint32_t ui32Base, bool bMasked)
Definition: des.c:591
void DESIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: des.c:639
void DESIntUnregister(uint32_t ui32Base)
Definition: des.c:796
void DESDataWrite(uint32_t ui32Base, uint8_t *pui8Src, uint8_t ui8Length)
Definition: des.c:418
void DESIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Definition: des.c:762
void DESIntClear(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: des.c:723
void DESConfigSet(uint32_t ui32Base, uint32_t ui32Config)
Definition: des.c:94
void DESDataRead(uint32_t ui32Base, uint8_t *pui8Dest, uint8_t ui8Length)
Definition: des.c:304
void DESDataLengthSet(uint32_t ui32Base, uint32_t ui32Length)
Definition: des.c:216
bool DESDataProcess(uint32_t ui32Base, uint8_t *pui8Src, uint8_t *pui8Dest, uint32_t ui32Length)
Definition: des.c:481
void DESDMAEnable(uint32_t ui32Base, uint32_t ui32Flags)
Definition: des.c:832
void DESIntDisable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: des.c:681