1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 18:45:32 -07:00
Commit Graph

3777 Commits

Author SHA1 Message Date
Frank Denis
c8d604e1f1 Add test vectors for the string to curve operation 2020-03-31 13:40:42 +02:00
Frank Denis
3a736f4d19 Bump major 2020-03-31 12:21:14 +02:00
Frank Denis
728b26c2c1 Remove edwards25519sha512batch
Tagged as deprecated for years, never imported by `<sodium.h>`, and
intentionally never documented.

`edwards25519sha512batch` was just around for ABI compatibility
with NaCl, but no projects seem to be using it.
2020-03-31 12:11:32 +02:00
Frank Denis
ac48996492 Remove crypto_core_ed25519_from_hash()
Undocumented, was deprecated for a while in stable versions,
obsoleted by `_from_string()` and `from_string_ro()`.
2020-03-31 12:04:47 +02:00
Frank Denis
2d5b9547d1 yield in spinlock on aarch64 2020-03-30 22:00:35 +02:00
Frank Denis
bf3bc8c386 Add nonnull attributes for new functions 2020-03-30 17:44:17 +02:00
Frank Denis
5fdd12fa97 Add crypto_core_ed25519_from_string() and crypto_core_ed25519_from_string_ro() 2020-03-30 17:19:36 +02:00
Frank Denis
1cedeee7fe Code cleanup 2020-03-30 16:41:21 +02:00
Frank Denis
cdca37cea7 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Add an obsolete test, add a deterministic one for from_uniform()
2020-03-30 12:25:44 +02:00
Frank Denis
f2015a7aad Add a test 2020-03-30 12:25:25 +02:00
Frank Denis
092bf7cfd1 Add an obsolete test, add a deterministic one for from_uniform() 2020-03-30 12:24:29 +02:00
Frank Denis
1e7562f59b Remove useless self inclusion 2020-03-28 21:36:01 +01:00
Frank Denis
eab70f79c0 Add HKDF/SHA-512 and HKDF/SHA-256 2020-03-28 21:35:54 +01:00
Frank Denis
ca4e570f7b Update Travis file 2020-03-21 17:45:44 +01:00
Frank Denis
1972e217d5 Update wasi-sdk URL 2020-03-19 13:10:24 +01:00
Frank Denis
65f02e13eb Remove the Azure Pipelines windows-reallyold job
Azure removed the vs2015-win2012r2 image
2020-03-19 11:05:21 +01:00
Frank Denis
451bafc0d3 Include private/common.h wherever HAVE_*TRIN_H is required, for MSVC 2020-03-18 17:19:58 +01:00
Frank Denis
1088835f25 Bring the MacOS minimum version to 10.10 (Yosemite) 2020-03-18 17:19:51 +01:00
Frank Denis
e83b7eda98 ax_check_catchable_* checks don't just depend on the compiler 2020-03-15 09:43:46 +01:00
Frank Denis
3881198254 Bring back explicit 64 bit xor on 64 bit archs for gcc
gcc doesn't seem to be very efficient here, especially with -O2

