Commit Graph
307 Commits
Author SHA1 Message Date
Frank Denis 82046cbd5e Face it, /dev/arandom was removed from OpenBSD a loooooong time ago. 2013-10-28 10:59:51 -07:00
Frank Denis afb89c7e16 Some systems have arc4random() but not arc4random_buf() 2013-10-22 02:54:45 -07:00
Frank Denis af28f8f2cd Export stream_salsa20 constants 2013-10-21 22:03:37 -07:00
Frank Denis e10a84350f Keep crypto_stream_salsa* constants close to their wrappers 2013-10-21 21:51:59 -07:00
Frank Denis 415b50d56b Package crypto_scalarmult/curve25519/scalarmult_curve25519_api.c 2013-10-21 21:44:03 -07:00
Frank Denis a5834e1e25 Use arc4random() if available in onetimeauth_poly1305_try.c 2013-10-21 21:11:06 -07:00
Frank Denis 696934b123 _sodium_alignedcalloc(): use arc4random_buf() if available 2013-10-21 21:07:39 -07:00
Frank Denis f9aff06dc0 Remove all use of booleans. Because MSVC < 2013. Sigh. 2013-10-21 17:49:48 -07:00
Frank Denis afa49d340c Add stdbool.h for old MSVC. 2013-10-14 17:15:50 -07:00
Frank Denis 81321c8809 Define _SODIUM_C99 as empty on retarded compilers, not only when using C++ 2013-10-14 16:45:02 -07:00
Frank Denis fcf4b21149 sha256 IV should be unsigned chars. 2013-10-14 13:43:12 -07:00
Frank Denis 8fa91a91ab Cast CryptGenRandom pointer to (BYTE *) to make MSVC happy when compiling as a C++ project 2013-10-14 13:40:54 -07:00
Frank Denis 6df6be8911 Remove some unneeded includes 2013-10-14 13:38:36 -07:00
Frank Denis 64729711c4 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Fixed sodium.h install
2013-10-13 12:50:00 -07:00
Frank Denis bd8cbd3175 Make curve25519-donna-c64 handle non-canonical points like the ref implementation. 2013-10-13 12:49:15 -07:00
xantares c6cd95f716 Fixed sodium.h install 2013-10-12 23:46:37 +02:00
xantares 5f5c82aa2f Fixed headers install 2013-10-10 23:03:07 +02:00
xantares 8d0942d5b1 Do not include configured headers 2013-10-09 20:57:32 +02:00
xantares e2a30a859d Fixed libsodium.def dependency 2013-10-09 19:22:23 +02:00
Frank Denis 9599289ae0 Use HAVE_TI_MODE in portable-jane.h to use (or not) int128_t 2013-10-08 13:10:16 -07:00
Frank Denis 5ae6712192 More C89 compat 2013-10-07 19:58:06 -07:00
Frank Denis 1e4157ad19 blake2b: use only pre-C99 style declarations. 2013-10-07 19:46:32 -07:00
Frank Denis 82c7b125af Define an empty SODIUM_EXPORT if SODIUM_STATIC is defined. 2013-10-07 19:32:58 -07:00
Frank Denis 8fbbb98847 Be consistent, keep macros and related functions next to each other. 2013-10-05 14:11:57 -07:00
Frank Denis 5e4e3c9ecf Add an empty line. Yeah, that's a fantastic commit. 2013-10-05 14:08:03 -07:00
Frank Denis 8effa1ea88 Export scalarmult_curve25519 constants 2013-10-05 14:06:09 -07:00
Frank Denis 71489f447a Make MSVC parser not panic when it parses a long literal.
Just use the scientific notation instead.
Found by @sneves, thanks!
2013-10-04 14:48:33 -07:00
Frank Denis 32a8591985 Fix randombytes_salsa20_random.c for MSVC 2013-09-24 14:20:52 -07:00
Frank Denis 26d108d468 MSVC fixes for randombytes_sysrandom.c 2013-09-24 14:09:26 -07:00
Frank Denis ad49d05a8b Match randombytes() prototype with declaration. 2013-09-24 14:06:26 -07:00
Frank Denis 18015e71e2 randombytes_stir() returns void 2013-09-24 14:05:34 -07:00
Frank Denis 02bb86d18b MSVC/portable-jane.h: don't redefine _CRT_SECURE_NO_WARNINGS 2013-09-24 13:42:23 -07:00
Frank Denis 8086d6f696 blake2: remove more declarations in for() for MSVC 2013-09-24 13:38:02 -07:00
Frank Denis 14809c12c4 MSVC doesn't like a definition in a for() loop. 2013-09-24 13:28:31 -07:00
Frank Denis c43440f01c More fixes for big-endian architectures 2013-09-21 19:43:39 -07:00
Frank Denis c19b0128e2 Add aes256-table-be.h to the Makefile 2013-09-21 18:56:24 -07:00
Frank Denis 29f81d167c aes256 table for big endian 2013-09-21 18:55:36 -07:00
Frank Denis 15f87c1c90 Reformat aes-table-le.h 2013-09-21 18:50:59 -07:00
Frank Denis 5dd623e96d Move endian-dependent aes256estream/aes-table.h bits to aes-table-le.h 2013-09-21 18:27:11 -07:00
Frank Denis 30e27fcd25 Make aes256estream implementation less LE dependant. BE Sbox coming up next. 2013-09-21 15:27:34 -07:00
Frank Denis b03a2991b2 Add crypto_onetimeauth_poly1305_ref() wrapper. 2013-09-09 22:17:54 -07:00
Frank Denis 554ad5bb6c Remove ALIGN definition from portable-jane.h
A macro of the same name is already defined by OpenBSD's libc, and the
portable-jane.h one is not in use yet.
2013-09-08 13:55:54 -07:00
Frank Denis 493f71a98a Use autoconf to possibly define CPU_ALIGNED_ACCESS_REQUIRED 2013-09-08 10:39:27 -07:00
Frank Denis 2181c087e3 Define CPU type in aes256ctr.
That should be changed to an autoconf test.
2013-09-08 10:01:32 -07:00
Frank Denis 05d6defd77 Quick quirk to support unaligned input for aes256estream. 2013-09-07 16:40:51 -07:00
Frank Denis 82d97ce5fb aes256estream: don't assume that unaligned words can be read (for the input) 2013-09-07 16:13:16 -07:00
Frank Denis 69641010c9 Reindent aes256.h, remove commented code 2013-09-07 16:02:24 -07:00
Frank Denis 25c9a00868 Add explicit "const" when casting pointers. No binary changes.
By Massimo Cetra.
2013-09-07 15:39:03 -07:00
Frank Denis df5a4f56c3 aes256-hongjun: move partial_precompute_tworounds() out of aes256.h 2013-09-07 15:26:46 -07:00
Frank Denis ecff56742b Rename crypto_onetimeauth_poly1305_ref_implementation_name() prototype. 2013-09-07 15:21:37 -07:00