32 #ifndef ___SHA1_HDR___ 33 #define ___SHA1_HDR___ 35 #if !defined(SHA1_UTILITY_FUNCTIONS) && !defined(SHA1_NO_UTILITY_FUNCTIONS) 36 #define SHA1_UTILITY_FUNCTIONS 42 #ifdef SHA1_UTILITY_FUNCTIONS 56 #if !defined(SHA1_LITTLE_ENDIAN) && !defined(SHA1_BIG_ENDIAN) 57 #define SHA1_LITTLE_ENDIAN 64 #if !defined(SHA1_WIPE_VARIABLES) && !defined(SHA1_NO_WIPE_VARIABLES) 65 #define SHA1_WIPE_VARIABLES 103 #ifdef SHA1_UTILITY_FUNCTIONS 118 uint32_t __reserved1[1];
119 uint8_t m_buffer[64];
120 uint8_t m_digest[20];
121 uint32_t __reserved2[3];
126 void Update(
const uint8_t *data, uint32_t len);
127 #ifdef SHA1_UTILITY_FUNCTIONS 128 bool HashFile(
char *szFileName);
135 #ifdef SHA1_UTILITY_FUNCTIONS 136 void ReportHash(
char *szReport,
unsigned char uReportType = REPORT_HEX);
138 void GetHash(uint8_t *puDest);
142 void Transform(uint32_t *state,
const uint8_t *buffer);
145 uint8_t m_workspace[64];