Commit Graph

1314 Commits

Author SHA1 Message Date
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
Frank Denis
0b58f87fef Warn that libtool might fail if the build directory contains whitespaces 2014-12-21 09:51:32 +01:00
Frank Denis
b5e1a5afc1 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  C++ compat
  Use guarded memory for the box_easy/box_detached tests.
2014-12-20 17:16:38 +01:00
Frank Denis
c795108686 + Eric Dong 2014-12-20 17:16:27 +01:00
Frank Denis
bfcd1612c7 C++ compat 2014-12-18 00:12:50 +01:00
Frank Denis
9036d62fc9 Use guarded memory for the box_easy/box_detached tests. 2014-12-18 00:00:19 +01:00
Frank Denis
9af34c5766 Compile for armv7s 2014-12-16 19:33:58 +01:00
Frank Denis
e7a84c9e84 We always need to allocate aligned memory 2014-12-12 08:52:05 -08:00
Frank Denis
9b27460618 We always need a page size 2014-12-12 08:51:47 -08:00
Frank Denis
453c687239 Merge pull request #219 from clowwindy/fix_ios_build
Build Both i386 and x86_64 for iOS Simulator
2014-12-12 07:58:52 -08:00
clowwindy
b97c7f4f88 build both i386 and x86_64 for iOS simulator 2014-12-12 16:43:55 +08:00
clowwindy
d5acdd7f40 fix typo 2014-12-12 16:35:38 +08:00
Frank Denis
32cf1d50fa Since we're compiling for OSX, run the test suite. 2014-12-11 00:35:31 -08:00
Frank Denis
ba3fdb4790 Display what the fat library contains 2014-12-10 21:43:55 -08:00
Frank Denis
a96eb971b4 If the OSX code in ios.sh is just for the simulator, using -Oz is fine 2014-12-10 21:41:31 -08:00
Frank Denis
f2b034867e dist-build/ios: remove existing headers 2014-12-10 21:40:49 -08:00
Frank Denis
1ee6da8107 Make the output more readable 2014-12-10 21:27:10 -08:00
Frank Denis
d8deef19ef Use make distclean for cleanup; tell the user where it's been installed 2014-12-10 21:23:24 -08:00
Frank Denis
d050dbbed5 Cleanup -> make distclean 2014-12-10 21:22:01 -08:00
Frank Denis
997485ac22 Use the same options on OSX and iOS 2014-12-10 21:21:15 -08:00
Frank Denis
d38d5167e4 Merge pull request #218 from JackWink/feature/jack/update-ios-build
iOS.sh: Update script to include arm64 and current OSX architecture in generated libsodium.a
2014-12-10 21:18:03 -08:00
Jack Wink
28edcc1885 update iOS build script to include arm64 and current OSX machine arch 2014-12-11 00:17:10 -05:00
Frank Denis
b1cac74b00 We can still directly call _mprotect_readwrite() instead of the high-level function. 2014-12-07 14:59:32 -08:00
Frank Denis
5e364632e0 Make sodium_free() callable even if protection is PROT_NONE.
Reported by @stouset, thanks!
2014-12-07 14:52:44 -08:00
Frank Denis
b53f5c7f74 The node binary was renamed nodejs on Ubuntu. 2014-12-04 10:28:49 -08:00
Frank Denis
4aac60f9a2 Ship android-armv7.sh 2014-12-01 19:47:04 -08:00
Frank Denis
4c1073e4e5 Exporting crypto_box and crypto_secretbox doesn't make sense in Javascript. 2014-11-30 20:00:10 -08:00
Frank Denis
e5024c368f Remove obsolete, undocumented compatibility layer with Sodium 0.5 2014-11-30 19:57:41 -08:00