lib/isc/sha1.c
/*!
 * Run your data through this.
 */
Run your data through this.
Run your data through this .
void
isc_sha1_update(isc_sha1_t *context, const unsigned char *data,
		unsigned int len)
{
	unsigned int i, j;
	INSIST(context != 0);
	INSIST(data != 0);
	j = context->count[0];
	if ((context->count[0] += len << 3) < j)
		context->count[1] += (len >> 29) + 1;
	j = (j >> 3) & 63;
	if ((j + len) > 63) {
		(void)memcpy(&context->buffer[j], data, (i = 64 - j));
		transform(context->state, context->buffer);
		for (; i + 63 < len; i += 64)
			transform(context->state, &data[i]);
		j = 0;
	} else {
		i = 0;
	}
	(void)memcpy(&context->buffer[j], &data[i], len - i);
}
void isc_sha1_update ( isc_sha1_t * context , const unsigned char * data , unsigned int len ) { unsigned int i , j ; INSIST ( context != 0 ) ; INSIST ( data != 0 ) ; j = context -> count [ 0 ] ; if ( ( context -> count [ 0 ] += len << 3 ) < j ) context -> count [ 1 ] += ( len >> 29 ) + 1 ; j = ( j >> 3 ) & 63 ; if ( ( j + len ) > 63 ) { ( void ) memcpy ( & context -> buffer [ j ] , data , ( i = 64 - j ) ) ; transform ( context -> state , context -> buffer ) ; for ( ; i + 63 < len ; i += 64 ) transform ( context -> state , & data [ i ] ) ; j = 0 ; } else { i = 0 ; } ( void ) memcpy ( & context -> buffer [ j ] , & data [ i ] , len - i ) ; }
Run your data through this.
Run your data through this .