Commit Graph
100 Commits
Author SHA1 Message Date
Frank Denis 111f99a2d4 Nits. No binary code change. 2019-10-21 14:52:20 +02:00
Frank Denis 8a76789de3 Add required headers for aegis256_armcrypto 2019-10-21 14:23:15 +02:00
Frank Denis 6abc6c292a Compile only the NEON version of AEGIS256 on relevant platforms 2019-10-12 02:18:36 +02:00
Frank Denis c638d25583 Try Lucet as a last option, after wasmer, due to its unstable interface 2019-10-11 17:31:57 +02:00
Frank Denis 701475c3d2 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Update wasi-sdk
2019-10-11 16:35:13 +02:00
Frank Denis da75f6824b Lucet removed the "fast" optimization level
We may drop Lucet support entirely until the interface gets more stable
2019-10-11 16:33:36 +02:00
Frank Denis 639782ef87 Update wasi-sdk 2019-10-11 12:24:14 +02:00
Frank Denis e433b9ee02 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Add -S for curl
  Add ARM implementation of aegis256 - Not connected to builds yet
2019-10-09 02:15:26 +02:00
Frank Denis 59a195d05f We don't need to check if data alignment is required any more 2019-10-09 02:15:04 +02:00
Frank Denis e1bff2608f Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Add -S for curl
  randombytes: make the emscripten version consistent with others
2019-09-25 17:16:43 +02:00
Frank Denis 2f915846ff randombytes: make the emscripten version consistent with others 2019-09-24 16:56:49 +02:00
Frank Denis 0460903da5 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Make room for several secretstream
  Fix .gitignore
