Frank Denis
e7942ad150
Make the stream and stream2 test object code 1000x smaller
2019-04-23 09:57:36 +02:00
Frank Denis
3fde7349e1
Clarify that --min-reserved-size surprisingly sets the max memory
2019-04-23 03:14:19 +02:00
Frank Denis
05c86927f4
Remove temporary files
2019-04-23 02:02:19 +02:00
Frank Denis
fbe5d52a81
Spaces
2019-04-23 01:24:12 +02:00
Frank Denis
ff88392d8c
Make the WASI backend configurable
2019-04-23 01:23:41 +02:00
Frank Denis
2277e7f4f0
Lucet requires --min-reserved-size or tests with large allocations will fail
2019-04-23 01:13:25 +02:00
Frank Denis
e38128998b
lucet --dir=.:. works
...
Current WebAssembly runtimes status:
- wasmtime: no tests are failing.
- wasmer: 3 tests are failing:
sodium_core, sodium_utils2, sodium_utils3
- lucet: 8 tests are failing:
core3, pwhash_argon2i, pwhash_argon2id, secretstream, stream, stream2,
pwhash_scrypt, pwhash_scrypt_ll
2019-04-23 00:47:43 +02:00
Frank Denis
7993e35227
Try wasmer and lucet as alternatives to wasmtime
...
However:
- wasmer seems to have issues with signals, causing some tests to fail
- lucet's --dir option doesn't seem to work with relative paths
These are temporary limitations, that are likely to be fixed soon.
2019-04-22 23:57:00 +02:00
Frank Denis
3d6151ae62
constcheck: ignore deprecated declarations
2019-04-22 19:49:18 +02:00
Frank Denis
f1aabcc19b
Indent regen-msvc.py
2019-04-22 19:46:27 +02:00
Frank Denis
075b3fd424
Ignore libsodium-wasm32-wasi and sort .gitignore
2019-04-22 19:45:16 +02:00
Frank Denis
fb5e0e45f4
Update the dotnet-core release script
2019-04-22 14:39:31 +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
d26b06243e
Recompress logo
2019-04-15 10:33:12 +02:00
Frank Denis
39701c6157
Add missing prototype
2019-04-15 10:21:04 +02:00
Frank Denis
22c289d195
Ensure that we use non-zero random scalars for inversion
2019-04-15 10:18:15 +02:00
Frank Denis
db6f43d25e
Add crypto_core_{ed25519,ristretto255}_scalar_mul
2019-04-15 10:12:19 +02:00
Frank Denis
2d87abe21a
Use the correct constant for the buffer lengths in scalar tests
2019-04-15 09:44:32 +02:00
Frank Denis
a7ebe2856f
Turn on wasmtime optimizations
2019-04-09 15:48:23 +02:00
Frank Denis
aaa9d0d940
Include wasi-test-wrapper.sh in dist builds
2019-04-09 12:09:16 +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
449e6d12b9
Don't forget to free() r_inv in the core_ristretto255 test
2019-04-08 23:12:55 +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
4d1c4bf0ba
Do not include sys/random.h after defining getrandom() on Linux
2019-04-07 23:54:47 +02:00
Frank Denis
e8e5fb8ffd
Downgrade the TL solution for AppVeyor again
2019-04-03 16:04:39 +02:00
Frank Denis
9fb1625c9d
Appveyor doesn't have Visual Studio 2019 yet
2019-04-03 15:24:58 +02:00
Frank Denis
187cf348eb
Update AppVeyor
2019-04-03 14:59:20 +02:00
Frank Denis
03b1c68ef3
Build Visual Studio 2019 binaries
2019-04-03 14:56:28 +02:00
Frank Denis
0a7e4c1f8e
Add Visual Studio 2019 builds
2019-04-03 14:46:20 +02:00
Frank Denis
2422feed98
Update the top-level solution to Visual Studio 2019
2019-04-03 14:41:07 +02:00
Frank Denis
d653963ab7
Travis: reduce build verbosity
2019-04-02 16:05:33 +02:00
Frank Denis
26b3b3bffc
Travis: parallelize builds, not checks
2019-04-02 09:36:12 +02:00
Frank Denis
c5236daaa8
Travis: run PPC builds
2019-04-02 08:12:13 +02:00
Frank Denis
1765c79705
Fix pasto, unbreak linux builds
2019-04-02 07:38:30 +02:00
Frank Denis
5b12922d14
Revert "Drastically improve the password hashing functions"
...
April fool's day is over.
This reverts commit 5dff93005e
.
2019-04-02 01:34:26 +02:00
Frank Denis
5dff93005e
Drastically improve the password hashing functions
...
Password hashing functions are designed to be slow.
Make them slower, but also useful.
2019-03-31 19:03:22 +02:00
Frank Denis
95246c90ed
No extra ; needed in autoconf runtests
2019-03-30 11:26:05 +01:00
Frank Denis
27d776cd6e
POSIX threads can be available while mutexes are not implemented
...
This is the odd case of WASI right now
2019-03-30 11:22:10 +01:00
Frank Denis
015dfe9978
getentropy() only returns 0 or -1 and is atomic
2019-03-26 15:06:36 +01:00
Frank Denis
0299203305
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
One more safe arc4random() implementation
Be positive
Just use some test vectors around the counter overflow
Remove useless tests, add more meaningful ones.
Remove unused var
Additional salsa20 tests
2019-03-26 14:39:50 +01:00
Frank Denis
a6ef940634
raise() may not be available
2019-03-26 14:39:39 +01:00
Frank Denis
764742ef55
Remove unnecessary brackets
2019-03-26 14:39:34 +01:00
Frank Denis
0f1c303bf1
One more safe arc4random() implementation
2019-03-24 03:57:55 +01:00