/* Use a "constant-length" time compare function for this hash compare: */
static int slow_equals(u8 *a, u8 *b, int len)
/* Use a "constant-length" time compare function for this hash compare: */
static int slow_equals(u8 *a, u8 *b, int len)
{
	int diff = 0;
	int i;
	for (i = 0; i < len; i++)
		diff |= a[i] ^ b[i];
	return diff == 0;
}