1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-28 22:21:15 -07:00
Commit Graph

364 Commits

Author SHA1 Message Date
Frank Denis
677572ec1b No need to define the STRIP command 2021-07-19 12:53:26 +02:00
Frank Denis
c2d66aaec9 WASI: remove wasi-sdk dependency; build module with zig 2021-07-19 12:45:33 +02:00
Frank Denis
6efaa0264a emscripten: EXTRA_EXPORTED_RUNTIME_METHODS -> EXPORTED_RUNTIME_METHODS 2021-06-17 21:58:25 +02:00
Frank Denis
85e48722a8 Enable crypto extensions on ARMv8 2021-04-08 11:13:40 +02:00
Simon Wachter
12f03c310f
emscripten: build with NODEJS_CATCH_REJECTION=0 (#1025)
This stops emscripten from adding a `unhandledRejection` handler on the global `process` object that forcefully exits the process.

This allows fixing jedisct1/emscripten.js#253 because we no longer need to remove these listeners to compensate after the fact.
2021-01-28 16:27:36 +01:00
Frank Denis
eb38ff4a85 Sort 2020-12-10 22:22:38 +01:00
Frank Denis
611e1a0bc1 Typo (risretto -> ristretto)
Fixes #1014
2020-12-10 22:17:06 +01:00
Frank Denis
7af3ed9237 wasm-ld doesn't support --no-threads any more 2020-12-03 17:32:15 +01:00
Frank Denis
ec552621cb apple-xcframework: add bitcode support to all emulators 2020-11-10 16:59:57 +01:00
Frank Denis
1801900486 Build the watchOS simulators with bitcode 2020-10-21 17:01:52 +02:00
Frank Denis
b02dbf2519 Register _crypto_core_ristretto255_from_string_ro 2020-10-13 16:36:14 +02:00
Dan Browne
1ff1708fe4 Add tvOS support for Apple XCFramework generation. 2020-10-13 16:25:06 +02:00
Frank Denis
dd72efe41f emscripten: RUNNING_JS_OPTS has been removed in recent versions 2020-10-13 16:25:06 +02:00
Frank Denis
6b51f7ffb1 Include arm64 simulators 2020-09-21 03:13:02 +02:00
Frank Denis
7f8a4d1fa5 Shared libraries may not be buildable for Catalyst 2020-09-21 00:28:05 +02:00
Frank Denis
547f5b1130 Check if the compiler supports the arm64-macos target
instead of checking that this is what the host is running.

Xcode 12 may be able to compile for Apple Silicon even on Intel
platforms already.
2020-08-06 15:59:58 +02:00
Frank Denis
882f1be006 Bring Catalyst support back, properly forcing cross-compilation 2020-08-06 15:47:10 +02:00
Frank Denis
0a213f7a93 Revert "Remove support for Catalyst"
This reverts commit a530849511.
2020-08-06 15:29:22 +02:00
Frank Denis
a530849511 Remove support for Catalyst 2020-08-05 18:17:26 +02:00
Frank Denis
d8fbab4f85 xcframework: also compile for macOS, rename to apple-xcframework.sh 2020-08-05 17:42:38 +02:00
Frank Denis
68b64b6ab8 OSX -> MACOS 2020-08-05 17:34:44 +02:00
Frank Denis
7e9095bcc5 WASI: Put the stack before globals
See https://github.com/ziglang/zig/issues/4496
2020-07-28 15:06:04 +02:00
Frank Denis
e60ac864bc ios-xcframework: build for iOS/watchOS on all platforms
Xcode 12 beta 3 now includes the required SDKs.
2020-07-23 20:08:13 +02:00
Frank Denis
906004be2b Update dist-build/Makefile.am after ios.sh renaming 2020-07-23 17:40:06 +02:00
Frank Denis
f8eb6ef24b Rename ios.sh to ios-xcframework.sh so that the latter can go to stable 2020-07-23 16:18:54 +02:00
Frank Denis
6388063c85 ios.sh: build the XCFramework in a single pass
Via @Westacular @svdo
Fixes #985
2020-07-21 14:14:08 +02:00
Frank Denis
d1d777532f ios.sh: don't build Catalyst/arm64 on x86_64 hosts for now
Fixes #980
2020-07-05 01:40:52 +02:00
Frank Denis
21d93b944a osx.sh -> macos.sh 2020-07-04 15:48:56 +02:00
Frank Denis
9340fbebe7 Format 2020-07-04 15:32:13 +02:00
Frank Denis
27f4134785 Add support for Catalyst on Apple Silicon
Of course, we should do feature detection instead of system detection,
but future Xcode 12 versions are probably going to bring things on par.
2020-07-03 22:44:43 +02:00
Frank Denis
a0bee2a883 Remove ios-xcframework.sh and watchos.sh; consolidate ios.sh 2020-07-03 21:29:59 +02:00
Frank Denis
2aae747916 Move global definitions up 2020-07-03 19:47:13 +02:00
Frank Denis
c5d1c546c6 Reduce the differences between ios.sh and ios-xcframework.sh 2020-07-03 19:44:01 +02:00
Alexander Mindov
13e0eb4972
added iOS xcframework build script (#979)
Co-authored-by: Philip M. Sneed <38544113+0xacdc@users.noreply.github.com>
2020-07-03 18:10:00 +02:00
Greg Hazel
c6506e6441
android-build.sh: exit with return code 1 if the NDK is not present 2020-06-06 09:36:57 +02:00
Frank Denis
af27d27f8c emscripten: force filesystem inclusion for tests 2020-05-26 17:32:22 +02:00
Frank Denis
c3ca08913c Add AEGIS-128L for no good reasons 2020-05-19 15:36:22 +02:00
Frank Denis
c2efce113d Add crypto_core_{ed25519,ristretto255}_scalar_is_canonical() 2020-05-13 22:59:08 +02:00
Frank Denis
67a9e79655 Remove memory shielding
That was a great idea to protect against information leak through
speculative loads.

Realistically, nobody is going to use this.
2020-05-10 21:05:24 +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
5fdd12fa97 Add crypto_core_ed25519_from_string() and crypto_core_ed25519_from_string_ro() 2020-03-30 17:19:36 +02:00
Frank Denis
eab70f79c0 Add HKDF/SHA-512 and HKDF/SHA-256 2020-03-28 21:35:54 +01:00
Frank Denis
1088835f25 Bring the MacOS minimum version to 10.10 (Yosemite) 2020-03-18 17:19:51 +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
c8b6906c60 has_armcrypto_aes -> has_armcrypto 2019-10-23 19:07:33 +02:00
Frank Denis
db64ee1787 Bump the minimum iOS version to iOS 9
Add stricter checks for getrandom()/getentropy()
2019-10-23 18:11:12 +02:00
Frank Denis
b614cfc37f Bump iOS min version to 8.0.0 2019-10-23 18:02:43 +02:00