1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-28 22:21:15 -07:00
Commit Graph

382 Commits

Author SHA1 Message Date
Frank Denis
816cef5de4 Hide getconf errors 2018-03-07 10:09:56 +01:00
joshjdevl
212187f87c using POSIX getconf for number of available processors http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getconf.html 2018-03-07 07:15:01 +00:00
Daniel Persson
c7f0f05209 I turned it around. 2018-03-06 21:20:17 +01:00
Daniel Persson
9d582340c4 Change so we set depending on a full build flag. 2018-03-06 21:10:05 +01:00
Daniel Persson
2f4d911300 Change so all builds will allow full builds. 2018-03-06 20:36:39 +01:00
Daniel Persson
a0cbef0a4a Added configuration option to change the configuration flags. 2018-03-06 20:27:47 +01:00
Frank Denis
6382b91060 wasm bug check: use a function more likely to be present in minimal builds 2018-03-06 10:56:46 +01:00
Frank Denis
f11ffbdd67 wasm bug check: use a function more likely to be present in minimal builds 2018-03-06 10:56:05 +01:00
Ryan Lester
bb437be60c run-time wasm test before resolving ready 2018-03-06 10:54:42 +01:00
Ryan Lester
19828dd329
run-time wasm test before resolving ready 2018-03-06 01:48:25 -05:00
Simon Warta
663c6f3af6 Remove obsolete setting FUNCTION_POINTER_ALIGNMENT
FUNCTION_POINTER_ALIGNMENT was removes from emscripten in January 2018:
https://github.com/kripken/emscripten/pull/6091
2018-03-02 11:28:50 +01:00
Simon Warta
029652e19c Remove obsolete setting FUNCTION_POINTER_ALIGNMENT
FUNCTION_POINTER_ALIGNMENT was removes from emscripten in January 2018:
https://github.com/kripken/emscripten/pull/6091
2018-03-02 11:18:38 +01:00
Frank Denis
94e04fe530 Embed bitcode in iOS builds 2018-02-24 01:48:39 +01:00
Frank Denis
5ebc0d4029 Embed bitcode in iOS builds 2018-02-24 01:47:51 +01:00
Frank Denis
046821b5c1 emscripten: do not use closure 2018-01-15 13:33:58 +01:00
Frank Denis
bc6541a70a emscripten: do not use closure 2018-01-15 13:33:33 +01:00
Frank Denis
9ebe443bc7 Who's still using XCode < 8 ? 2018-01-07 13:13:56 +01:00
Frank Denis
88c1dd29ce Disable LTO in ios/osx build scripts 2017-12-31 00:57:16 +01:00
Frank Denis
7dee41abee Disable LTO in ios/osx build scripts 2017-12-31 00:56:51 +01:00
Ryan Lester
a8aedc7ce2 updates for latest emscripten 2017-12-27 08:54:13 +01:00
Ryan Lester
4614ca754d
updates for latest emscripten 2017-12-26 22:05:08 -05:00
Frank Denis
71966fd0c6 emscripten: malloc() and free() should be exported as library symbols 2017-12-25 23:35:06 +01:00
Frank Denis
5f5d36a9bb emscripten: malloc() and free() should be exported as library symbols 2017-12-25 23:34:38 +01:00
Frank Denis
68d845e651 Export setValue, getValue 2017-12-25 23:00:08 +01:00
Frank Denis
942a6f9fa6 Export setValue, getValue 2017-12-25 22:59:41 +01:00
Frank Denis
deb4a223d2 emscripten: move the set of exported runtime methods 2017-12-25 22:35:02 +01:00
Frank Denis
387e1833d7 emscripten: move the set of exported runtime methods 2017-12-25 22:33:30 +01:00
Frank Denis
feddd3fab9 emscripten: export _malloc() and _free() 2017-12-25 22:31:39 +01:00
Frank Denis
8eba49b6a8 emscripten: export _malloc() and _free() 2017-12-25 22:31:04 +01:00
Frank Denis
a3d8450109 emscripten: export Pointer_stringify() for recent emscripten versions 2017-12-25 22:20:04 +01:00
Frank Denis
88fca4834c emscripten: export Pointer_stringify() for recent emscripten versions 2017-12-25 22:18:40 +01:00
Frank Denis
bd631649c1 Emscripten: run the tests in benchmark mode 2017-12-21 18:52:59 +01:00
Frank Denis
eeb135010d Emscripten: run the tests in benchmark mode 2017-12-21 18:51:56 +01:00
Frank Denis
a2c18ca3ba Emscripten: bump the memory up for the tests 2017-12-20 23:04:36 +01:00
Frank Denis
f34d5ef17e Emscripten: bump the memory up for the tests 2017-12-20 23:04:04 +01:00
Frank Denis
858bfd0914 Prefer the system version of nodejs to the emscripten one 2017-12-20 22:52:31 +01:00
Frank Denis
65f71fe060 Prefer the system version of nodejs to the emscripten one 2017-12-20 22:51:58 +01:00
Frank Denis
5bc564cac1 1.0.16
* master: (221 commits)
  Comment
  Comments
  msys2 build scripts: just use -Ofast
  Always prefer vararrays to alloca()
  Don't redefine alloca
  Return -1 if the scalar is 0 in crypto_scalarmult_ed25519()
  Remove trailing space
  Import the regen-msvc script
  Update ChangeLog
  Do not wipe the workspace after argon2 completes
  Remove tests for deprecated functions
  Give the compiler a change to inline index_alpha()
  Immediately allocate all required memory in argon2/scrypt
  Check reduced-round salsa variants in non-minimal mode
  Coverage exclusion -- this is just an extra, redundant check
  Remove incorrect and useless cast
  -fomit-frame-pointer makes a different on mips
  WebAssembly benefits from the 128-bit types, too
  Remove extra spaces
  Undef devel
  ...
