Commit Graph

3817 Commits

Author SHA1 Message Date
Frank Denis
2916230061 Add a guideline 2018-12-23 18:49:56 +01:00
Frank Denis
b4617940f3 Correct sc25519_reduce() prototype 2018-12-23 18:45:28 +01:00
Frank Denis
63573bb98c Add crypto_core_ed25519_scalar_random() 2018-12-23 12:32:07 +01:00
Frank Denis
6fa0220302 Export crypto_core_ed25519_scalar_reduce, add tests 2018-12-23 02:56:11 +01:00
Frank Denis
fdeb11d81c Regen emscripten symbols 2018-12-20 20:09:57 +01:00
Frank Denis
36f2d99fac Add crypto_core_ed25519_{scalar_invert, ed25519_scalar_reduce)()
These new low-level APIs are especially useful for blinding.
2018-12-20 20:05:34 +01:00
Frank Denis
b6051b7ee2 Add tests for unclamped scalars 2018-12-18 23:11:15 +01:00
Frank Denis
b42082d6d2 Add unclamped versions of scalarmult_ed25519*() 2018-12-18 22:46:56 +01:00
Frank Denis
536ed00d2c Merge branch 'master' of github.com:jedisct1/libsodium 2018-12-10 21:05:47 +01:00
Frank Denis
055e0ae82c Even in non-deterministic EdDSA, the actual secret key is H(sk). 2018-12-10 21:05:40 +01:00
Frank Denis
fec4c92d81 Even in non-deterministic EdDSA, the actual secret key is H(sk). 2018-12-10 21:03:52 +01:00
Ilya Maykov
c60df7b9ff Made sig parameter of crypto_sign_final_verify() const 2018-12-03 21:02:31 +01:00
Frank Denis
67f98598e1 Regen autoconf 2018-11-30 15:20:08 +01:00
Frank Denis
7e590f7cce Merge old compiler detection with AVX512f support detection
Maybe
fixes #786
2018-11-30 15:19:45 +01:00
Frank Denis
762e5136ed Merge old compiler detection with AVX512f support detection
Maybe
fixes #786
2018-11-30 15:18:52 +01:00
Frank Denis
a1dff41891 LONG_LONG_* -> LLONG_* 2018-11-11 00:00:13 +01:00
Marco
a3b81c323a Fix broken link to documentation in README 2018-11-06 17:43:44 +01:00
Frank Denis
4917510626 Regen ./configure 2018-10-31 10:44:27 +01:00
Frank Denis
43d51e4e6d Disable AVX512 when using ancient versions of GCC 2018-10-31 10:38:43 +01:00
Frank Denis
e60bb52a33 Disable AVX512 when using ancient versions of GCC 2018-10-31 10:38:09 +01:00
Frank Denis
a8abbec660 watchOS arm64 is actually arm64_32 2018-10-22 19:22:46 +02:00
Frank Denis
0d3640609e Make watchos.sh looks like other scripts 2018-10-22 19:11:18 +02:00
Joseph Ross
8f5a748335 Add dist-build script to build libsodium for WatchOS. 2018-10-22 19:07:12 +02:00
Frank Denis
1dae690ad7 Avoid memset(NULL, _, 0) 2018-10-18 13:49:42 +02:00
Frank Denis
52f814e50c Avoid memset(NULL, _, 0) 2018-10-18 13:49:12 +02:00
Frank Denis
67b0b476d8 Add incomplete nonnull attributes 2018-10-18 13:22:37 +02:00
Frank Denis
0d948d4b7e Use chacha20_ietf in the tv_ietf test
Fixes #772
2018-10-18 00:43:55 +02:00
Frank Denis
574a45afc3 Add a dummy return value 2018-09-30 23:49:57 +02:00
Frank Denis
c4f03ededb Add a dummy return value 2018-09-30 23:49:34 +02:00
Frank Denis
82b1739b98 Add getrandom(2) support for FreeBSD 12 2018-09-30 16:44:27 -05:00
Ryan Lester
2a8c2426b5 useBackupModule getRandomValue fix 2018-09-30 00:41:45 +02:00
Frank Denis
a67c72ea2d
Merge pull request #763 from buu700/master
useBackupModule getRandomValue fix
2018-09-29 17:40:22 -05:00
Ryan Lester
34cbaa8dcd
useBackupModule getRandomValue fix 2018-09-29 18:22:42 -04:00
Frank Denis
9771795351 Revert "Add getrandom(2) support for FreeBSD 12"
This reverts commit 52fdd7ab39.

Due to TinyC crashing.
2018-09-29 22:53:05 +02:00
Frank Denis
9d5fcef52e Revert "TinyC now crashes on Travis when compiling sysrandom"
This reverts commit 44dccfe6d4.
2018-09-29 22:52:56 +02:00
Frank Denis
44dccfe6d4 TinyC now crashes on Travis when compiling sysrandom 2018-09-29 22:48:53 +02:00
Frank Denis
52fdd7ab39 Add getrandom(2) support for FreeBSD 12
Fixes #762
2018-09-29 22:37:39 +02:00
Frank Denis
ff15272cf0
Merge pull request #761 from devnexen/explicit_memset_support_in_utils
Provides explicit_memset supports/NetBSD.
2018-09-29 13:48:50 -05:00
David Carlier
b3ba348d08 Provides explicit_memset supports/NetBSD.
Similar to explicit_bzero function is to defeat
compiler optimisation.
2018-09-29 19:19:23 +01:00
SlavSlavov
70d52cbea2 Update Findsodium.cmake
A STREQUAL was left during the previous fix. Removed now.
2018-09-27 18:51:04 -05:00
Frank Denis
d922c2480c
Merge pull request #760 from SlavSlavov/patch-2
Update Findsodium.cmake
2018-09-27 17:50:10 -06:00
SlavSlavov
4f8e068b67
Update Findsodium.cmake
A STREQUAL was left during the previous fix. Removed now.
2018-09-27 22:31:40 +01:00
SlavSlavov
c0cb0a9f98 Update Findsodium.cmake
When libsodium is build and installed from source, the line:
list(REMOVE_DUPLICATES sodium_PKG_STATIC_LIBRARIES)
generates an error because sodium_PKG_STATIC_LIBRARIES is empty
The proposed change fixes this issue
2018-09-26 23:00:01 -06:00
Frank Denis
350a23ae5d
Merge pull request #759 from SlavSlavov/patch-1
Update Findsodium.cmake
2018-09-27 06:59:25 +02:00
SlavSlavov
595ef91557
Update Findsodium.cmake
When libsodium is build and installed from source, the line:
list(REMOVE_DUPLICATES sodium_PKG_STATIC_LIBRARIES)
generates an error because sodium_PKG_STATIC_LIBRARIES is empty
The proposed change fixes this issue
2018-09-26 20:59:59 +01:00
Frank Denis
675a899d11 No need to provison for the tag if we are below SIZE_MAX 2018-09-12 15:26:38 +02:00
Frank Denis
90112d3eb0 Substract the number of blocks, and make similar code more uniform 2018-09-12 15:26:33 +02:00
Frank Denis
b7abc4542e No need to provison for the tag if we are below SIZE_MAX 2018-09-12 15:22:30 +02:00
Frank Denis
f0e5c3940d Substract the number of blocks, and make similar code more uniform 2018-09-12 15:19:56 +02:00
Frank Denis
3574ab879e Do not even use untested code in non-production environments 2018-09-12 14:53:16 +02:00