Re: streql - Constant-time string comparison
On Sun, Nov 2, 2014 at 12:39 AM, Leslie S Satenstein
> Please explain from where or how you get xlen and ylen.
> Do you make a complete pass through the string looking for a NULL character?
> If you do, then you are going to check your string once for the length, and
> once for the matching.
The original source:
Note this line:
if (!PyArg_ParseTuple(args, "et#et#", "utf8", &x, &xlen, "utf8", &y,
&ylen)) return NULL;
Riley is under the impression that Python strings are counted, rather
than NUL-terminated. Given the answers to
I'm pretty sure he's right.