libsodium/test
Frank Denis d667efde68 Add sodium_compare()
A constant-time version of memcmp(), useful to compare nonces and counters
in little-endian format, that plays well with sodium_increment().

Unlike sodium_memcmp() which can compare anything for equality,
sodium_compare() is designed to compare things that are comparable, byte by
byte. Therefore, the prototype is slightly different: its arguments are
supposed to be `const unsigned char *`.

The names sodium_memcmp() and sodium_compare() are slightly confusing.
But we're not going to rename sodium_memcmp(), and I cannot think of a
better name for sodium_compare() than sodium_compare().
2015-10-17 21:25:30 +02:00
..
default Add sodium_compare() 2015-10-17 21:25:30 +02:00
quirks Import moved quirks.h 2015-01-23 11:02:13 +01:00
Makefile.am quirks\windows\windows-quirks.h -> quirks\quirks.h 2015-01-23 10:35:20 +01:00