Frank Denis
203220116a
Temporarily disable getentropy()/getrandom() when using ASAN
...
ASAN assumes a recent version of the C library has been installed and
may end up intercepting functions that didn't exist if the actual C
library is old.
2019-08-29 17:48:20 +02:00
willclarktech
549bf059cd
Set NODEJS_CATCH_EXIT=0 in emscripten LDFLAGS
2019-08-25 23:53:05 +02:00
Frank Denis
f7695fd634
Use AC_LINK_IFELSE for everything using inline assembly
2019-08-16 13:09:57 +02:00
Frank Denis
4b448b5095
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-16 12:28:42 +02:00
Frank Denis
a179b25eb0
Update config.guess
2019-08-08 00:34:15 +02:00
Frank Denis
c572f24ddf
Try installing wasmtime instead of wasmer
2019-08-07 19:52:44 +02:00
Frank Denis
a9d6857665
Update config.sub
2019-07-24 01:07:00 +02:00
Frank Denis
c210fd558e
Revert "Revert "Disable AVX512 Argon2 implementation on MacOS""
...
This reverts commit 495ebc26f6
.
2019-07-24 00:18:06 +02:00
Frank Denis
495ebc26f6
Revert "Disable AVX512 Argon2 implementation on MacOS"
...
This reverts commit cf59da7cd4
.
2019-07-23 18:18:33 +02:00
Frank Denis
cf59da7cd4
Disable AVX512 Argon2 implementation on MacOS
...
Fixes #848
2019-07-23 16:24:41 +02:00
Frank Denis
5dae1fd9a9
Nits
2019-07-20 17:29:00 +02:00
Frank Denis
1e03d83420
Try to find the WASI libc in the new and the current default locations
2019-07-20 17:27:01 +02:00
Frank Denis
612d60f54a
lucetc-wasi requires units with --max-heap-size
2019-07-09 20:42:46 +02:00
Frank Denis
8f859dc187
Indent .travis.yml with prettier
2019-06-10 22:36:13 +02:00
Frank Denis
53e20300e9
argon2_pick_best_implementation() can be static
2019-06-10 20:22:28 +02:00
Frank Denis
95cf2e5da1
Style: remove unneeded extern
2019-06-10 20:22:22 +02:00
Frank Denis
23a86e3387
Update config.guess
2019-06-10 18:41:55 +02:00
Frank Denis
b1f0e2eb1d
common.h -> private/common.h
2019-06-10 18:40:39 +02:00
Frank Denis
a4c41e5c8f
Rename the remaining unprefixed functions
...
argon2_fill_first_blocks() can be static
2019-06-10 18:40:14 +02:00
Frank Denis
557c7eafab
Rename fill_segment_* to argon2_fill_segment_*
2019-06-10 18:40:06 +02:00
Frank Denis
a03e6bd16d
Rename a few common internal symbols
2019-06-10 18:40:01 +02:00
Frank Denis
d3787c23b8
Rename PBKDF2_SHA256 to escrypt_PBKDF2_SHA256
2019-06-10 18:39:53 +02:00
Frank Denis
7c44e6a8c4
Remove useless macros hiding the actual symbol names
2019-06-10 18:39:48 +02:00
Frank Denis
28554e80ed
More DEV_MODE
2019-06-10 18:33:18 +02:00
Frank Denis
0cba1a075a
Add explicit "env" command
2019-06-10 18:30:57 +02:00
Frank Denis
7ec812b83d
Use MAP_CONCEAL on OpenBSD
2019-06-06 12:06:45 +02:00
Frank Denis
c322b1a63c
Revert "scrypt: reject r == 0 and p == 0"
...
This reverts commit 00c8ecd1c4
.
2019-06-01 15:33:51 +02:00
Frank Denis
6e4c496171
Fix Findsodium.cmake SODIUM_VERSION_STRING regex
2019-06-01 10:32:51 +02:00
Frank Denis
d1a1d85e84
ChangeLog nits
2019-05-31 00:44:38 +02:00
Frank Denis
940ef42797
1.0.18
2019-05-30 21:57:51 +02:00
Frank Denis
575babb389
Comment
2019-05-30 17:33:59 +02:00
Frank Denis
a53fbe4d48
10% speedup on AVX2 for BLAKE2b
...
Thanks to Shunsuke Shimizu (@grafi-tt)
2019-05-30 17:32:45 +02:00
Frank Denis
eefb1cd79e
Nits
2019-05-30 17:32:40 +02:00
Frank Denis
9094c7148c
Update AppVeyor
2019-05-30 17:29:20 +02:00
Frank Denis
3e2c488f0d
Update status badge
2019-05-29 20:55:08 +02:00
Frank Denis
4a6c0b6fc2
Add Azure Pipelines build status
2019-05-29 15:42:42 +02:00
Frank Denis
d438a807c0
Parallelize MinGW32 builds on Azure Pipelines
2019-05-29 15:33:33 +02:00
Frank Denis
fe2bdb39d5
Add support for Azure Pipelines
2019-05-29 14:41:48 +02:00
Frank Denis
611327356b
Update config.guess
2019-05-28 20:42:08 +02:00
Frank Denis
a340407388
Update appveyor version
2019-05-28 20:40:59 +02:00
Frank Denis
77572665ad
Support the enterprise version of Visual Studio
2019-05-28 20:28:01 +02:00
Frank Denis
39083793f5
Remove an unreliable scrypt test
...
Fixes #837
2019-05-21 13:15:37 +02:00
Frank Denis
d437e39034
autogen.sh: make config.guess update optional
2019-05-16 23:40:04 +02:00
Frank Denis
bb6f156412
Shorten
2019-05-12 13:53:53 +02:00
bas-d
5b9bc08d2f
Properly check if console exists.
2019-05-12 13:53:38 +02:00
Frank Denis
1b419ba366
Findsodium.cmake didn't properly return the package version
2019-05-12 10:59:03 +02:00
Frank Denis
1ae8e5e3b0
Export UTF8ToString
2019-05-04 19:21:21 +02:00
Frank Denis
6522f1047a
Regen, update config.{guess, sub}
2019-05-03 11:18:55 +02:00
Frank Denis
a37a90ccd2
Automatically update config.{sub,guess} in autogen.sh
2019-05-03 11:16:35 +02:00
Ilya Maykov
6bece9c8c4
Relax most __attribute__ ((nonnull)) to allow 0-length inputs to be NULL.
...
Justifications:
- crypto_(auth|hash|generichash|onetimeauth|shorthash)*:
it's legal to hash or HMAC a 0-length message
- crypto_box*: it's legal to encrypt a 0-length message
- crypto_sign*: it's legal to sign a 0-length message
- utils:
comparing two 0-length byte arrays is legal
memzero on a 0-length byte array is a no-op
converting an empty hex string to binary results in an empty binary string
converting an empty binary string to hex results in an empty hex string
converting an empty b64 string to binary results in an empty binary string
converting an empty binary string to b64 results in an empty b64 string
sodium_add / sodium_sub on zero-length arrays is a no-op
For the functions declared in utils.h, I moved the logic into private functions that
have the __attribute__ ((nonnull)) check, but they are only called when the
corresponding length argument is non-0. I didn't do this for the hash/box/sign
functions since it would have been a lot more work and quite a large refactor.
Only memset() may have issues with a zero length.
Fix tests, use guard page instead of NULL because of Wasm
2019-04-26 15:36:58 +02:00