Commit Graph

216 Commits

Author SHA1 Message Date
Frank Denis
6ec9828b9f Reindent 2013-04-26 22:19:24 -07:00
Frank Denis
0f68434d68 Visual C++ compat is neat, except when it breaks everything else. 2013-04-26 21:59:31 -07:00
Frank Denis
73f68e27ca Add missing return in crypto_stream_aes256estream_beforenm() 2013-04-26 21:55:10 -07:00
Frank Denis
1706d63d65 More Visual C++ compat 2013-04-26 21:48:05 -07:00
Frank Denis
7f7eaf76b0 Missing #include "randombytes.h" 2013-04-26 21:47:19 -07:00
Frank Denis
330fb494e1 More Visual C++ compat 2013-04-26 21:46:57 -07:00
Frank Denis
65a30e52d4 Make ECRYPT_ctx non-anonymous 2013-04-26 21:43:20 -07:00
Frank Denis
ad44ec5b15 Don't use C99isms on Visual C++. 2013-04-26 21:41:32 -07:00
Frank Denis
47bb35cb8b Make struct crypto_generichash_blake2b_state non-anonymous 2013-04-26 21:29:53 -07:00
Frank Denis
bd6fb7e03c style 2013-04-26 21:14:12 -07:00
Frank Denis
57a4552eb1 + aes256estream 2013-04-26 21:06:34 -07:00
Frank Denis
edc5faffd6 Add more information about thread safety until we provide a thread-safe API. 2013-04-26 17:27:55 -07:00
Frank Denis
1b87626e9f Move randombytes_stir() before returning sodium_init(). 2013-04-26 17:05:23 -07:00
Frank Denis
8de0ae0e73 Call randombytes_stir() in sodium_init(). 2013-04-26 17:03:50 -07:00
Frank Denis
076eb56e24 Set initialized=1 when everything has actually been initialized 2013-04-26 17:02:53 -07:00
Frank Denis
efb3d9919f randombytes_buf() returns void. 2013-04-26 16:55:01 -07:00
Frank Denis
1e7fccf806 Sort 2013-04-26 11:26:37 -07:00
Frank Denis
6df4c3a1f3 Explicitly include sodium/crypto_scalarmult_curve25519.h.in in dist files 2013-04-26 11:25:58 -07:00
Frank Denis
65e1b792dc Don't forget SODIUM_EXPORT in version.h.in 2013-04-25 21:43:31 -07:00
Frank Denis
f0d71f9df0 Check allocate() return code. 2013-04-25 15:54:25 -07:00
Jeroen Habraken
eeab6bd2ce The "__attribute__((always_inline))" attribute does not replace "inline", they need to be used togher. This fixes the "warning: always_inline function might not be inlinable [-Wattributes]" warnings emitted by GCC 4.7. 2013-04-24 13:58:35 -05:00
Frank Denis
18369c960f Don't forget exporting symbols from crypto_scalarmult_curve25519 2013-04-24 08:40:43 -07:00
Frank Denis
b381f42d17 Move blake2 own functions to the crypto_generichash_blake2b namespace 2013-04-24 08:10:15 -07:00
Frank Denis
30909a7dea Fix DISTCLEANFILES 2013-04-23 22:57:05 -07:00
Frank Denis
f41677ef2e Remove extra leading spaces 2013-04-23 22:54:14 -07:00
Frank Denis
655a9589b8 Output .DEF file on Win32 2013-04-23 21:24:35 -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
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
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
e11c852ab3 Fix bad typo in the crypto_box wrapper 2013-04-22 11:20:45 -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