1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00
Commit Graph

4190 Commits

Author SHA1 Message Date
Frank Denis
5ff2b1a0e7 Allow arbitrary long string-to-H2C-hash operations
Make the ristretto and edwards25519 string to hash code lookalike.
2021-01-23 21:41:20 +01:00
Frank Denis
41e6cb3368 Use SHA-256 for the hash-to-ristretto255 operation
We may eventually revert to SHA-512
2021-01-23 19:00:05 +01:00
Frank Denis
89916bbe11 Explicit 2021-01-07 19:54:07 +01:00
Frank Denis
ad65e5dc3e Update msys2 2021-01-05 20:30:24 +01:00
Frank Denis
fa66f4b6ed 2021 2021-01-01 00:02:37 +01:00
Frank Denis
899c3a62b2 CentOS doesn't exist any more 2020-12-10 23:16:32 +01:00
Frank Denis
c4a6c6b8bf CodeQL: remove git checkout HEAD^2 2020-12-10 23:16:31 +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
a5e2122177 Make the text logo slightly more readable in dark mode 2020-12-08 23:16:26 +01:00
Frank Denis
45bca21a95 Detect ARM features with elf_aux_info on FreeBSD >= 12.0
by @devnexen, thanks!

Fixes #1012
2020-12-04 15:34:27 +01:00
Frank Denis
761c1b34cd Reorganize ARM features detection 2020-12-04 15:27:32 +01:00
Frank Denis
7af3ed9237 wasm-ld doesn't support --no-threads any more 2020-12-03 17:32:15 +01:00
Frank Denis
5e262eeb8f Bump wasi-sdk version 2020-12-03 17:32:13 +01:00
Frank Denis
4aa74923d2 pwhash never supported "in-place" operation - return EINVAL 2020-11-24 22:50:15 +01:00
Frank Denis
dbbd8c6bb9 Update msys2-base 2020-11-13 21:48:41 +01:00
Frank Denis
ec552621cb apple-xcframework: add bitcode support to all emulators 2020-11-10 16:59:57 +01:00
David CARLIER
d250858c74
DragonFlyBSD supports getrandom too since 5.7 2020-11-08 15:58:29 +01:00
Frank Denis
3f1df65173 MSYS2's CI repository is no more 2020-11-04 19:29:33 +01:00
ektrah
e8f3c89847
Pack the NuGet package with .NET 5.0 (#1009)
* Update libsodium.pkgproj

* Update dotnet-core.yml
2020-11-04 17:03:28 +01:00
Frank Denis
b302c8e8e1 secretbox_xchacha: don't do useless rounds for the first block 2020-10-29 18:39:40 +01:00
Frank Denis
31436eb1df secretbox_open: no need to encrypt the first block twice 2020-10-29 18:30:14 +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
82652f0a0b Merge branch 'master' of github.com:jedisct1/libsodium into master
* 'master' of github.com:jedisct1/libsodium:
  docs: fix simple typo, interoperatibility -> interoperability (#1002)
  Repair AEGIS on aarch64
2020-10-12 11:51:13 +02:00
Tim Gates
b3fafe1291
docs: fix simple typo, interoperatibility -> interoperability (#1002)
There is a small typo in src/libsodium/include/sodium/crypto_hash.h, src/libsodium/include/sodium/crypto_hash_sha256.h, src/libsodium/include/sodium/crypto_hash_sha512.h.

Should read `interoperability` rather than `interoperatibility`.
2020-10-12 11:37:24 +02:00
Frank Denis
0263be7a15 Unbreak unchecked_sqrt if pointers are distinct 2020-10-06 13:27:09 +02:00
Frank Denis
29041d8ba1 Comment 2020-10-06 12:58:31 +02:00
Frank Denis
ae4add8681 Repair AEGIS on aarch64
fixes #999
2020-10-04 15:24:03 +02:00
Frank Denis
e945207b77 Remove unused variable in tests
Fixes #998
2020-09-29 11:05:31 +02:00
Frank Denis
3993b1a682 aegis mac: flip parameters to match their representation order 2020-09-27 23:38:02 +02:00
Frank Denis
3c83aeb4fa Shorten 2020-09-27 22:42:57 +02:00
Frank Denis
0454ae61c8 aegis: use more self-explanatory names for keys and nonces 2020-09-27 22:40:57 +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
dfcc95cb64 Merge branch 'master' of github.com:jedisct1/libsodium into master
* 'master' of github.com:jedisct1/libsodium:
  Add hash_to_ristretto255
  Move 2^511 -> 2^255-19 reduction to its own function
  Constify
2020-09-20 15:13:03 +02:00
Frank Denis
33b935921c Add hash_to_ristretto255
Identifier should be ristretto255_XMD:SHA-512_R255MAP_RO_
2020-08-23 18:28:58 +02:00
Frank Denis
ee962b33ae Move 2^511 -> 2^255-19 reduction to its own function 2020-08-23 18:28:17 +02:00
Frank Denis
3b8891540b Constify 2020-08-23 18:27:36 +02:00
Frank Denis
3d27ee0898 Nits 2020-08-21 07:07:17 +02:00
Frank Denis
ae330742cb Indent 2020-08-16 13:59:23 +02:00
Frank Denis
ee6f457225 argon2 - copy raw hash after possible encoding, not before
(irrelevant in libsodium)
2020-08-16 11:35:08 +02:00
Frank Denis
bc3b6a4694 Validate argon2 lanes before memory cost 2020-08-16 11:31:20 +02:00
Frank Denis
e919f86257 Comments 2020-08-15 13:51:04 +02:00
Frank Denis
b2d94a6da1 Cleaner ladder 2020-08-15 13:50:49 +02:00
Frank Denis
679f448d38 Indent 2020-08-14 08:37:39 +02:00
Frank Denis
d8c67b7f45 Clarify 2020-08-14 08:33:20 +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