| 180 | /* SHA1Init - Initialize new context */ |
| 181 | |
| 182 | void SHA1Init( |
| 183 | SHA1_CTX * context |
| 184 | ) |
| 185 | { |
| 186 | /* SHA1 initialization constants */ |
| 187 | context->state[0] = 0x67452301; |
| 188 | context->state[1] = 0xEFCDAB89; |
| 189 | context->state[2] = 0x98BADCFE; |
| 190 | context->state[3] = 0x10325476; |
| 191 | context->state[4] = 0xC3D2E1F0; |
| 192 | context->count[0] = context->count[1] = 0; |
| 193 | } |
| 194 | |
| 195 | |
| 196 | /* Run your data through this. */ |