2017-12-13 16:21:20 +01:00
Frank Denis
1d85e73d8f msys2 build scripts: just use -Ofast 2017-12-12 23:42:54 +01:00
Frank Denis
208989010b Update emscripten symbols 2017-11-25 20:00:50 +01:00
Frank Denis
01e2aabbfd Android: remove --unified-headers
Fixes #635
2017-11-22 14:53:52 +01:00
Frank Denis
c2a16ea77d Add missing symbols to emscripten-symbols.def , sort 2017-11-15 23:31:01 +01:00
Frank Denis
5257cceda8 Merge crypto_core_ed25519_from_uniform()
Fixes #628
although we need another one that keeps montgomery coordinates.
2017-11-14 22:05:37 +01:00
Frank Denis
75d507a434 + crypto_core_ed25519_is_valid_point() 2017-11-13 14:36:40 +01:00
Frank Denis
c01884ea80 Regen emscripten symbols 2017-11-13 14:29:40 +01:00
Frank Denis
57dac9eb60 + crypto_core_ed25519_add(), crypto_core_ed25519_sub() 2017-11-13 14:22:44 +01:00
Frank Denis
5e1a9c580a Register sodium_stackzero() 2017-11-10 20:48:39 +01:00
Frank Denis
5cde320a08 Add pwhash functions to non-sumo wasm builds
Server relief is important.
2017-11-05 13:44:29 +01:00
Frank Denis
8996c7d53d Regen emscripten symbols 2017-10-23 16:13:01 +02:00
Frank Denis
f1e9acef5c Rename crypto_sign_ed25519_scalarmult() to crypto_scalarmult_ed25519() 2017-10-23 13:22:34 +02:00
Frank Denis
a84d222d07 disable ssp/pie for emscripten 2017-10-22 01:55:28 +02:00
Frank Denis
58fc2dcf5b Add crypto_sign_ed25519_scalarmult to emscripten symbols 2017-10-21 19:00:54 +02:00
Frank Denis
eb24f8e358 emscripten: actually print the installation prefix 2017-10-18 13:11:56 +02:00
Frank Denis
08387eea8b emscripten: actually print the installation prefix 2017-10-18 13:11:15 +02:00
Ryan Lester
381080bf02 libsodium.js totalMemory minor fix (#610) 2017-10-05 10:45:31 +02:00
Frank Denis
c431a42658 "this" doesn't seem to ever be defined in a module
isNan is undefined
2017-10-05 08:31:07 +02:00
Frank Denis
af5ce360b4 this may not be defined 2017-10-05 08:12:05 +02:00
Frank Denis
1393681662 Move declaration closer to usage 2017-10-05 02:28:14 +02:00
Ryan Lester
ec4432a388 allow setting total memory from JS (#608) 2017-10-05 02:26:00 +02:00
Frank Denis
60366ac447 asmjs requires TOTAL_MEMORY to be a multiple of 16MB 2017-10-04 23:01:02 +02:00
Frank Denis
6db1adbf4e Reserve more memory for wasm sumo builds 2017-10-04 22:52:22 +02:00
Frank Denis
cd1b97d5a2 Regen autoconf files 2017-10-01 17:17:11 +02:00
Frank Denis
770e7945c3 Bump major for generate-emscripten-symbols.sh 18 -> 23 2017-10-01 13:20:55 +02:00
Frank Denis
3659d342af Avoid losing the reference to Module in the promise.
by @buu700
2017-09-29 19:31:42 +02:00
Frank Denis
24ff2a7049 Emscripten: just use Module.onRuntimeInitialized = resolve; 2017-09-29 08:49:42 +02:00
Ryan Lester
170661671d Save libsodium.js (#605)
* revert wasm/asmjs split build changes

* combined wasm + asm.js build

* minor cleanup
2017-09-29 08:22:01 +02:00
Frank Denis
2c73b8e3b5 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Remove aes128ctr from emscripten
  Regen MSVC files
  Remove aes128ctr
  Remove aes128ctr, add secretstream
2017-09-29 02:36:42 +02:00
Frank Denis
5233df125f Add -s SINGLE_FILE=1 when compiling to Emscripten 2017-09-29 02:36:03 +02:00
Frank Denis
8ceb55994b Remove aes128ctr from emscripten 2017-09-27 22:19:04 +02:00
Frank Denis
3e0b4dec6e Add sodium_base64_encoded_len() 2017-09-21 11:25:09 +02:00
Frank Denis
bfab44aa40 initbytes -> headerbytes for clarity 2017-09-16 23:21:28 +02:00
Frank Denis
d0a418a863 + _crypto_pwhash_scryptsalsa208sha256_str_needs_rehash() 2017-09-13 00:36:29 +02:00
Frank Denis
378304f818 Export crypto_pwhash_str_needs_rehash() to Javascript/WebAssembly 2017-09-06 21:00:34 +02:00
Frank Denis
6b43c1ddb6 Javascript: don't define crypto_pwhash constants in non-sumo builds 2017-08-27 16:27:07 +02:00
Frank Denis
a0fea69654 Remove RUNNING_JS_OPTS for WebAssembly 2017-08-25 22:53:31 +02:00
Frank Denis
d863c96652 chmod +x *.sh 2017-08-25 20:37:17 +02:00
Frank Denis
957c251f8e chmod +x *.sh 2017-08-25 20:36:32 +02:00
Frank Denis
f61a121b81 Regen emscripten symbols 2017-08-25 15:18:55 +02:00
Frank Denis
f8e535a446 messagesbytes -> messagebytes 2017-08-25 15:12:35 +02:00
Frank Denis
cd721cfc1f Have generate-emscripten-symbols.sh automatically update the js/wasm build script 2017-08-25 15:11:37 +02:00
Frank Denis
0ccdfd0c8d Update emscripten symbols list 2017-08-25 14:26:26 +02:00
Frank Denis
242045cb4d Update emscripten symbols list 2017-08-25 14:24:34 +02:00
Frank Denis
19f76d7cb3 Simplify 2017-08-03 22:45:18 +02:00
Frank Denis
f711c6d049 + emscripten-wasm.sh 2017-08-03 16:20:07 +02:00
Frank Denis
1a3b474f7f Update the exported list of JS symbols 2017-08-03 13:38:15 +02:00
Frank Denis
53280aa28f Revert "wasm tests: skip over *.asm.js files"
This reverts commit ac8111c315.
2017-08-02 18:26:35 +02:00
Frank Denis
ac8111c315 wasm tests: skip over *.asm.js files 2017-08-02 17:17:04 +02:00
Frank Denis
f02770b2ad Revert "+ sodium_alloc_overhead()"
This reverts commit c5b61d8129.
2017-08-02 14:26:56 +02:00
Frank Denis
c5b61d8129 + sodium_alloc_overhead() 2017-08-02 12:34:56 +02:00
Frank Denis
23c36615cd Remove TOTAL_MEMORY from wasm builds
asmjs builds need to be done separately to get actual asmjs code
and not almost-asmjs code.

Don't build html pages. It doesn't change anything, and support for
asmjs in libsodium.js remains a tricky problem to solve.
2017-08-01 23:21:57 +02:00
Frank Denis
3c3214fbd9 Node need for --expose-wasm any more with recent nodejs versions 2017-08-01 10:19:07 +02:00
Frank Denis
b5b67d074e Add -fembed-bitcode to the iOS 64 target, for WatchOS and TVOS 2017-07-31 14:54:15 +02:00
Frank Denis
580bf7a19d emscripten-wasm.sh: generate HTML files even if we don't use them
So that emscripten generates the stub to load the wasm code in web browsers.
2017-07-31 12:52:52 +02:00
Frank Denis
ae8cd7208c emscript-wasm: don't use --enable-minimal on sumo builds 2017-07-30 23:31:56 +02:00
Frank Denis
f2a7b61230 Update symbols 2017-07-30 21:34:09 +02:00
Frank Denis
21fd252ac2 Tweak emscripten-wasm.sh 2017-07-18 22:08:15 +02:00
Frank DENIS
5026954466 Remove extra character in the list of sumo symbols for the js builds 2017-07-12 09:55:33 +02:00
Frank Denis
e325b6d76b Regen emscripten.sh export list 2017-07-07 22:03:24 +02:00
Frank Denis
ccb842f488 Add a xchacha version of crypto_box_seal
No high level API for it, no reasons to, so not available in minimal mode.
2017-07-06 15:30:36 +02:00
Frank Denis
c77ba98d7b Update emscripten symbols 2017-06-28 16:44:06 +02:00
Frank Denis
51e6a59b8d Android: use PLATFORM 16 by default, don't bother with compat for API 21 2017-05-20 19:16:05 +02:00
Adriaan Duz
dbd7026bc5 Add armv7s architecture to dist-build/ios.sh (#528) 2017-04-07 07:16:44 -07:00
Frank Denis
415bc429a7 Android: the mipsel target that disappeared in r14 is back in r14b 2017-03-24 17:22:33 +01:00
Frank Denis
c1ab6f2328 emscripten: don't use --enable-minimal on sumo builds 2017-03-17 16:56:20 +01:00
Frank Denis
d4dbf0cc4f Import preliminary compilation script for webassembly
Thanks to @facekapow

This still needs quite a bit of work, so don't add to the distfiles yet
2017-03-12 17:44:29 +01:00
Frank Denis
849a35bd82 + crypto_kx_*() API
This doesn't include a full key exchange API yet.
2017-03-12 13:15:39 +01:00
Frank Denis
c759324679 Emscripten memory size must be a multiple of 16MB 2017-03-08 14:33:15 +01:00
Frank Denis
eaf19f25d0 Use clang to compile for Android. Except on mips64, where we have to stick to gcc. 2017-03-06 16:53:08 +01:00
Frank Denis
2abe6b9e05 Revert "Remove android-mip32.sh"
This reverts commit da76a860af.
2017-03-06 15:51:38 +01:00
Frank Denis
14f6c26ef6 Python3's fine for make_standalone_toolchain.py after all 2017-03-06 13:33:25 +01:00
Frank Denis
5777418548 Export sodium_library_minimal() to javascript 2017-03-06 11:09:12 +01:00
Frank Denis
8caab6db57 Simplify the python2 detection code 2017-03-06 10:54:00 +01:00
Frank Denis
4f2881a528 make_standalone_toolchain.py requires Python2, sigh 2017-03-06 10:08:01 +01:00
Frank Denis
3e56ce235d Revert "+x"
This reverts commit 8465469167.
2017-03-06 10:06:24 +01:00
Frank Denis
8465469167 +x 2017-03-06 09:25:40 +01:00
Frank Denis
da76a860af Remove android-mip32.sh
It doesn't properly build the library, so remove it until it
eventually gets fixed
2017-03-06 09:24:23 +01:00
Frank Denis
79fe40cfe8 Android: use unified headers 2017-03-06 08:24:29 +01:00
Frank Denis
cac339b226 Update emscripten symbols 2017-03-05 14:53:02 +01:00
Frank Denis
60e9668c14 Regen the emscripten build script with the updated list of symbols 2017-03-01 17:24:55 +01:00
Frank Denis
bc2bde3482 Add the new symbols to the Javascript target 2017-03-01 17:22:46 +01:00
Frank Denis
8b961fb1bd Trim TOTAL_MEMORY_SUMO to a 64k multiple 2017-01-21 01:42:28 +01:00
Frank Denis
5aaff1ce2a Remove unexpected tabs 2016-12-17 18:52:52 +01:00
Frank Denis
7afd929e70 js: measuring make check time is not useful, especially not in a web browser 2016-10-30 01:25:32 +02:00
Frank Denis
1ede5cc0bc $MAKE_TOOLCHAIN --force 2016-10-10 14:43:57 +02:00
Frank Denis
6e2b119d86 Use xcodebuild to retrieve the XCode version 2016-09-18 10:46:59 +02:00
Frank Denis
ed19556c2f XCode 8 may not be able to compile for iOS 5 and more 2016-09-18 09:21:53 +02:00
Frank Denis
1766e13a0e Pass --host to compile for the iOS simulator 2016-09-18 09:04:19 +02:00
Frank Denis
fcf96569d2 CRLF 2016-06-05 22:04:10 +02:00
Frank Denis
f8cc885b6f Android: compile for platform 24, check compat with 16 or 21 (64 bit) 2016-06-05 22:00:56 +02:00
Frank Denis
a6139c6b20 Add nativeclient-x86.sh 2016-04-30 14:07:50 +02:00
Frank Denis
a91530d40f Do not use pthreads on NativeClient 2016-04-30 10:17:47 +02:00
Frank Denis
90603f57ac x86-64 -> x86_64 2016-04-29 22:56:09 +02:00
Frank Denis
d463dadc51 Disable ssp and aesni on nativeclient, nativeclient.sh->nativeclient-pnacl.sh 2016-04-29 22:29:34 +02:00
Frank Denis
3499cbfbe5 Add dist-build/nativeclient-x86-64.sh 2016-04-29 21:55:06 +02:00
Frank Denis
90a5f8e624 Build scripts don't clean after themselves 2016-04-29 20:40:56 +02:00
Frank Denis
40db481236 Use pepper_49 2016-04-29 09:45:12 +02:00
Frank Denis
bdf5c8246b Compile with pthreads 2016-04-18 20:54:46 +02:00
Frank Denis
214f16802b Do not use emscripten's headless mode 2016-04-17 23:58:44 +02:00
Frank Denis
4ff0d326e1 Remove crypto_pwhash_*() from the non-sumo Javascript distribution 2016-04-17 23:18:18 +02:00
Frank Denis
9aab628b97 pwhash_*() require heap allocations, but everything else doesn't 2016-04-17 23:15:53 +02:00
Frank Denis
5dce2b5c64 Revamp the emscripten build script 2016-04-17 22:45:37 +02:00
Frank Denis
7055d81aaa Reduce TOTAL_MEMORY 2016-04-15 00:32:09 +02:00
Frank Denis
da65a7f003 JS target: use -Os instead of -O3
Performance is roughly the same, but output is noticeably smaller
2016-04-14 23:13:40 +02:00
Frank Denis
9a9dc02ee1 Do not use -Ofast 2016-04-13 11:13:59 +02:00
Frank Denis
c41bf91a48 Run make clean after ./configure instead of distclean before 2016-04-13 10:58:35 +02:00
Frank Denis
9f1a5e0cf9 Check for MinGW presence 2016-04-13 10:49:55 +02:00
Frank Denis
76d061b8a5 Revert -lfto addition on msys2 2016-04-13 09:11:52 +02:00
Frank Denis
535449612d msys2 supports -Ofast and -flto these days 2016-04-13 08:52:56 +02:00
Frank Denis
0248c38626 Use slightly more modern target CPUs for the msys2 builds 2016-04-11 23:26:21 +02:00
Frank Denis
2e7247d8b1 Use absolute .done files 2016-04-06 18:21:27 +02:00