vendor/libmcrypt/libmcrypt-2.5.8/modules/modes/ctr.c
static void increase_counter( byte *x, int x_size) {
register int i, y=0;

	for (i=x_size-1;i>=0;i--) {
		y = 0;
		if ( x[i] == 0xff) {
			x[i] = 0;
			y = 1;
		} else x[i]++;

		if (y==0) break;
	}

	return;
}
/* This function will add one to the given number (as a byte string).
 * has been reached.
 */
This function will add one to the given number (as a byte string).
has been reached.
This function will add one to the given number ( as a byte string ) . has been reached .
static void increase_counter( byte *x, int x_size) {
register int i, y=0;
	for (i=x_size-1;i>=0;i--) {
		y = 0;
		if ( x[i] == 0xff) {
			x[i] = 0;
			y = 1;
		} else x[i]++;
		if (y==0) break;
	}
	return;
}
static void increase_counter ( byte * x , int x_size ) { register int i , y = 0 ; for ( i = x_size - 1 ; i >= 0 ; i -- ) { y = 0 ; if ( x [ i ] == 0xff ) { x [ i ] = 0 ; y = 1 ; } else x [ i ] ++ ; if ( y == 0 ) break ; } return ; }
This function will add one to the given number (as a byte string).
This function will add one to the given number ( as a byte string ) .