| 54 | } |
| 55 | |
| 56 | void SHA1Input(SHA1Context *context, const char *message_array, int len) |
| 57 | { |
| 58 | int i, count; |
| 59 | |
| 60 | count = context->count[0] + 8 * len; |
| 61 | if (count < context->count[0]) |
| 62 | context->count[1]++; |
| 63 | |
| 64 | context->count[0] = count; |
| 65 | context->count[1] += len >> 29; |
| 66 | |
| 67 | for (i = len; i >= 64; i -= 64) { |
| 68 | memcpy(context->buffer, message_array, sizeof(context->buffer)); |
| 69 | SHA1ProcessMessageBlock(context); |
| 70 | message_array += 64; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | void SHA1ProcessMessageBlock(SHA1Context *context) |
| 75 | { |
no test coverage detected