up
2020-03-14 17:06:16 +01:00
Frank Denis
2105fbfd46 Remove XOP stub
XOP is dead
2020-03-14 15:56:08 +01:00
Frank Denis
cce4a86f99 Reformat comments 2020-03-14 00:22:41 +01:00
Frank Denis
8e21cab950 Simplify integerify()
Make offsets 64 bit in the SSE scrypt impl
2020-03-14 00:20:23 +01:00
Frank Denis
6c4437d987 Get rid of escrypt_block_t
Fixes #937
2020-03-13 23:21:27 +01:00
Frank Denis
f3b0e32d64 Format multi-line comments consistently 2020-03-11 19:14:54 +01:00
Loup Vaillant
e7e378fad1
Secretbox: explained non-portable behavior (#936)
Addresses #934

Some tools believe that comparing pointers, *even after converting them
to integers*, is undefined. A comment acknowledging this (as well as the
necessity of the comparison to begin with), can facilitate audits.

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2020-03-11 19:07:54 +01:00
Loup Vaillant
4bbc34c09c
Avoid memmove() call when buffers are already the same. (#935)
This completes the work started in commit
fbe3eb265f
2020-03-11 19:05:57 +01:00
Frank Denis
a0a8706c9d Revert "Use CMOV on x86_64"
This reverts commit afae623190.
2020-02-26 15:02:21 +01:00
Frank Denis
afae623190 Use CMOV on x86_64
CMOV has been constant time on all generations of x86_64 CPUs, even when
reading from memory.
2020-02-25 09:22:47 +01:00
Frank Denis
178359ddf9 Remove unmaintained Findsodium.cmake
Fixes #929
2020-02-08 12:47:04 +01:00
Frank Denis
f6f50a03da travis-ci.org -> travis-ci.com 2020-02-06 01:00:47 +01:00
Frank Denis
a6d317b2f3 Don't even define a .mult_base placeholder for sandy2x
Avoid two indirections for fixed base multiplication until another
implementation possibly exists.
2020-02-06 00:47:18 +01:00
Frank Denis
6a7fbccfd8 Remove sandy2x fixed base scalar multiplication
Thanks to precomputation, the generic implementation is faster.
2020-02-06 00:34:08 +01:00
Frank Denis
d227affc63 Add wasm3 to the set of supported WebAssembly runtimes 2020-02-04 19:52:25 +01:00
Frank Denis
89f3a09737 Temporarily remove support for Lucet
Lucet doesn't work on MacOS any more, so testing it has become difficult.
2020-02-04 19:27:09 +01:00
Frank Denis
705b4ef2c6
Add support for Catalyst (#923)
* added macOS Catalyst support

* removed unintended changes

* moved code snippets around

* Remove duplicate -fembed-bitcode

Co-authored-by: kappes <kappes@users.noreply.github.com>
2020-01-28 16:36:45 +01:00
Frank Denis
1c25d9cc6a Remove duplicate -fembed-bitcode 2020-01-28 13:43:05 +01:00
Frank Denis
41c7e47efd Set a default page size to 64K (wasm/linux large pages) 2020-01-05 21:01:28 -05:00
Frank Denis
587ffc825d 2020 2020-01-01 08:20:09 +01:00
Frank Denis
4f34318399 Try to build the NuGet packages in the next branch 2019-12-30 14:53:28 +01:00
Frank Denis
d83cb08137
Merge pull request #910 from ektrah/nuget-package-using-github-actions-pt2
Build NuGet package using GitHub Actions (Pt. 2)
2019-12-30 14:50:41 +01:00
ektrah
3163fdd1eb
Update packaging for .NET Core 2019-12-30 13:44:12 +01:00
ektrah
35be7759d9
Update packaging for .NET Core 2019-12-30 13:26:57 +01:00
ektrah
1db04a8e8c
Update packaging for .NET Core 2019-12-30 13:26:08 +01:00
Frank Denis
e0fee7008a
Merge pull request #909 from ektrah/nuget-package-using-github-actions
Build NuGet package using GitHub Actions
2019-12-30 10:32:52 +01:00
ektrah
76289a2db1 Update packaging for .NET Core 2019-12-29 20:43:54 +01:00
ektrah
896b0e254d
Build NuGet package using GitHub Actions 2019-12-29 20:38:01 +01:00
Frank Denis
3b26a5c1f1 Define _FORTIFY_SOURCE only on linux-gnu 2019-12-04 23:32:50 +01:00
Frank Denis
a72abb0ae1 Add missing randombytes.h inclusion in aead_aegis256.c 2019-12-04 21:07:33 +01:00
Frank Denis
dcc2e06c93
Merge pull request #893 from AJenbo/patch-1
Findsodium.cmake: Support "Generic" platform
2019-11-11 08:41:34 +01:00