Files
libsodium/test/default
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
..
2015-10-14 15:54:27 +02:00
2015-10-11 12:56:20 +02:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2014-04-14 21:34:55 -07:00
2014-04-14 21:34:55 -07:00
2014-09-16 20:01:58 -07:00
2014-09-16 20:01:58 -07:00
2014-09-14 11:32:55 -07:00
2013-12-31 18:37:36 +01:00
2015-04-17 01:01:32 +02:00
2015-04-17 01:01:32 +02:00
2014-09-14 11:32:55 -07:00
2014-09-16 20:01:58 -07:00
2014-09-16 20:01:58 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2015-01-23 11:17:40 +01:00
2015-10-11 12:56:20 +02:00
2014-09-14 11:32:55 -07:00
2014-09-14 12:43:53 -07:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2015-09-21 16:05:53 +02:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2015-09-09 17:42:38 +02:00
2014-05-07 23:23:13 -07:00
2015-10-17 21:25:30 +02:00
2015-06-22 15:44:58 +02:00
2014-09-14 11:32:55 -07:00
2014-09-14 11:32:55 -07:00
2015-02-02 21:27:19 +01:00
2014-04-08 14:36:09 -07:00