req/binject/ext/binject_c/checksum.c
void SHA1Update(SHA1_CTX* context, const unsigned char* data, unsigned int len)
{
unsigned int i, j;

    j = (context->count[0] >> 3) & 63;
    if ((context->count[0] += len << 3) < (len << 3)) context->count[1]++;
    context->count[1] += (len >> 29);
    if ((j + len) > 63) {
        memcpy(&context->buffer[j], data, (i = 64-j));
        SHA1Transform(context->state, context->buffer);
        for ( ; i + 63 < len; i += 64) {
            SHA1Transform(context->state, &data[i]);
        }
        j = 0;
    }
    else i = 0;
    memcpy(&context->buffer[j], &data[i], len - i);
}
/* Run your data through this. */
Run your data through this.
Run your data through this .
void SHA1Update(SHA1_CTX* context, const unsigned char* data, unsigned int len)
{
unsigned int i, j;
    j = (context->count[0] >> 3) & 63;
    if ((context->count[0] += len << 3) < (len << 3)) context->count[1]++;
    context->count[1] += (len >> 29);
    if ((j + len) > 63) {
        memcpy(&context->buffer[j], data, (i = 64-j));
        SHA1Transform(context->state, context->buffer);
        for ( ; i + 63 < len; i += 64) {
            SHA1Transform(context->state, &data[i]);
        }
        j = 0;
    }
    else i = 0;
    memcpy(&context->buffer[j], &data[i], len - i);
}
void SHA1Update ( SHA1_CTX * context , const unsigned char * data , unsigned int len ) { unsigned int i , j ; j = ( context -> count [ 0 ] >> 3 ) & 63 ; if ( ( context -> count [ 0 ] += len << 3 ) < ( len << 3 ) ) context -> count [ 1 ] ++ ; context -> count [ 1 ] += ( len >> 29 ) ; if ( ( j + len ) > 63 ) { memcpy ( & context -> buffer [ j ] , data , ( i = 64 - j ) ) ; SHA1Transform ( context -> state , context -> buffer ) ; for ( ; i + 63 < len ; i += 64 ) { SHA1Transform ( context -> state , & data [ i ] ) ; } j = 0 ; } else i = 0 ; memcpy ( & context -> buffer [ j ] , & data [ i ] , len - i ) ; }
Run your data through this.
Run your data through this .