Commit Graph

1341 Commits

Author SHA1 Message Date
Frank Denis
87972313d6 Do not export sysrandom symbols on Emscripten 2015-01-17 14:27:37 +01:00
Frank Denis
fa25d38288 Export _crypto_pwhash_scryptsalsa208sha256_ll 2015-01-17 12:42:51 +01:00
Frank Denis
c1b813c16a Emscripten: reserve space for 8 function pointers 2015-01-17 12:37:21 +01:00
Frank Denis
29285cd87b Decapitalize 2015-01-15 22:31:50 +01:00
Frank Denis
2ebf1ce288 Merge pull request #235 from mhamrle/master
Use bash for NDK make toolchain
2015-01-15 22:27:32 +01:00
Martin Hamrle
17247f7c99 Use bash for NDK make toolchain 2015-01-15 18:34:27 +01:00
Frank Denis
2c15c81ba5 Revert 17932c782e
It broke compilation on OpenBSD.
2015-01-15 16:21:09 +01:00
Frank Denis
9a386d0a6d Test crypto_box[_open]_easy_afternm() with short and overflowing lengths 2015-01-15 14:37:26 +01:00
Frank Denis
9b85fddfa9 Abort if the JS tests don't pass 2015-01-15 11:26:46 +01:00
Frank Denis
f20ecbed94 Skip sodium_utils{2,3} tests when the target is Javascript 2015-01-15 11:12:58 +01:00
Frank Denis
cd67cb17e5 Emscripten: add a file to mark that the build completed, for libsodium.js 2015-01-15 10:59:06 +01:00
Frank Denis
820a2b70e3 Move macros up 2015-01-15 00:51:53 +01:00
Frank Denis
2a562f8986 Proper overlapping check; memmove() was called when it was superfluous. 2015-01-15 00:44:28 +01:00
Frank Denis
cb73ed5fe8 msvc version bump 2015-01-14 20:08:18 +01:00
Frank Denis
69d9553ec2 Test crypto_sign_open() with NULL as a pointer to the message size 2015-01-14 19:59:44 +01:00
Frank Denis
956d4c4ada Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Use io.js instead of node, if available.
2015-01-14 17:44:00 +01:00
Frank Denis
671b92d1c9 Remove quotes, add version for the Coverity-Travis integration 2015-01-14 17:43:38 +01:00
Frank Denis
36d3d7cb5b Use io.js instead of node, if available. 2015-01-14 08:20:17 +01:00
Frank Denis
f0b76de13e chacha20: counting the remaining bytes in a block doesn't require ULL 2015-01-13 20:43:27 +01:00
Frank Denis
f580fcfa92 Sync reduced rounds versions of salsa20 with supercop 2015-01-13 19:36:50 +01:00
Frank Denis
0fef202b37 Wipe the last salsa20 block in the reduced rounds versions 2015-01-13 19:18:50 +01:00
Frank Denis
ab4171e37f Error checking 2015-01-13 16:26:58 +01:00
Frank Denis
8ba7fbd062 Mention that sodium_alloc() can be used with sodium data structures
And explain how to deal with crypto_generichash_state
2015-01-13 11:04:39 +01:00
Frank Denis
43e9187e87 Update ChangeLog 2015-01-12 16:27:51 +01:00
Frank Denis
5b8c2de267 Version bump 2015-01-12 09:41:46 +01:00
Frank Denis
c08cbe45ec Ignore Vagrantfile 2015-01-09 20:02:20 +01:00
Frank Denis
6104af1189 Add new tests for the crypto_box_*() precomputed interface 2015-01-06 21:18:36 +01:00
Frank Denis
2d380c97f3 Move prototypes of functions requiring padding together 2015-01-06 18:28:07 +01:00
Frank Denis
2262a592e6 Export the precomputed interface to emscripten 2015-01-06 17:59:52 +01:00
Frank Denis
aaf5fbf2e5 + precomputed interface for crypto_box() 2015-01-06 17:52:42 +01:00
Frank Denis
fab8a0b55f Indentation 2015-01-06 17:22:12 +01:00
Frank Denis
49f87845b7 Missing #include for sodium_memzero() 2015-01-04 20:02:03 +01:00
Frank Denis
16f32cf1a5 Wipe the shared key in crypto_box() and crypto_secretbox()
The _easy and _detached interfaces already did this.
2015-01-04 18:29:17 +01:00
Frank Denis
cbc1b89181 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Thanks @harleqin (Lisp CFFI bindings)
2014-12-31 19:05:40 +01:00
Frank Denis
796cb10846 2015 2014-12-31 19:05:32 +01:00
Frank Denis
96d977e266 Thanks @harleqin (Lisp CFFI bindings) 2014-12-30 02:23:38 +01:00
Frank Denis
26f87e266e Let sodium_malloc() and friends work on systems without protected memory.
On these systems, they become simple aliases for malloc() and friends.

Canaries could be added, but adding too much bloat for these rare systems
is probably not worth it, and malloc debuggers are better tools to use.
2014-12-29 23:23:33 +01:00
Frank Denis
17932c782e Merge pull request #224 from JackWink/feature/jack/pie-linker-flag
Add '-Wl,-pie' check to squash clang warnings
2014-12-29 01:26:24 +01:00
Frank Denis
cae09d458a Let crypto_sign_open() accept NULL for the message length pointer
Ditto for edwards25519sha512batch for consistency
Add a _p suffix to lengths that are actually pointers for clarity
2014-12-28 21:34:59 +01:00
Jack Wink
f87ef76ee8 remove extra pie check 2014-12-28 13:19:07 -05:00
Jack Wink
1ce56adbef a second stab at detecting valid linker flags 2014-12-28 13:17:09 -05:00
Jack Wink
9c9d1edf74 check to see if '-Wl,-pie' is supported before using it 2014-12-28 12:59:53 -05:00
Jack Wink
6ebf4030f8 change '-pie' to '-Wl,-pie' to squash clang errors 2014-12-28 12:27:35 -05:00
Frank Denis
4cd1d03a28 Use relative paths in sodium.h
This make it easier to use sodium when bundled with another project.
2014-12-27 09:15:02 +01:00
Frank Denis
c7492a4bae Make IPHONEOS_VERSION_MIN overridable 2014-12-26 23:01:38 +01:00
Frank Denis
d5ad99fed6 Retry if open(2) is interrupted; set the CLOEXEC flag as well.
Also retry if read(2) returns EAGAIN. This shouldn't happen in blocking mode,
but it can't hurt either.
2014-12-25 12:30:14 +01:00
Frank Denis
4c4d04bb2a Merge pull request #222 from stellar/master
Add libsodium-uninstalled.pc.in
2014-12-25 10:56:17 +01:00
Frank Denis
3a9c4f2c78 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Warn that libtool might fail if the build directory contains whitespaces
2014-12-23 20:26:29 +01:00
Frank Denis
c6e93b9f79 Discourage use of --enable-blocking-random 2014-12-23 20:24:23 +01:00
Graydon Hoare
9ae403b489 Add libsodium-uninstalled.pc.in 2014-12-22 16:14:22 -08:00