Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 50f81a5934
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (7 sloc) 0.214 kB
/* Fast C implementation of a safe string equality test. */
int c_constTimeEq(char *x, char *y, int length) {
int ret = 0, i;
for (i = 0; i < length; i++)
ret = ret | x[i] ^ y[i];
return ret;
}
Jump to Line
Something went wrong with that request. Please try again.