Commit Graph

288 Commits

Author SHA1 Message Date
Frank Denis
e53b67924b Looks like AC_LIBTOOL_WIN32_DLL is still required these days. 2013-04-23 21:33:58 -07:00
Frank Denis
655a9589b8 Output .DEF file on Win32 2013-04-23 21:24:35 -07:00
Frank Denis
8dcebd3590 Import m4/ld-output-def.m4 2013-04-23 21:16:24 -07:00
Frank Denis
60e8d3c6da No need to define crypto_hash_sha512 as a macro, it's a real function. 2013-04-23 20:38:39 -07:00
Frank Denis
0b4affc436 Add a big fat warning to crypto_stream* 2013-04-23 14:28:51 -07:00
Frank Denis
c6802aa343 Add some documentation. 2013-04-23 14:18:45 -07:00
Frank Denis
51fb0f4c64 Add sodium_memcmp() 2013-04-23 11:56:10 -07:00
Frank Denis
313e440209 crypto_verify compat 2013-04-23 11:34:56 -07:00
Frank Denis
6777368185 crypto_stream_xsalsa20 compat 2013-04-23 11:32:15 -07:00
Frank Denis
44ad99f7f6 crypto_sign_ed25519_ref compat 2013-04-23 08:31:57 -07:00
Frank Denis
5e0193b8a1 Export sodium_library_version_*() not sodium_version_*() as intended. 2013-04-23 04:55:42 -07:00
Frank Denis
03120406e3 crypto_hash compat 2013-04-22 22:49:53 -07:00
Frank Denis
db8e3dc472 crypto_box compat 2013-04-22 22:34:36 -07:00
Frank Denis
977c4e8c70 Add crypto_scalarmult compat 2013-04-22 22:26:48 -07:00
Frank Denis
393aa1a229 crypto_box_curve25519xsalsa20poly1305_ref compat 2013-04-22 22:15:19 -07:00
Frank Denis
cb7c294cb8 Start a compat layer 2013-04-22 22:03:16 -07:00
Frank Denis
1b0328610f Remaining changes to export primitives, not implementations. 2013-04-22 17:22:40 -07:00
Frank Denis
6e3e997faa Export the primitive themselves, not the implementations. 2013-04-22 17:18:19 -07:00
Frank Denis
e144f9d40d crypto_hash_sha(256|512) are the exported functions that have to be exported.
_ref are implementations, that shouldn't be exported.
2013-04-22 16:30:31 -07:00
Frank Denis
11d09e0d4e windows quirks are needed for secretbox8 test. 2013-04-22 13:17:37 -07:00
Frank Denis
245bd75753 Remove ssp by default on cygwin 2013-04-22 13:16:03 -07:00
Frank Denis
7356770dbe Another random() -> rand() 2013-04-22 13:13:31 -07:00
Frank Denis
c4f75c4896 random() doesn't exist on Win32. Just use rand() 2013-04-22 13:10:11 -07:00
Frank Denis
b50e6fb5e7 Don't protect api.h against double inclusion, it's useless.
Plus, we need to use dedicated macros for that.
2013-04-22 12:47:32 -07:00
Frank Denis
b146c5150a Improve Visual C++ compat. 2013-04-22 12:35:59 -07:00
Frank Denis
c21c7eb3f7 indent 2013-04-22 11:50:20 -07:00
Frank Denis
a2eeafe2ed Update Android toolchain version 2013-04-22 11:43:35 -07:00
Frank Denis
aaf585e8e0 Update NEWS file 2013-04-22 11:41:16 -07:00
Frank Denis
e11c852ab3 Fix bad typo in the crypto_box wrapper 2013-04-22 11:20:45 -07:00
Frank Denis
429917f8d6 Quick NEWS update. 2013-04-21 17:32:10 -07:00
Frank Denis
0f3f3f8b92 No more arithmetic needed 2013-04-21 17:32:10 -07:00
Frank Denis
019064e663 Use HAVE_TI_MODE for the macro and HAVE_TI_MODE_V for the substitution 2013-04-21 17:32:10 -07:00
Frank Denis
08e08c966b Wrap crypto_onetimeauth 2013-04-21 17:32:10 -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
f44c1e477f And finally, wrap crypto_stream macros 2013-04-21 17:32:10 -07:00
Frank Denis
765cad9146 Wrap crypto_sign macros 2013-04-21 17:32:10 -07:00
Frank Denis
d689a92c17 Wrap crypto_shorthash macros 2013-04-21 17:32:10 -07:00
Frank Denis
6dd19c1665 Wrap crypto_secretbox macros 2013-04-21 17:32:10 -07:00
Frank Denis
4a9a9ffeb8 Wrap crypto_scalarmult macros. 2013-04-21 17:32:10 -07:00
Frank Denis
98da611f98 Explicitly include <stdlib.h> in crypto_generichash.h for size_t 2013-04-21 17:32:09 -07:00
Frank Denis
fa7ed1faad Add macros for crypto_hash block size 2013-04-21 17:32:09 -07:00
Frank Denis
7c67c81444 Add wrappers around crypto_generichash macros 2013-04-21 17:32:09 -07:00
Frank Denis
b52f513f90 Untab, remove trailing spaces and other no-ops. 2013-04-21 17:32:09 -07:00
Frank Denis
4d953b1d97 Add missing extern "C" 2013-04-21 17:32:09 -07:00
Frank Denis
b3a1d6b967 Add function wrappers around macros, for crypto_auth and crypto_box 2013-04-21 17:32:09 -07:00
Frank Denis
9459a4b5ff Change the generichash API to better match other NaCl APIs
i.e. give a size right after the pointer.
2013-04-21 17:32:09 -07:00
Frank Denis
e56415489c Add some test vectors for the generichash streaming API 2013-04-21 17:32:09 -07:00
Frank Denis
5e748bbc8c Add a streaming interface to crypto_generichash 2013-04-21 17:32:09 -07:00
Frank Denis
76cb00d56f Add export.h to define SODIUM_EXPORT 2013-04-21 17:32:09 -07:00