Frank Denis
6d566070b4
Add some more base64 decoding tests
3 years ago
Frank Denis
c93662b27c
Add AEGIS128L test, regen the ones for AEGIS256, sort
3 years ago
Frank Denis
421212fe42
Add LLVM, move lucet down
3 years ago
Tobias Nießen
2082e038fd
test: fix two error messages ( #1034 )
3 years ago
Frank Denis
55bb5af253
wasm bench: make lucet performance significantly better
By default, lucetc generates code with explicit bound checking,
even though the runtime has guard pages.
Elision only happens with --reserved-size=4GiB
3 years ago
Frank Denis
28e6cc1a95
Remove unused hash2.exp
3 years ago
Frank Denis
9039eea1e3
Add support for Node without wasmer-js
3 years ago
Frank Denis
cd5252328f
WASM benchmarks: add lucet and WAMR, update wasmtime & wasmer
3 years ago
Frank Denis
af6366efc3
Braces
3 years ago
Frank Denis
4020f76a5f
Put <meta> tag outside <style>
Fixes https://github.com/jedisct1/libsodium.js/pull/267
3 years ago
Frank Denis
e4206f1337
Change crypto_core_ed25519_from_string() to accept a hash function
3 years ago
Frank Denis
e0629769d3
Move the H2C string->hash functions to their own files
3 years ago
Frank Denis
a424d6026d
Update global symbols
3 years ago
Frank Denis
611e1a0bc1
Typo (risretto -> ristretto)
Fixes #1014
4 years ago
Frank Denis
b02dbf2519
Register _crypto_core_ristretto255_from_string_ro
4 years ago
Frank Denis
e945207b77
Remove unused variable in tests
Fixes #998
4 years ago
Frank Denis
d8f512bfaa
box_seal test: don't check empty messages
Fixes #974
4 years ago
Frank Denis
a8fa837aac
Don't even include signal.h on WASI
Since version 11, wasi-sysroot doesn't ignore it but spits out
an error instead.
4 years ago
Frank Denis
039da3af81
Typo
4 years ago
Frank Denis
1fae7383ce
Update H2C test vectors
4 years ago
Frank Denis
214076fc09
Replace the multiplication by the group order with an addition chain.
Rename ge25519_{add,sub,madd,msub} for clarity.
4 years ago
Frank Denis
1127c43278
Add extra box_seal() tests
4 years ago
Frank Denis
c3ca08913c
Add AEGIS-128L for no good reasons
4 years ago
Frank Denis
6a1fae4b25
Add some field arithmetic tests for edge cases
4 years ago
Frank Denis
c2efce113d
Add crypto_core_{ed25519,ristretto255}_scalar_is_canonical()
4 years ago
Frank Denis
f23c932d74
H2C: change sign computation for Ell2 to match BHKL13
https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve/pull/250
4 years ago
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.
4 years ago
Frank Denis
26a7c82033
Simplify scalarmult{2,5} tests
4 years ago
Frank Denis
7e2755166a
Add a scalarmult test to show that the high bit is ignored
4 years ago
Frank Denis
fe4571516f
One more test vector cannot hurt
4 years ago
Frank Denis
29f098d237
Revert "Add the BlaBla2000 stream cipher - will eventually become the default"
This reverts commit a31fe2a966
.
4 years ago
Emil Bay
f7137448dc
fix crypto_stream_chacha20_ietf tests ( #946 )
4 years ago
Frank Denis
d01c49df02
H2C: convert DST encoding to suffix free
https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve/pull/241
4 years ago
Frank Denis
a31fe2a966
Add the BlaBla2000 stream cipher - will eventually become the default
2000 rounds variant of the BlaBla20 cipher
for Very Post Quantum (VPQ) security.
4 years ago
Frank Denis
0cabff7a0a
Move HKDF test to its own file
4 years ago
Frank Denis
35206861b5
Skip HKDF test on minimal builds
4 years ago
Frank Denis
d9844396e3
Fix and add HKDF tests
4 years ago
Frank Denis
192d4b2a5e
C++ compat
4 years ago
Frank Denis
5f39c3ce09
Don't force include the suite ID in tags
4 years ago
Frank Denis
89eb497efa
Handle oversized contexts
4 years ago
Frank Denis
c8d604e1f1
Add test vectors for the string to curve operation
4 years ago
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.
4 years ago
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()`.
4 years ago
Frank Denis
5fdd12fa97
Add crypto_core_ed25519_from_string() and crypto_core_ed25519_from_string_ro()
4 years ago
Frank Denis
f2015a7aad
Add a test
4 years ago
Frank Denis
092bf7cfd1
Add an obsolete test, add a deterministic one for from_uniform()
4 years ago
Frank Denis
eab70f79c0
Add HKDF/SHA-512 and HKDF/SHA-256
4 years ago
Frank Denis
6a7fbccfd8
Remove sandy2x fixed base scalar multiplication
Thanks to precomputation, the generic implementation is faster.
4 years ago
Frank Denis
d227affc63
Add wasm3 to the set of supported WebAssembly runtimes
4 years ago
Frank Denis
89f3a09737
Temporarily remove support for Lucet
Lucet doesn't work on MacOS any more, so testing it has become difficult.
4 years ago