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

4180 Commits

Author SHA1 Message Date
Frank Denis
fbe2c92f0d AEGIS: rename constants to match the draft 2022-01-04 16:06:44 +01:00
Frank Denis
d2de91eb20 2022 2021-12-31 23:55:42 +01:00
Frank Denis
75175f8ec6 android-build: use -z 2021-12-28 22:41:31 +01:00
Frank Denis
c72dce4075 androit-build: add extra quotes 2021-12-28 22:39:25 +01:00
Frank Denis
6274dd3598 The Android NDK cannot target API level 16 any more; bump to 19 2021-12-28 22:37:53 +01:00
Frank Denis
003ad0f1c9 Don't use legacy quotes 2021-12-28 22:15:08 +01:00
ReenigneCA
c3d0f1b666
update android build scripts to support latest ndk version and prebuilt toolchains (#1138)
* Update android-armv7-a.sh

update HOST_COMPILER variable to be compatible with updated android-build.sh that supports latest ndk and use of prebuilt toolchains.

* Update android-build.sh

update to allow use of prebuilt toolchains in latest ndk. The latest ndk does not support arm prior to armv7a and the HOST_COMPILER for armv7a must now be armv7a not just arm.

* Delete android-arm.sh

arm prior to armv7a is no longer supported by android ndk.

* Update android-build.sh

removing unneeded MAKE_TOOLCHAIN variable

* Update Makefile.am

removing obsolete android targets

* Delete android-mips32.sh

* Delete android-mips64.sh
2021-12-28 22:12:52 +01:00
Frank Denis
234b7d4ab7 CI: Update Android NDK to r24-beta2 2021-12-28 22:11:28 +01:00
Frank Denis
447cd270d9 edwards25519: faster recovery of the X coordinate 2021-12-27 15:16:56 +01:00
Frank Denis
5df53ce62b Revert "wasm-opt: use --strip-debug"
This reverts commit 85bdde2817.
2021-11-18 14:15:02 +01:00
Niyas Sait
13144d11c1
Enable building win/arm64 package using visual studio (#1130)
* Retarget Visual studio tool chain to v142

* add ARM64 option to wintest.bat

* add windows/arm64 target to appveyor for CI

* add arm64 targets to visual studio solutions

* add cross compile option to wintest.bat

* Fix missing SET in wintest.bat

* update auto-generation scripts for msvc and update project files
2021-11-18 00:43:23 +01:00
Frank Denis
85bdde2817 wasm-opt: use --strip-debug 2021-11-17 21:02:17 +01:00
Frank Denis
ddef5f37a8 Add issue template 2021-11-12 22:57:25 +01:00
Frank Denis
089f850608 Remove expected length from the pwhash_str_verify()/needs_rehash() 2021-11-11 14:15:24 +01:00
Frank Denis
df37f22de0 Azure Pipelines: build on MSVC 2022 2021-11-11 12:58:09 +01:00
Frank Denis
eba7c5e0f4 dotnet-core: add aarch64-macos builds
Fixes #1106
2021-11-11 12:38:46 +01:00
Frank Denis
5eb07a9bcc qemu is not needed 2021-11-11 12:13:29 +01:00
Frank Denis
4042deda8c Revert "Retarget the base Visual Studio solution"
This reverts commit 1bdefd6a4e.
2021-11-11 12:11:43 +01:00
Frank Denis
06db7fad81 Indent GitHub Actions code 2021-11-10 15:56:51 +01:00
Frank Denis
826b7d2a10 Compile assembly files 2021-11-10 15:40:20 +01:00
Frank Denis
620d4529b6 Strip non-debug builds 2021-11-10 15:35:22 +01:00
Frank Denis
91340df7a0 Correct target library name 2021-11-10 15:33:37 +01:00
Frank Denis
1329ba8ad8 Remove duplicate definition 2021-11-10 15:31:59 +01:00
Frank Denis
59b869b356 Add preliminary build.zig file 2021-11-10 15:31:32 +01:00
Frank Denis
1bdefd6a4e Retarget the base Visual Studio solution 2021-11-08 22:27:17 +01:00
Frank Denis
7b734bd58e Add Visual Studio 2022 support 2021-11-08 22:19:20 +01:00
Frank Denis
b65f8fdf4f Remove unused variables 2021-11-08 22:00:33 +01:00
Frank Denis
7052e4733f H2C: Y should be negative is gx1 is a square
Fixes #1119
2021-11-08 14:31:14 +01:00
Jørgen P. Tjernø
64129657a5
Portability improvements (#1105)
* Move `raise` code to be behind an autoconf check

This moves the call to `raise` behind a `HAVE_RAISE` autoconf check,
in addition to `__wasm__`. This is intended to help porting to
other platforms that don't support `raise` (e.g. modern game consoles).

* Add autoconf check for `sysconf`

Only try to invoke `sysconf` if the target platform supports it, and
don't warn about unknown page size if `PAGE_SIZE` was defined. Add an
include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`.
This is intended to help porting to other platforms that don't support
`sysconf` (e.g. modern game consoles) that have a fixed hardware page
size.

* Don't try to use raise & sysconf in a WASI environment

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2021-09-16 20:01:24 +02:00
Frank Denis
fe1d6d11aa Update msys2 2021-07-25 21:46:37 +02:00
Frank Denis
038e4114e9 fe25519_reduce64: handle the top bit
This is only for code clarity and for people copy/pasting that
private code to use it in a different context.

The top 128 bits are always zero.
2021-07-22 00:41:50 +02:00
Frank Denis
78c9d1eade Azure Pipelines CI: remove the need for llvm 2021-07-19 13:00:16 +02:00
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
07c2f6c053 Handle the Sun and the IBM compilers separately 2021-07-09 15:47:40 +02:00
infinitydev
b9b66faddb
Fix build on z/OS using XLC (#1089)
* Fix incorrect XLC #pragma in public header

* Fix incorrect XLC #pragma in internal blake2 header
2021-07-09 15:38:07 +02:00
niooss-ledger
6cd2677d44
Remove unused variable from _sodium_runtime_intel_cpu_features (#1085)
The function `_sodium_runtime_intel_cpu_features` assigns some value to
its local variable `id` but never reads it. Remove this variable, which
also simplifies the `if` statement that contains the assignment.
2021-07-01 10:05:30 +02:00
Frank Denis
6efaa0264a emscripten: EXTRA_EXPORTED_RUNTIME_METHODS -> EXPORTED_RUNTIME_METHODS 2021-06-17 21:58:25 +02:00
Frank Denis
558886fd0e Use assignement + case instead of memcpy() 2021-06-17 20:57:21 +02:00
Christian Brabandt
42f7aff759
fix link to contributing (#1076) 2021-06-16 16:08:16 +02:00
Frank Denis
a2ee77b90a Include private/sse2_64_32.h only where SSE2 is required
Fixes #1074
2021-06-13 21:40:54 +02:00
Frank Denis
4aafe7517a Update msys2 2021-06-13 18:52:15 +02:00
Alcaro
9faa6bb62b
core.c: Make _sodium_crit_init static (#1073) 2021-06-13 18:22:32 +02:00
Frank Denis
7993f5ec51 Format 2021-06-02 21:35:16 +02:00
Alistair Evans
96f70b0c8a
Add multi-plat nuget package testing (#1070)
Build .net binaries targeting the various linux platforms as a self-contained deployment, then use QEMU to run those binaries on the appropriate architecture
2021-06-01 17:58:01 +02:00
Frank Denis
ca638d428a Format 2021-05-26 19:59:11 +02:00
Alistair Evans
6f8362dc87
Adding linux-arm support for the .net build (#1069)
Generate an armhf cross-compile.
2021-05-26 19:58:54 +02:00
Frank Denis
e1186130f7 sync dotnet-core.yml with stable 2021-05-26 19:57:33 +02:00
Frank Denis
d1a5aaecf0 Ubuntu 16.04 has reached EOL and Alpine 3.7 looks really old as well 2021-05-26 16:23:00 +02:00
Frank Denis
cf2766d685 Format 2021-05-26 16:11:25 +02:00