Frank Denis
07de00bc9a
Revert -fno-asynchronous-unwind-tables addition
...
Try linking an object with AVX-512 opcodes instead
2017-09-15 15:10:01 +02:00
Frank Denis
9aa1165314
up
2017-09-15 15:01:33 +02:00
Frank Denis
eb8c283dd8
Add -fno-asynchronous-unwind-tables to optimized builds
...
No need to check if the linker supports this.
2017-09-15 14:57:24 +02:00
Frank Denis
186b398a21
-fno-asynchronous-unwind-tables is now required on MingW
2017-09-15 14:39:37 +02:00
Frank Denis
7de597f051
Update m4 deps ; remove pkg.m4
2017-09-15 14:24:07 +02:00
Frank Denis
383705ffc2
The AVX512 optimized BLAKE2B implementation hasn't been imported yet
2017-09-15 13:15:43 +02:00
Frank Denis
f86f021acf
Travis CI : Move the tcc check to the install step
2017-09-15 13:12:17 +02:00
Frank Denis
19496bcc01
Don't try to access /usr/local on Travis CI
2017-09-15 13:08:14 +02:00
Frank Denis
ca43a12683
Old tcc versions miscompile while (++in[x])
...
So, let's just keep things readable, even for compilers.
2017-09-15 12:58:47 +02:00
Frank Denis
10edd16b40
Modernize the core3 test
2017-09-15 12:39:18 +02:00
Frank Denis
dcde773e5b
Travis CI: don't run multiple jobs in parallel due to memory requirements
2017-09-15 12:25:15 +02:00
Frank Denis
150c6930e0
Travis CI: avoid duplicate addons section
2017-09-15 12:21:03 +02:00
Frank Denis
cdfb0aaa32
tcc + travis...
2017-09-15 12:11:21 +02:00
Frank Denis
9f40111977
tcc doesn't seem to work on Travis CI
2017-09-15 12:08:43 +02:00
Frank Denis
7e8cdd8279
Travis: start with a quick compilation using tcc
2017-09-15 12:03:53 +02:00
Frank Denis
c6aa04108e
Move #ifdef up
2017-09-15 10:19:34 +02:00
Frank Denis
b31a3f247e
Disable AVX512 optimizations on clang < 4
2017-09-15 10:10:30 +02:00
Frank Denis
4aba976d5f
Explicit casts
2017-09-15 01:00:43 +02:00
Frank Denis
15ee95c64c
Remove unused var
2017-09-15 00:57:44 +02:00
Frank Denis
dcd60ba661
Force inline
2017-09-15 00:06:37 +02:00
Frank Denis
5cc334b33c
Add AVX512F optimized Argon2 implementation
2017-09-15 00:04:18 +02:00
Frank Denis
70f66c9a6d
Check for avx/avx2/avx512f linkage
2017-09-14 00:05:37 +02:00
Frank Denis
6866b3d555
Use macros instead of magic numbers
2017-09-13 23:42:21 +02:00
Frank Denis
1c0677b09f
Check for AVX512F support
2017-09-13 23:35:20 +02:00
Frank Denis
80095105bb
Missing pieces of a version bump
2017-09-13 19:39:36 +02:00
Frank Denis
390f865e35
Add tests for scrypt rehash
2017-09-13 18:47:55 +02:00
Frank Denis
2a2b85eeea
Add tests for crypto_pwhash_str_needs_rehash()
2017-09-13 18:40:14 +02:00
Frank Denis
979b21d67b
Remove extra semicolumns
2017-09-13 12:45:04 +02:00
Frank Denis
62c41c703e
Avoid untagged unions
2017-09-13 12:42:00 +02:00
Frank Denis
5cf1de94ad
Remove trailing coma
2017-09-13 12:03:24 +02:00
Frank Denis
3aa1c71de1
Don't return void
2017-09-13 11:43:39 +02:00
Frank Denis
d0a418a863
+ _crypto_pwhash_scryptsalsa208sha256_str_needs_rehash()
2017-09-13 00:36:29 +02:00
Frank Denis
6dcba550c2
Confirm that emcc is actually being used if EMSCRIPTEN is defined
...
Fixes #544
2017-09-11 14:06:07 +02:00
Frank Denis
0ae678b0f9
Avoid multiple declarations in an EN_ASM({}) block
...
Some emscripten versions don't seem to support it.
2017-09-11 11:49:59 +02:00
Frank Denis
b26de68a67
Use single quotes inside EM_ASM
2017-09-11 02:13:38 +02:00
Frank Denis
1aae564da3
Avoid duplicate initializations; reorder for consistency w/ decl
2017-09-10 22:19:51 +02:00
Frank Denis
81cf1ff6d1
Use unsigned for loop counters
2017-09-10 22:15:23 +02:00
Frank Denis
e2efa6d7e0
Remove unused variable
2017-09-10 22:09:06 +02:00
Frank Denis
e06c70afe8
Use the dedicated type for the argon2 type id
2017-09-07 13:53:21 +02:00
Frank Denis
378304f818
Export crypto_pwhash_str_needs_rehash() to Javascript/WebAssembly
2017-09-06 21:00:34 +02:00
Frank Denis
e8828eef79
Don't bother verifying hashes whose length is >= crypto_pwhash_STRBYTES
2017-09-06 20:26:36 +02:00
Frank Denis
7cc4825231
Add crypto_pwhash_str_needs_rehash()
2017-09-06 20:08:20 +02:00
Frank Denis
c65189a0cb
Explicit casts
2017-09-06 16:04:28 +02:00
Frank Denis
7b687bb45e
+ Jonathan Stowe for Natrium (Perl 6 bindings)
2017-09-05 15:53:56 +02:00
Frank Denis
c72ef48f01
Static-ify what we currently don't need in crypto_core/curve25519_ref10
2017-08-31 21:08:59 +02:00
Frank Denis
5c8b8ea01c
Simplify
2017-08-31 20:14:16 +02:00
Frank Denis
0af31aeb26
Fill the max output buffer size in sodium_bin2base64()
...
Unlike hex encoding, due to optional padding, computing the correct size is
not straightforward. Ensuring that the string ends with `\0` is fine, but
if the size is not exact, some unrelated data might be send around by the
application. So, zero it to be safe.
2017-08-31 19:32:14 +02:00
Frank Denis
6b43c1ddb6
Javascript: don't define crypto_pwhash constants in non-sumo builds
2017-08-27 16:27:07 +02:00
Frank Denis
e236df63e1
Trim empty lines
2017-08-26 17:56:18 +02:00
Frank Denis
75cfcf208c
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
Do not clear the padding (for alignment) section of a blake2b state
2017-08-26 17:48:13 +02:00