Commit Graph

3341 Commits

Author SHA1 Message Date
Jakob Rieck
d7df251cd0 Fixes padding for blocksizes > 256 2018-08-27 12:22:07 +02:00
Ryan Lester
51d76b88df iOS fix 2018-08-23 10:18:31 +02:00
Ruslan Baratov
16744191cc Remove '*.cmake' pattern from .gitignore 2018-08-07 20:22:56 +02:00
Frank Denis
49f112da5d xchacha20 test: initialize the full nonce
Spotted by @FiloSottile, thanks!

Fixes #742
2018-08-03 23:24:55 +02:00
Frank Denis
2052cc7847 strnlen() may not be available everywhere 2018-07-22 21:55:01 +02:00
Frank Denis
d2728ad93e Merge branch 'stable' of github.com:jedisct1/libsodium into stable
* 'stable' of github.com:jedisct1/libsodium:
  Nits
2018-07-22 21:40:51 +02:00
Frank Denis
e8fea07f19 memchr() can process its input in any order
Fixes #737
2018-07-22 21:27:56 +02:00
Frank Denis
dcd9b13e31 Nits 2018-07-19 14:44:42 +02:00
Anton Maklakov
c398a51e21 Fix warnings that appeared in GCC7+ (related to -Wimplicit-fallthrough) 2018-07-04 21:19:04 +02:00
Frank Denis
bff91a85f4 Clarify what --disable-asm does 2018-07-03 18:00:38 +02:00
Ryan Lester
973cdb5143 fix for emscripten breaking change (https://github.com/kripken/emscripten/pull/6419) 2018-06-30 20:59:57 +02:00
Frank Denis
8b346c86b8 Visual Studio documentation states that eax/ecx/edx don't need to be
preserved in inline assembly code. But that doesn't seem to always
hold true on Visual Studio 2010.
2018-05-12 09:11:01 +02:00
Frank Denis
9c6b2e0ceb zap trailing spaces 2018-04-29 17:48:39 +02:00
Tom Auger
7432c4394b Use _MESSAGEBYTES_MAX in crypto_aead_xchacha20poly1305 2018-04-29 17:48:03 +02:00
Emil Bay
1600dda632 Missing test for abytes 2018-04-29 17:47:55 +02:00
Frank Denis
06ee95c3f1 Regen autoconf scripts 2018-03-14 12:03:49 -07:00
Frank Denis
31a876a525 build scripts: compile deprecated functions if LIBSODIUM_FULL_BUILD is defined 2018-03-14 12:01:10 -07:00
Frank Denis
f11ffbdd67 wasm bug check: use a function more likely to be present in minimal builds 2018-03-06 10:56:05 +01:00
Ryan Lester
bb437be60c run-time wasm test before resolving ready 2018-03-06 10:54:42 +01:00
Simon Warta
663c6f3af6 Remove obsolete setting FUNCTION_POINTER_ALIGNMENT
FUNCTION_POINTER_ALIGNMENT was removes from emscripten in January 2018:
https://github.com/kripken/emscripten/pull/6091
2018-03-02 11:28:50 +01:00
Frank Denis
5ebc0d4029 Embed bitcode in iOS builds 2018-02-24 01:47:51 +01:00
Frank Denis
b862bf0267 Include limits.h for ancient Android NDKs. Sigh. 2018-01-19 16:46:46 +01:00
Frank Denis
729d80a1ac Include <stdint.h> for SIZE_MAX, and <stddef.h> as a dependency 2018-01-19 15:25:39 +01:00
Frank Denis
f1e330d7d7 Regen configure 2018-01-17 01:29:43 +01:00
Frank Denis
19d1affa79 Revert "Check for -mretpoline / -zretpolineplt support"
This reverts commit 93887f179d.
2018-01-17 01:28:46 +01:00
Frank Denis
046821b5c1 emscripten: do not use closure 2018-01-15 13:33:58 +01:00
Frank Denis
60e86eb03d Regen configure 2018-01-07 15:41:43 +01:00
Frank Denis
482ec23611 Check for __aarch64__ instead of __ARM_NEON for 128-bit arithmetic 2018-01-07 15:41:27 +01:00
Frank Denis
4df69b6310 Regen configure 2018-01-04 18:05:54 +01:00
Frank Denis
d76885d554 Check for -mretpoline / -zretpolineplt support 2018-01-04 18:05:26 +01:00
Frank Denis
5398407a5b 2018 2018-01-04 18:05:23 +01:00
Frank Denis
090b8318cb Regen configure script 2017-12-31 01:37:28 +01:00
Frank Denis
59f8556bfa Check if we can use inline asm code, not only on x86_64 2017-12-31 01:24:26 +01:00
Frank Denis
8c2e89d109 Use (""::"r"(pnt):"memory") instead of (""::"p"(pnt)) for the barrier 2017-12-31 01:10:48 +01:00
Frank Denis
88c1dd29ce Disable LTO in ios/osx build scripts 2017-12-31 00:57:16 +01:00
Frank Denis
103e3decad Regen configure 2017-12-27 09:28:09 +01:00
Ryan Lester
0ceb245eea Closure fix 2017-12-27 08:54:20 +01:00
Ryan Lester
a8aedc7ce2 updates for latest emscripten 2017-12-27 08:54:13 +01:00
Frank Denis
71966fd0c6 emscripten: malloc() and free() should be exported as library symbols 2017-12-25 23:35:06 +01:00
Frank Denis
942a6f9fa6 Export setValue, getValue 2017-12-25 22:59:41 +01:00
Frank Denis
deb4a223d2 emscripten: move the set of exported runtime methods 2017-12-25 22:35:02 +01:00
Frank Denis
feddd3fab9 emscripten: export _malloc() and _free() 2017-12-25 22:31:39 +01:00
Frank Denis
a3d8450109 emscripten: export Pointer_stringify() for recent emscripten versions 2017-12-25 22:20:04 +01:00
Frank Denis
b92e7b40ed Brace yourself 2017-12-22 17:06:38 +01:00
Frank Denis
6b38e87f01 Remove the dummy FS call from the Javascript tests 2017-12-21 21:36:15 +01:00
Frank Denis
f8ad9651f9 Javascript tests: don't call FS.*() if the filesystem module is not present 2017-12-21 21:27:50 +01:00
Frank Denis
eeb135010d Emscripten: run the tests in benchmark mode 2017-12-21 18:51:56 +01:00
Frank Denis
69834d667e Static 2017-12-21 18:50:11 +01:00
Frank Denis
bee480cfd3 Extra braces 2017-12-21 16:57:04 +01:00
Frank Denis
fb53590047 Remove unused LOAD128() and STORE128() macros 2017-12-21 16:48:52 +01:00