Commit Graph
13 Commits
Author SHA1 Message Date
Frank Denis 2483af0384 Make hash_sha512 / hmac_sha512256 consistent with hash_sha256 / hmac_sha256 2014-04-14 20:42:37 -07:00
Frank Denis 030fac65a8 Remove wrappers 2014-04-10 23:12:28 -07:00
Frank Denis a2fc728956 Let crypto_pwhash_scryptxsalsa208sha256 use crypto_auth_hmacsha256 2014-04-10 23:12:27 -07:00
Frank Denis 41e66896c8 Disable long long warnings when compiled with an old g++ version. 2013-12-31 15:20:02 +01:00
Stephen Touset 8eea4a3f74 Add functions exposing constants for all operation/primitive pairs
Wrappers for other languages can't access constants defined by C
preprocessor macros, so they must be exposed as functions. This was
already done for the "default" implementation of each operation, but
this commit adds functions for (almost) all of the underlying
primitives.

A few are currently excluded due to problems with the automated script
used to generated this commit. They are:

  * crypto_onetimeauth_poly1305
  * crypto_generichash_blake2b
  * crypto_verify16
  * crypto_verify32
2013-05-16 13:17:18 -07:00
Frank Denis cfe3f24964 sizes are unsigned. 2013-04-27 04:41:34 -07:00
Frank Denis 6e3e997faa Export the primitive themselves, not the implementations. 2013-04-22 17:18:19 -07:00
Frank Denis 61c4f21c97 Add SODIUM_EXPORT to all functions that need to be visible. 2013-04-21 17:32:10 -07:00
Frank Denis 6db3177585 Include export.h everywhere. 2013-04-21 17:32:10 -07:00
Frank Denis 4d953b1d97 Add missing extern "C" 2013-04-21 17:32:09 -07:00
Frank Denis e53e0895e7 Remove *_implementation_ macros.
They are identical for all implementations of a given primitive and
it's bound to always be the case.
We will eventually pick suitable implementations at run-time, so
these won't make any sense.
Remove implementation names/versions macros as well.
These should be functions, not macros.
2013-04-16 10:59:40 +02:00
Frank Denis 8f83466c87 Don't include <string> when parsing headers as C++ code. 2013-03-18 23:29:58 -07:00
Douglas Campos ee16bc6e6c rename libnacl-ref -> libsodium 2013-01-20 17:23:32 -02:00