Ryan Lester
|
2aede0de9a
|
workaround for error caused by latest emscripten
|
2019-09-08 21:41:24 -04:00 |
|
willclarktech
|
4bf6ab1f93
|
Set NODEJS_CATCH_EXIT=0 in emscripten LDFLAGS
|
2019-08-01 19:01:42 +02:00 |
|
Frank Denis
|
fdfca240d6
|
Rename WASI_SYSROOT to WASI_LIBC and check both the old and new dirs
|
2019-07-20 17:29:44 +02:00 |
|
Frank Denis
|
a73f8f15e4
|
Use /opt/wasi-libc as the default WASI sysroot
|
2019-07-09 19:37:31 +02:00 |
|
Frank Denis
|
0106e0495d
|
Update emscripten symbols
|
2019-06-24 14:46:57 +02:00 |
|
Frank Denis
|
06f331d153
|
Use the same memory limit everywhere
|
2019-05-21 11:12:07 +02:00 |
|
Frank Denis
|
dee20234c8
|
Shorten
|
2019-05-12 13:51:41 +02:00 |
|
bas-d
|
1fd2422623
|
Properly check if console exists.
|
2019-05-12 13:04:11 +02:00 |
|
bas-d
|
646c0cfd46
|
Check if console is null or undefined.
|
2019-05-12 12:41:55 +02:00 |
|
bas-d
|
e1176fe2bb
|
Override print and printErr
|
2019-05-11 17:15:14 +02:00 |
|
Frank Denis
|
53cd7d6a6f
|
Export UTF8ToString instead of Pointer_stringify
|
2019-05-04 18:06:05 +02:00 |
|
Frank Denis
|
10b991d518
|
wasm32-unknown-wasi -> wasm32-wasi
|
2019-05-03 11:38:37 +02:00 |
|
Frank Denis
|
a47159de27
|
Just look for the 'wasi' substring
|
2019-05-03 11:15:42 +02:00 |
|
Frank Denis
|
4f1d0ccfdb
|
Update the symbol list of the emscripten target
|
2019-05-02 00:56:02 +02:00 |
|
Frank Denis
|
38ebbac336
|
set ED25519_NONDETERMINISTIC on WebAssembly/WASI target
|
2019-04-30 19:44:13 +02:00 |
|
Frank Denis
|
927dfe8e2e
|
Add a warning about headers in Android builds
|
2019-04-19 00:54:59 +02:00 |
|
Frank Denis
|
5b05324268
|
More aggressive check for getrandom() and getentropy() usability
In particular, they can be present, but not usable for a given
compatibility level. This is especially expected on iOS and Android.
|
2019-04-19 00:51:06 +02:00 |
|
Frank Denis
|
a3f507ae81
|
Rename wasi.sh to wasm32-wasi.sh
|
2019-04-09 12:01:21 +02:00 |
|
Frank Denis
|
d40175ae33
|
wasi: enable full builds, bump bench iterations up
also disable threaded linking to work around an lld bug
|
2019-04-09 11:40:28 +02:00 |
|
Frank Denis
|
6a5650fb34
|
wasi: use -O2. Best overall performance in -O{2,3,s,fast}.
|
2019-04-09 01:12:07 +02:00 |
|
Frank Denis
|
59b1c31acf
|
Add wasi --bench
|
2019-04-08 23:23:07 +02:00 |
|
Frank Denis
|
9dbf03c115
|
Run the WASI checks using wasmtime
|
2019-04-08 21:45:08 +02:00 |
|
Frank Denis
|
c21fa570f6
|
egrep -> grep
|
2019-04-08 21:02:41 +02:00 |
|
Frank Denis
|
47e397edf8
|
patch build-aux/config.sub if needed
|
2019-04-08 21:02:22 +02:00 |
|
Frank Denis
|
8745c85114
|
First step towards WASI support
|
2019-04-08 20:47:33 +02:00 |
|
Frank Denis
|
411ec2de84
|
Update emscripten symbols for ristretto
|
2019-02-18 14:10:43 +01:00 |
|
Frank Denis
|
e6aa7e1da4
|
The time has come to remove support for (p)nacl
|
2019-02-14 14:41:09 +01:00 |
|
Frank Denis
|
b732443c44
|
undef _box_curve25519xchacha20poly1305_messagebytes_max in !sumo builds
|
2019-01-06 20:32:54 +01:00 |
|
Frank Denis
|
0e0dbde088
|
Emscripten: enable ALLOW_MEMORY_GROWTH
|
2018-12-30 14:57:06 +01:00 |
|
Frank Denis
|
b3dc89368e
|
Regen emscripten symbols
|
2018-12-30 10:37:02 +01:00 |
|
Frank Denis
|
e60049aad1
|
Revert "Add crypto_kx_ed25519" and "Add low-level kx_curve25519 functions"
This reverts commit 2d736dc2bc .
This reverts commit 7f3bc5cd08 .
|
2018-12-25 19:22:33 +01:00 |
|
Frank Denis
|
7e8c2d34e5
|
Regen emscripten symbols
|
2018-12-25 12:50:13 +01:00 |
|
Frank Denis
|
2d736dc2bc
|
Add crypto_kx_ed25519
|
2018-12-25 12:46:21 +01:00 |
|
Frank Denis
|
7e31bbf1e5
|
Update emscripten symbols
|
2018-12-25 11:10:01 +01:00 |
|
Frank Denis
|
fdeb11d81c
|
Regen emscripten symbols
|
2018-12-20 20:09:57 +01:00 |
|
Frank Denis
|
a8abbec660
|
watchOS arm64 is actually arm64_32
|
2018-10-22 19:22:46 +02:00 |
|
Frank Denis
|
0d3640609e
|
Make watchos.sh looks like other scripts
|
2018-10-22 19:11:18 +02:00 |
|
Joseph Ross
|
8f5a748335
|
Add dist-build script to build libsodium for WatchOS.
|
2018-10-22 19:07:12 +02:00 |
|
Ryan Lester
|
34cbaa8dcd
|
useBackupModule getRandomValue fix
|
2018-09-29 18:22:42 -04:00 |
|
Ryan Lester
|
f642149364
|
asm.js fallback fix
|
2018-08-30 16:54:29 -04:00 |
|
Ryan Lester
|
73687a0044
|
style consistency fix
|
2018-08-30 16:54:15 -04:00 |
|
Frank Denis
|
72ad112e01
|
Emscripten: remove -s NO_FILESYSTEM=1
Emscripten support for this has been broken for way too long.
|
2018-08-29 14:02:15 +02:00 |
|
Ryan Lester
|
8e138b9f14
|
iOS fix
|
2018-08-22 20:06:32 -04:00 |
|
Ryan Lester
|
787d173483
|
fix for emscripten breaking change (https://github.com/kripken/emscripten/pull/6419)
|
2018-06-20 14:25:08 -04:00 |
|
Frank Denis
|
7d4976a304
|
Check NPROCESSORS_ONLN in addition to _NPROCESSORS_ONLN
|
2018-03-07 10:14:01 +01:00 |
|
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 |
|
Ryan Lester
|
19828dd329
|
run-time wasm test before resolving ready
|
2018-03-06 01:48:25 -05: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
|
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
|
7dee41abee
|
Disable LTO in ios/osx build scripts
|
2017-12-31 00:56:51 +01:00 |
|
Ryan Lester
|
4614ca754d
|
updates for latest emscripten
|
2017-12-26 22:05:08 -05: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
|
387e1833d7
|
emscripten: move the set of exported runtime methods
|
2017-12-25 22:33:30 +01:00 |
|
Frank Denis
|
8eba49b6a8
|
emscripten: export _malloc() and _free()
|
2017-12-25 22:31: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
|
f34d5ef17e
|
Emscripten: bump the memory up for the tests
|
2017-12-20 23:04:04 +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
|
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
|
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
|
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 |
|