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 07:47:45 -07:00
2015-05-28 10:43:57 +02:00
2015-08-02 09:36:52 +08:00
2015-10-17 21:25:30 +02:00
2015-10-17 21:25:30 +02:00
2015-10-11 12:56:20 +02:00
2015-05-09 10:08:51 +02:00
2013-04-25 22:51:19 -07:00
2015-10-12 15:12:31 +02:00
2014-12-31 19:05:32 +01:00
2013-06-06 13:11:30 -07:00
2013-01-19 16:02:02 -08:00
2015-08-31 02:47:21 +02:00
S
Description
No description provided
Readme ISC
16 MiB
Languages
C 93%
Shell 1.8%
M4 1.5%
Zig 1.3%
Assembly 1.1%
Other 1.2%