40 #ifndef __DRIVERLIB_SHAMD5_H__ 41 #define __DRIVERLIB_SHAMD5_H__ 60 #define SHAMD5_ALGO_MD5 0x00000018 // MD5 61 #define SHAMD5_ALGO_SHA1 0x0000001a // SHA-1 62 #define SHAMD5_ALGO_SHA224 0x0000001c // SHA-224 63 #define SHAMD5_ALGO_SHA256 0x0000001e // SHA-256 64 #define SHAMD5_ALGO_HMAC_MD5 0x00000000 // HMAC-MD5 65 #define SHAMD5_ALGO_HMAC_SHA1 0x00000002 // HMAC-SHA-1 66 #define SHAMD5_ALGO_HMAC_SHA224 0x00000004 // HMAC-SHA-224 67 #define SHAMD5_ALGO_HMAC_SHA256 0x00000006 // HMAC-SHA-256 76 #define SHAMD5_INT_CONTEXT_READY 0x00000008 77 #define SHAMD5_INT_PARTHASH_READY 0x00000004 78 #define SHAMD5_INT_INPUT_READY 0x00000002 79 #define SHAMD5_INT_OUTPUT_READY 0x00000001 80 #define SHAMD5_INT_DMA_CONTEXT_IN 0x00010000 81 #define SHAMD5_INT_DMA_DATA_IN 0x00020000 82 #define SHAMD5_INT_DMA_CONTEXT_OUT 0x00040000 91 uint32_t ui32DataLength, uint8_t *pui8HashResult);
102 uint32_t ui32DataLength, uint8_t *pui8HashResult);
103 extern void SHAMD5IntClear(uint32_t ui32Base, uint32_t ui32IntFlags);
120 #endif // __DRIVERLIB_SHAMD5_H__ void SHAMD5DMAEnable(uint32_t ui32Base)
Definition: shamd5.c:76
void SHAMD5DataWrite(uint32_t ui32Base, uint8_t *pui8Src)
Definition: shamd5.c:507
void SHAMD5ResultRead(uint32_t ui32Base, uint8_t *pui8Dest)
Definition: shamd5.c:557
void SHAMD5IntDisable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: shamd5.c:230
void SHAMD5IntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: shamd5.c:187
void SHAMD5IntClear(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: shamd5.c:276
uint32_t SHAMD5IntStatus(uint32_t ui32Base, bool bMasked)
Definition: shamd5.c:137
void SHAMD5HMACKeySet(uint32_t ui32Base, uint8_t *pui8Src)
Definition: shamd5.c:1015
bool SHAMD5HMACProcess(uint32_t ui32Base, uint8_t *pui8DataSrc, uint32_t ui32DataLength, uint8_t *pui8HashResult)
Definition: shamd5.c:874
void SHAMD5HMACPPKeySet(uint32_t ui32Base, uint8_t *pui8Src)
Definition: shamd5.c:1060
void SHAMD5DMADisable(uint32_t ui32Base)
Definition: shamd5.c:102
void SHAMD5DataLengthSet(uint32_t ui32Base, uint32_t ui32Length)
Definition: shamd5.c:388
bool SHAMD5DataWriteNonBlocking(uint32_t ui32Base, uint8_t *pui8Src)
Definition: shamd5.c:461
void SHAMD5ConfigSet(uint32_t ui32Base, uint32_t ui32Mode)
Definition: shamd5.c:425
void SHAMD5IntUnregister(uint32_t ui32Base)
Definition: shamd5.c:353
bool SHAMD5DataProcess(uint32_t ui32Base, uint8_t *pui8DataSrc, uint32_t ui32DataLength, uint8_t *pui8HashResult)
Definition: shamd5.c:796
void SHAMD5IntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Definition: shamd5.c:319
void SHAMD5HMACPPKeyGenerate(uint32_t ui32Base, uint8_t *pui8Key, uint8_t *pui8PPKey)
Definition: shamd5.c:942