38 #ifndef __DRIVERLIB_SHAMD5_H__ 39 #define __DRIVERLIB_SHAMD5_H__ 61 #define SHAMD5_ALGO_MD5 0x00000018 62 #define SHAMD5_ALGO_SHA1 0x0000001a 63 #define SHAMD5_ALGO_SHA224 0x0000001c 64 #define SHAMD5_ALGO_SHA256 0x0000001e 65 #define SHAMD5_ALGO_HMAC_MD5 0x00000000 66 #define SHAMD5_ALGO_HMAC_SHA1 0x00000002 67 #define SHAMD5_ALGO_HMAC_SHA224 0x00000004 68 #define SHAMD5_ALGO_HMAC_SHA256 0x00000006 77 #define SHAMD5_INT_CONTEXT_READY \ 79 #define SHAMD5_INT_PARTHASH_READY \ 81 #define SHAMD5_INT_INPUT_READY 0x00000002 82 #define SHAMD5_INT_OUTPUT_READY 0x00000001 83 #define SHAMD5_INT_DMA_CONTEXT_IN \ 85 #define SHAMD5_INT_DMA_DATA_IN 0x00020000 86 #define SHAMD5_INT_DMA_CONTEXT_OUT \ 96 uint32_t ui32DataLength,
97 uint32_t *pui32HashResult);
105 uint32_t *pui32PPKey);
108 uint32_t ui32DataLength,
109 uint32_t *pui32HashResult);
110 extern void SHAMD5IntClear(uint32_t ui32Base, uint32_t ui32IntFlags);
128 #endif // __DRIVERLIB_SHAMD5_H__ void SHAMD5IntDisable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: shamd5.c:267
void SHAMD5IntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: shamd5.c:222
void SHAMD5ResultRead(uint32_t ui32Base, uint32_t *pui32Dest)
Definition: shamd5.c:589
void SHAMD5HMACPPKeyGenerate(uint32_t ui32Base, uint32_t *pui32Key, uint32_t *pui32PPKey)
Definition: shamd5.c:940
bool SHAMD5DataWriteNonBlocking(uint32_t ui32Base, uint32_t *pui32Src)
Definition: shamd5.c:503
void SHAMD5HMACKeySet(uint32_t ui32Base, uint32_t *pui32Src)
Definition: shamd5.c:1011
void SHAMD5DMADisable(uint32_t ui32Base)
Definition: shamd5.c:134
void SHAMD5IntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Definition: shamd5.c:360
void SHAMD5HMACPPKeySet(uint32_t ui32Base, uint32_t *pui32Src)
Definition: shamd5.c:1055
void SHAMD5HashLengthSet(uint32_t ui32Base, uint32_t ui32Length)
Definition: shamd5.c:429
uint32_t SHAMD5IntStatus(uint32_t ui32Base, bool bMasked)
Definition: shamd5.c:169
void SHAMD5DataProcess(uint32_t ui32Base, uint32_t *pui32DataSrc, uint32_t ui32DataLength, uint32_t *pui32HashResult)
Definition: shamd5.c:805
void SHAMD5ConfigSet(uint32_t ui32Base, uint32_t ui32Mode)
Definition: shamd5.c:466
void SHAMD5IntClear(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: shamd5.c:315
void SHAMD5DMAEnable(uint32_t ui32Base)
Definition: shamd5.c:108
void SHAMD5HMACProcess(uint32_t ui32Base, uint32_t *pui32DataSrc, uint32_t ui32DataLength, uint32_t *pui32HashResult)
Definition: shamd5.c:878
void SHAMD5Reset(uint32_t ui32Base)
Definition: shamd5.c:68
void SHAMD5DataWrite(uint32_t ui32Base, uint32_t *pui32Src)
Definition: shamd5.c:549
void SHAMD5IntUnregister(uint32_t ui32Base)
Definition: shamd5.c:394