| 115 | /* SHA1Init - Initialize new context */ |
| 116 | |
| 117 | void SHA1Init(SHA1_CTX* context) |
| 118 | { |
| 119 | /* SHA1 initialization constants */ |
| 120 | context->state[0] = 0x67452301; |
| 121 | context->state[1] = 0xEFCDAB89; |
| 122 | context->state[2] = 0x98BADCFE; |
| 123 | context->state[3] = 0x10325476; |
| 124 | context->state[4] = 0xC3D2E1F0; |
| 125 | context->count[0] = context->count[1] = 0; |
| 126 | } |
| 127 | |
| 128 | |
| 129 | /* Run your data through this. */ |