1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 10:37:24 -07:00
Commit Graph

57 Commits

Author SHA1 Message Date
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
2e7247d8b1 Use absolute .done files 2016-04-06 18:21:27 +02:00
Frank Denis
99576d46d0 Use a specific "done" file for every javascript target 2016-04-06 15:05:59 +02:00
Frank Denis
50a8c61086 Use different folders for libsodium-js and for the sumo version 2016-04-06 14:53:33 +02:00
Frank Denis
55f4cac2c9 Increase TOTAL_MEMORY for the Javascript target 2016-04-04 00:24:59 +02:00
Frank Denis
d4fd35d543 Update the list of symbols exported to Javascript 2016-04-01 21:28:21 +02:00
Frank Denis
bdd5e07ff9 Set JS_EXPORTS_FLAGS after EXPORTED_FUNCTIONS 2016-03-21 21:26:21 +01:00
Frank Denis
38265884ba Update emscripten symbols, add a "sumo" mode 2016-03-21 20:59:47 +01:00
Frank Denis
f3fc3e8b46 NO_BROWSER is not required any more with recent Emscripten versions 2016-03-01 20:58:50 +01:00
Frank Denis
86cf171c54 Update the list of symbols exported to Javascript 2016-03-01 20:40:50 +01:00
Frank Denis
fcf9441c7b Export crypto_pwhash*() to Javascript 2016-01-13 10:00:16 +01:00
Frank Denis
d39202c16c Put the browser-js.done marker at the right place 2015-12-29 18:02:24 +01:00
Frank Denis
26535c3d42 Remove browser-js.done or js.done, but not both 2015-12-07 12:50:24 +01:00
Frank Denis
bfa206ed4b Let emscripten.sh support a --browser-tests switch 2015-12-07 12:38:22 +01:00
Frank Denis
7ada62b1ff Reduce some test cases, generate html test files 2015-12-07 08:58:35 +01:00
Frank Denis
31b75afb99 Nits 2015-12-07 02:01:39 +01:00
Frank Denis
3d1e11fe81 Support a BROWSER_TESTS env variable to build tests for browsers 2015-12-07 01:44:33 +01:00
Frank Denis
10151cdc8c Remove extra comma 2015-11-17 11:24:37 +01:00
Frank Denis
23a00c003f Do not export randombytes_set_implementation() in Javascript 2015-11-17 11:12:40 +01:00
Frank Denis
52fe697e7a io.js has become node.js 2015-10-19 22:19:54 +02:00
Frank Denis
45df38c8c7 Remove sodium_memcmp() from the list of functions exported to Javascript 2015-10-19 22:15:32 +02:00
Frank Denis
a934fe072b Export crypto_onetimeauth to emscripten 2015-08-05 11:41:44 +02:00
Frank Denis
67205bc9d4 Emscripten target: don't run the Closure compiler any more. 2015-07-20 16:17:39 +02:00
Frank Denis
e972f0269b Emscripten: enable NO_DYNAMIC_EXECUTION=1
When enabled, we do not emit eval() and new Function(), which disables some functionality
(causing runtime errors if at tempted to be used), but allows the emitted code to be
acceptable in places that disallow dynamic code execution (chrome packaged app, non-
privileged firefox app, etc.)
2015-07-20 15:56:41 +02:00
Frank Denis
965eaeac46 Revert "Export sodium_increment() to Emscripten"
This reverts commit a8e4115851.
2015-06-28 15:44:06 +02:00
Frank Denis
a8e4115851 Export sodium_increment() to Emscripten 2015-06-22 17:41:55 +02:00
Frank Denis
a678c09ea3 Export chacha20poly1305_ietf functions to JavaScript 2015-05-15 10:27:16 +02:00
Frank Denis
575ce93058 + crypto_box_seal() 2015-04-17 01:01:32 +02:00
Frank Denis
0938b7cf9a Export _crypto_generichash_statebytes() 2015-01-24 11:30:05 +01:00
Frank Denis
dd5224791b Re-add filesystem support for the library 2015-01-18 00:59:59 +01:00
Frank Denis
00f8156457 Do not hardcode the node binary 2015-01-18 00:52:14 +01:00
Frank Denis
98c96f4c99 No browser, no filesystem support required 2015-01-18 00:42:34 +01:00
Frank Denis
e7f410de10 Emscripten: don't use a memory init file any more.
It doesn't take that long to load the module, and it's going to make
users' life way easier.
2015-01-17 22:11:10 +01:00
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
9b85fddfa9 Abort if the JS tests don't pass 2015-01-15 11:26:46 +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
36d3d7cb5b Use io.js instead of node, if available. 2015-01-14 08:20:17 +01:00
Frank Denis
2262a592e6 Export the precomputed interface to emscripten 2015-01-06 17:59:52 +01:00
Frank Denis
b53f5c7f74 The node binary was renamed nodejs on Ubuntu. 2014-12-04 10:28:49 -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
f562d561d8 sodium_utils2 and sodium_utils3 cannot work in Javascript; this is expected. 2014-11-29 22:45:41 -08:00
Frank Denis
6fe4aeaf01 Emscripten: update the list of exported functions 2014-11-29 20:42:16 -08:00
Frank Denis
61620d7e42 Make 'make check' actually run the tests on Emscripten. 2014-11-25 09:51:39 -08:00
Frank Denis
db5b51042a Don't export the JS function names in LDFLAGS. 2014-11-22 14:53:16 -08:00
Frank Denis
e7069f0363 Do not use "=" with "--" options 2014-11-22 11:43:23 -08:00