[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src
On Thu, Aug 30, 2012 at 11:44:41AM -0400, Christos Zoulas wrote:
> | memcmp() promises to be usable for alphabetical sorting which would make
> | a constant-time algorithm needlessly complicated and is not of use for
> | the intended applications.
> memcmp() does not promise alphabetical sorting. It just promises to do the
> byte comparison as unsigned so that the results are consistent. It is not
> complicated to do this at all, for example:
> consttime_memcmp(const void *s1, const void *s2, size_t n)
so, I evidently missed this: what's "consttime" about this?
David A. Holland
Main Index |
Thread Index |