Initialize new context */
| 110 | |
| 111 | /* Initialize new context */ |
| 112 | void sha1_init(sha1_context* context) |
| 113 | { |
| 114 | context->count = 0; |
| 115 | /* SHA1 initialization constants */ |
| 116 | context->state[0] = 0x67452301; |
| 117 | context->state[1] = 0xEFCDAB89; |
| 118 | context->state[2] = 0x98BADCFE; |
| 119 | context->state[3] = 0x10325476; |
| 120 | context->state[4] = 0xC3D2E1F0; |
| 121 | } |
| 122 | |
| 123 | |
| 124 | /* Run your data through this. */ |