Run your data through this. */
| 123 | |
| 124 | /* Run your data through this. */ |
| 125 | void sha1_process( sha1_context * context, const unsigned char * data, size_t len) |
| 126 | { |
| 127 | size_t i, j = (size_t)(context->count & 63); |
| 128 | context->count += len; |
| 129 | |
| 130 | if ((j + len) > 63) |
| 131 | { |
| 132 | memcpy(context->buffer+j, data, (i = 64-j)); |
| 133 | uint32 workspace[16]; |
| 134 | SHA1Transform(context->state, workspace, context->buffer, true); |
| 135 | for ( ; i + 63 < len; i += 64) |
| 136 | SHA1Transform(context->state, workspace, data+i, false); |
| 137 | j = 0; |
| 138 | } |
| 139 | else |
| 140 | i = 0; |
| 141 | if (len > i) |
| 142 | memcpy(context->buffer+j, data+i, len - i); |
| 143 | } |
| 144 | |
| 145 | |
| 146 | void sha1_process_rar29(sha1_context *context, const unsigned char *data, size_t len) |
no test coverage detected