Michael Ellery
11b76f98dc
CMake find module fixes for static linking: ( #621 )
...
Enclose option() declaration in a defined check to allow simple caller
set() use case. Provide default static lib name for find_library since
pkgconfig for libsodium currently does not provide it.
2017-10-28 21:36:56 +02:00
Frank Denis
27ee5fc5aa
Regen Makefile.in
2017-10-23 00:16:08 +02:00
Frank Denis
2cee8ae850
Backport _crypto_sign_ed25519_small_order() changes
2017-10-23 00:15:52 +02:00
Frank Denis
3e6e734605
Fix misleading comment
2017-10-21 21:27:12 +02:00
Frank Denis
415691dcea
memcpy() -> memmove() in case the seed and secret key overlap
2017-10-20 09:54:05 +02:00
Frank Denis
eb24f8e358
emscripten: actually print the installation prefix
2017-10-18 13:11:56 +02:00
Frank Denis
786448a211
Update AUTHORS
2017-10-14 15:37:29 +02:00
Frank Denis
b28a8ad896
Just use constants instead of macros
...
In this context, they are actually less confusing.
2017-10-12 13:14:58 +02:00
Frank Denis
64604f8eef
Repair crypto_sign_ed25519_seed_keypair()
2017-10-12 13:03:54 +02:00
Frank Denis
348ef69b79
sk is actually skpk, so use the right size in the prototype
2017-10-11 21:46:17 +02:00
Frank Denis
f5e1767b22
sign_keygen(): don't hash the secret scalar in non-deterministic mode
...
Improve clarity
No need to clamp the key prior to computing a synthetic nonce
nonce -> Z for clarity
2017-10-11 21:30:52 +02:00
Frank Denis
b6bad22149
Use the generalized eddsa algorithm for non-deterministic r
2017-10-06 22:02:46 +02:00
Frank Denis
9080766246
crypto_sign(): memzero the nonce after use
2017-10-06 22:02:46 +02:00
Frank Denis
99eee854fe
Add a compile-time switch to create non-deterministic signatures
2017-10-06 16:36:06 +02:00
Frank Denis
4b4fce0be9
Use less memory for the pwhash tests
2017-10-05 00:42:58 +02:00
Frank Denis
cd1b97d5a2
Regen autoconf files
2017-10-01 17:17:11 +02:00
Frank Denis
c5e43f4c1c
Update dotnet example version
2017-10-01 17:11:51 +02:00
Frank Denis
aa67295dae
Undefine FORTIFY_SOURCE in debug mode
2017-10-01 14:59:41 +02:00
Frank Denis
770e7945c3
Bump major for generate-emscripten-symbols.sh 18 -> 23
2017-10-01 13:20:55 +02:00
Frank Denis
b8e066dc0c
ChangeLog
2017-10-01 13:12:33 +02:00
Frank Denis
d3e20869af
crypto_pwhash_ALG_DEFAULT is now Argon2id
2017-10-01 12:12:13 +02:00
Frank Denis
2f51ed3397
Rename the test/pwhash.c -> test/pwhash_argon2i.c
2017-10-01 11:09:55 +02:00
Frank Denis
d49d7e8d4f
pwhash: don't enforce the same limits for argon2i and argon2id
...
Fixes #606
Also, keep enforcing a minimum number of iterations to create argon2i
hashes, but relax that restriction for verification, as it can be
useful to migrate from hashes made using other libraries.
2017-10-01 11:02:46 +02:00
Frank Denis
a8ebd37b7b
Bump library version
2017-10-01 10:15:48 +02:00
Frank Denis
2542367c2d
secretstream: set the initial counter to 1
...
Avoids using the first block for two different purposes, and will be more
consistent with the AES-based version.
This breaks backwards compatibility, but better do it now that most distro are
still shipping < 1.0.14, that no applications seem to be already using that new
API, and that there will be an update to the library major due to the aes128ctr
removal.
2017-10-01 10:08:04 +02:00
Frank Denis
3659d342af
Avoid losing the reference to Module in the promise.
...
by @buu700
2017-09-29 19:31:42 +02:00
Frank Denis
24ff2a7049
Emscripten: just use Module.onRuntimeInitialized = resolve;
2017-09-29 08:49:42 +02:00
Ryan Lester
170661671d
Save libsodium.js ( #605 )
...
* revert wasm/asmjs split build changes
* combined wasm + asm.js build
* minor cleanup
2017-09-29 08:22:01 +02:00
Frank Denis
2c73b8e3b5
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
Remove aes128ctr from emscripten
Regen MSVC files
Remove aes128ctr
Remove aes128ctr, add secretstream
2017-09-29 02:36:42 +02:00
Frank Denis
5233df125f
Add -s SINGLE_FILE=1 when compiling to Emscripten
2017-09-29 02:36:03 +02:00
Frank Denis
8ceb55994b
Remove aes128ctr from emscripten
2017-09-27 22:19:04 +02:00
Frank Denis
acdd766953
Regen MSVC files
2017-09-27 19:34:45 +02:00
Frank Denis
96be673f82
Remove aes128ctr
2017-09-27 15:07:54 +02:00
Frank Denis
1ddeab2a87
Remove aes128ctr, add secretstream
2017-09-27 15:05:28 +02:00
Frank Denis
2a9c81b5c4
Explain why pwhash parameters must be stored
2017-09-26 21:33:54 +02:00
Frank Denis
93c386cb6c
Mention when the state will eventually be cleared
2017-09-26 21:28:08 +02:00
Frank Denis
d338ae9512
Properly support Argon2id in crypto_pwhash()
2017-09-26 17:12:58 +02:00
Frank Denis
491f785274
deinit
2017-09-25 16:33:30 +02:00
Frank Denis
70a841e649
Revert "Add Irina's sketch for the release day"
...
This reverts commit fb44259ff0
.
2017-09-24 16:31:12 +02:00
Frank Denis
fb44259ff0
Add Irina's sketch for the release day
2017-09-22 10:37:12 +02:00
Frank Denis
4c37368f95
Nits
2017-09-21 20:39:38 +02:00
Frank Denis
94550cefd5
Remove dev #warning
2017-09-21 11:41:01 +02:00
Frank Denis
3e0b4dec6e
Add sodium_base64_encoded_len()
2017-09-21 11:25:09 +02:00
Frank Denis
4ce2856a5d
Avoid negations on unsigned values
2017-09-21 11:23:37 +02:00
Frank Denis
7e06a6a991
Annotate
2017-09-21 00:30:37 +02:00
Frank Denis
18f0fff89e
More tests: verify that they key gets updated after the counter wraps
2017-09-20 17:10:10 +02:00
Frank Denis
e061abc2bb
The documentation is not a work in progress any more
2017-09-20 00:41:59 +02:00
Frank Denis
91233a0143
Tag salsa208 as deprecated
2017-09-19 23:56:12 +02:00
Frank Denis
ee1d5c96d8
Move the codecs tests to their own test file
2017-09-19 22:51:05 +02:00
Frank Denis
558355e566
Check if SIGABRT can be trapped multiple times in a row
2017-09-19 22:33:09 +02:00