2019-09-17 15:38:13 +02:00
Frank Denis 44b4526309 Add ARM implementation of aegis256 - Not connected to builds yet 2019-09-16 14:52:10 +02:00
Frank Denis 5990dc00d0 Fix crypto_aead_aegis256_MESSAGEBYTES_MAX 2019-09-13 19:46:57 +02:00
Frank Denis 5a9d93d371 The wasmer path is lost between tasks 2019-09-13 17:38:12 +02:00
Frank Denis ea92e2e929 Install precompiled wasmer 2019-09-13 17:26:51 +02:00
Frank Denis 5e8969a48d Revert "Try installing wasmtime instead of wasmer"
This reverts commit 0dc43505f7.
2019-09-13 11:26:23 +02:00
Frank Denis eb96e7ecda WASI can't read its own writes without an explicit fflush() 2019-09-13 11:16:58 +02:00
Frank Denis 1d536ffab7 Indent 2019-09-13 00:17:46 +02:00
Frank Denis f537541a0a For clarity, don't use different terms for the same thing 2019-09-12 22:24:39 +02:00
Frank Denis a59e1f8b54 aegis256: update MSVC solutions, .gitignore, exported emscripten symbols
and the global list of symbols
2019-09-12 22:10:07 +02:00
Frank Denis 4de2620fb1 Indent 2019-09-12 20:48:52 +02:00
Frank Denis 88717d995b Indent 2019-09-12 20:28:54 +02: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 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 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 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
Frank Denis d855d30826 Use MAP_CONCEAL on OpenBSD 2019-06-06 11:51:57 +02:00
Frank Denis d54f0721cd getentropy() may be defined but NULL on older iOS versions 2019-06-02 21:11:30 +02:00
Frank Denis 6a6a5cc79e Revert "Disable getentropy() on Apple devices"
This reverts commit 9710a33ba1.
2019-06-02 20:39:01 +02:00
Frank Denis eef918da2f Fix URL 2019-06-02 15:45:20 +02:00
Frank Denis 1707281a3a Revert "scrypt: reject r == 0 and p == 0"
This reverts commit 00c8ecd1c4.
2019-06-01 15:33:37 +02:00
Frank Denis 5cf59bc38b Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  ChangeLog nits
2019-06-01 10:32:37 +02:00
Frank Denis 2bf56d7ebd Fix Findsodium.cmake SODIUM_VERSION_STRING regex 2019-06-01 10:31:44 +02:00
Frank Denis df5c9e95c9 ChangeLog nits 2019-05-31 00:44:08 +02:00
Frank Denis 3e5c2531eb Back to dev mode 2019-05-30 23:05:07 +02:00
Frank Denis 4f5e89fa84 Don't ignore azure-pipelines.yml 2019-05-30 22:13:18 +02:00
Frank Denis 9710a33ba1 Disable getentropy() on Apple devices 2019-05-30 21:56:22 +02:00
Frank Denis 922e91a7bf lucetc will eventually use --opt-level fast instead of --opt-level best 2019-05-30 20:30:45 +02:00
Frank Denis 1854820cc3 Ignore azure-pipelines.yml 2019-05-30 16:01:00 +02:00
Frank Denis 252fda724c Bump 2019-05-30 15:52:09 +02:00
Frank Denis 2e6c26ebd8 Update ChangeLog 2019-05-30 13:38:40 +02:00
Frank Denis db30653ca5 Use Azure Pipelines to produce WASI binaries 2019-05-30 13:23:53 +02:00
Frank Denis 7421ad133c Update status badge 2019-05-29 20:54:51 +02:00
Frank Denis 49e6e4b841 Add Azure Pipelines build status 2019-05-29 15:42:06 +02:00
Frank Denis 53346c9553 Name things consistently 2019-05-29 15:34:08 +02:00
Frank Denis 0a9ec5c843 Conditions don't apply to scripts 2019-05-29 15:08:25 +02:00
Frank Denis 694420a82b Parallelize MinGW builds 2019-05-29 14:56:29 +02:00
Frank Denis 2c8ba1354b Reserve a branch for testing the next version 2019-05-29 14:31:21 +02:00
Frank Denis a401c9825a Don't trigger Azure Pipelines on PRs, keep Appveyor for this 2019-05-29 14:27:40 +02:00
Frank Denis 801229d946 Azure Pipelines: build MinGW binaries 2019-05-29 14:20:56 +02:00
Frank Denis 093bd973ed azure-pipelines: remove the packages job 2019-05-28 23:16:33 +02:00
Frank Denis 35d1e848f5 Add Azure Pipelines rules 2019-05-28 21:01:01 +02:00
Frank Denis 825656862c Indent Appveyor rules 2019-05-28 20:59:44 +02:00
Frank Denis c95e803cb9 Support the enterprise version of Visual Studio 2019-05-28 20:27:36 +02:00
Frank Denis af6df5f4a5 Revert "Limit resources when running tests"
This reverts commit 9567bbe65f.
2019-05-23 00:38:14 +02:00
Frank Denis 00c8ecd1c4 scrypt: reject r == 0 and p == 0 2019-05-21 14:11:03 +02:00
Frank Denis 76ac6ef605 Remove an unreliable scrypt test
Fixes #837
2019-05-21 13:14:06 +02:00
Frank Denis 91c98bad15 lucet seems to accept sizes without a suffix 2019-05-21 11:22:49 +02:00
Frank Denis 06f331d153 Use the same memory limit everywhere 2019-05-21 11:12:07 +02:00
Frank Denis 9567bbe65f Limit resources when running tests
The default memory limit matches the limit already used when running
the javascript and webassembly tests.

Original diff by @pilou-

Fixes #837
2019-05-21 10:52:01 +02:00
Frank Denis e24847c364 Comment 2019-05-21 10:17:35 +02:00
Frank Denis 515d540524 autogen.sh: make config.guess update optional 2019-05-16 23:38:48 +02:00
Frank Denis dee20234c8 Shorten 2019-05-12 13:51:41 +02:00
Frank Denis fdbfdf5089 cmake-format 2019-05-11 12:13:08 +02:00
Frank Denis 6d9e2f0c84 More tests 2019-05-06 13:02:20 +02:00
Frank Denis 011343e88c More tests 2019-05-06 12:48:02 +02:00
Frank Denis 12277ee6b5 More tests 2019-05-06 12:40:21 +02:00
Frank Denis 141de9be13 Indent 2019-05-06 12:32:42 +02:00
Frank Denis 06e4a485c4 More tests 2019-05-06 11:40:57 +02:00
Frank Denis ffdaf6d16b aead_xchacha20poly1305_ietf_decrypt(): add a test with a NULL message 2019-05-06 11:15:11 +02:00
Frank Denis ed4e053fb0 lcov exclusions 2019-05-06 11:13:31 +02:00