Commit Graph
3670 Commits
Author SHA1 Message Date
Adrien Gallouët 4520c080cc Define ENOSYS where it is useful
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2019-09-12 18:13:19 +00:00
Frank Denis 285b34141d Merge pull request #867 from angt/add-test-aegis256
Add tests for AEGIS-256
2019-09-12 19:56:40 +02:00
Adrien Gallouët 3c14a1581c Add tests for AEGIS-256
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2019-09-12 14:42:19 +00:00
Frank Denis 22ecbb63b4 Merge pull request #866 from buu700/master
Fix for new emscripten LLVM backend
2019-09-11 17:16:15 +02:00
Ryan Lester f45693bd35 fix for asm.js async loading 2019-09-11 10:49:46 -04:00
Frank Denis cfc60eaa92 Merge pull request #862 from buu700/master
Workaround for error caused by latest emscripten
2019-09-11 16:03:03 +02:00
Frank Denis 6680116e85 Merge pull request #865 from angt/add-aegis256
Add AEGIS-256 (aesni only)
2019-09-11 15:24:12 +02:00
Adrien Gallouët 0eecb81466 aegis256: Remove restrict
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2019-09-11 13:14:32 +00:00
Adrien Gallouët 452ac1f3ee Add AEGIS-256 (aesni only)
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2019-09-11 12:53:22 +00:00
Frank Denis 009851974d Merge pull request #863 from 0xmatthias/master
building shared library for ios.sh
2019-09-09 11:46:49 +02:00
0xmatthias 84492eac88 building shared library for ios.sh 2019-09-09 04:25:59 +02:00
Ryan Lester 2aede0de9a workaround for error caused by latest emscripten 2019-09-08 21:41:24 -04:00
Frank Denis c8d15621c7 Use AC_LINK_IFELSE for everything using inline assembly 2019-08-29 18:16:23 +02:00
Frank Denis e72a7d183a Use AC_LINK_IFELSE instead of _COMPILE_IFELSE for cpuid detection
This apparently works around a bug on OpenSuSE on ARM and PPC when
LTO is enabled.

Still, as documented, LTO shouldn't be used when compiling the library.
2019-08-29 18:14:44 +02:00
Frank Denis ab2c18cec2 Use rust-beta, that may be required to build wasmtime 2019-08-29 18:13:22 +02:00
Frank Denis 0dc43505f7 Try installing wasmtime instead of wasmer 2019-08-07 19:33:54 +02:00
Frank Denis 33e7fa9ee9 Update the WASI SDK 2019-08-07 19:26:27 +02:00
Frank Denis 24d3e0ab1b Merge pull request #853 from willclarktech/nodejs-catch-exit
Set NODEJS_CATCH_EXIT=0 in emscripten LDFLAGS
2019-08-06 12:06:24 +02:00
willclarktech 4bf6ab1f93 Set NODEJS_CATCH_EXIT=0 in emscripten LDFLAGS 2019-08-01 19:01:42 +02:00
Frank Denis 3f27018394 Indent 2019-07-23 22:29:52 +02:00
Frank Denis fbd47e868c Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Rename WASI_SYSROOT to WASI_LIBC and check both the old and new dirs
  Add Open Collective contributors to readme
2019-07-23 22:24:17 +02:00
Frank Denis aaaaf7b8b8 Units are not required any more for Lucet 2019-07-23 22:23:50 +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 a26467874a Merge pull request #845 from opencollective/opencollective
Add Open Collective contributors to readme
2019-07-15 16:54:54 +02:00
jess 374125dde2 Add Open Collective contributors to readme 2019-07-15 06:46:53 -07:00
Frank Denis 55a81d9460 lucetc-wasi requires units with --max-heap-size 2019-07-09 20:41:34 +02:00
Frank Denis e97760ad68 shielding requires memory protection 2019-07-09 20:29:36 +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 2f5363150e Merge pull request #840 from mpex/patch-1
Update utils.c
2019-06-24 14:08:09 +02:00
mpex fb8e4d00df Update utils.c
I noticed that the shielding_key is not used in sodium_mshield() (only filled in crypto_generichash())
Is the wrong key used in crypto_stream_xor?
2019-06-24 13:41:09 +02:00
Frank Denis 61992a838d Register new symbols 2019-06-22 17:06:18 +02:00
Frank Denis 495fdb3693 mshield requires memory protection 2019-06-22 17:02:34 +02:00
Frank Denis bfeca0eb73 Implement key shielding to protect against side channels
We may want to fold this into `sodium_mprotect_*()` instead of
exposing these functions.

The drawback is that a transition from PROT_NONE to PROT_READ
(or the other way round) would need an intermediary state in PROT_WRITE
for shielding/unshielding.

Shielding is also not thread-safe, while the `mprotect_*()` functions
are, and adding locks would make things more complicated than they
probably should.
2019-06-22 14:56:16 +02:00
Frank Denis 60f4bc8212 getconf(1) may not be available 2019-06-11 00:17:19 +02:00
Frank Denis 2dd3b91628 Try to rename internal symbols that were visible in static libraries
Fixes #839
2019-06-10 23:08:21 +02:00
Frank Denis 954823420d Indent .travis.yml with prettier 2019-06-10 22:35:29 +02:00
Frank Denis 5eb700122f Move regen-msvc back to place 2019-06-10 22:35:19 +02:00
Frank Denis a97ab7085f argon2_pick_best_implementation() can be static 2019-06-10 20:35:43 +02:00
Frank Denis 47153bb56e Style: remove unneeded extern 2019-06-10 20:35:38 +02:00
Frank Denis 84fdd43a75 More DEV_MODE 2019-06-10 18:32:32 +02:00
Frank Denis f6e1fb9e33 Add explicit "env" command 2019-06-10 18:30:36 +02:00
Frank Denis 79c6dec5ef constcheck.sh is in test/ already 2019-06-10 18:28:51 +02:00
Frank Denis 42a06fdecc common.h -> private/common.h 2019-06-10 16:24:47 +02:00
Frank Denis c4ba685eab Move helpers to a dedicated directory. The m4 dir might be there, too 2019-06-10 11:15:22 +02:00
Frank Denis 7214dff083 Rename the remaining unprefixed functions
argon2_fill_first_blocks() can be static
2019-06-09 01:01:20 +02:00
Frank Denis 550622b04b Rename fill_segment_* to argon2_fill_segment_* 2019-06-09 00:19:41 +02:00
Frank Denis 9f14962388 Rename a few common internal symbols 2019-06-09 00:14:48 +02:00
Frank Denis 6723e22907 Rename PBKDF2_SHA256 to escrypt_PBKDF2_SHA256 2019-06-09 00:02:23 +02:00
Frank Denis bdc4db7c9c Remove useless macros hiding the actual symbol names 2019-06-08 23:26:49 +02:00