Frank Denis
f54c6db981
sign_keygen(): don't hash the secret scalar in non-deterministic mode
2017-10-11 21:27:48 +02:00
Frank Denis
68feb75f1d
nonce -> Z for clarity
2017-10-11 18:15:36 +02:00
Frank Denis
ebb614cb0e
Improve clarity
...
No need to clamp the key prior to computing a synthetic nonce
2017-10-11 18:09:30 +02:00
Frank Denis
90f5b55a0a
Move computation of synthetic nonces to a dedicated function
...
for clarity
2017-10-06 22:01:06 +02:00
Frank Denis
067cd6749d
inline
2017-10-06 21:41:35 +02:00
Frank Denis
d56007a6fa
crypto_sign(): memzero the nonce after use
2017-10-06 21:35:52 +02:00
Frank Denis
291859874b
Use the generalized eddsa algorithm for non-deterministic r
2017-10-06 21:28:02 +02:00
Frank Denis
9f98f2329c
Back to dev mode
2017-10-06 15:37:24 +02:00
Frank Denis
0dd8338b83
Add a compile-time switch to create non-deterministic signatures
2017-10-06 15:35:07 +02:00
Ryan Lester
381080bf02
libsodium.js totalMemory minor fix ( #610 )
2017-10-05 10:45:31 +02:00
Frank Denis
09ecb47a53
Use -O in debug mode
2017-10-05 10:41:15 +02:00
Frank Denis
c19946296c
FORTIFY_SOURCE -> _FORTIFY_SOURCE
2017-10-05 10:35:50 +02:00
Frank Denis
022f783cfc
Re-enable all warnings with --enable-debug
2017-10-05 10:31:19 +02:00
Frank Denis
affaecabcd
Include prototypes before declarations
2017-10-05 10:15:24 +02:00
Frank Denis
b3ccb20078
Enable some extra compiler warnings
2017-10-05 09:11:27 +02:00
Frank Denis
c431a42658
"this" doesn't seem to ever be defined in a module
...
isNan is undefined
2017-10-05 08:31:07 +02:00
Frank Denis
af5ce360b4
this
may not be defined
2017-10-05 08:12:05 +02:00
Frank Denis
2a367074fe
Add actual performance API emulation for old browsers
2017-10-05 07:52:33 +02:00
Frank Denis
1393681662
Move declaration closer to usage
2017-10-05 02:28:14 +02:00
Ryan Lester
ec4432a388
allow setting total memory from JS ( #608 )
2017-10-05 02:26:00 +02:00
Frank Denis
e784a3fb40
Add no-ops for very old browsers without the performance API
2017-10-05 01:46:02 +02:00
Frank Denis
37d9f09f5b
Round duration
2017-10-05 00:20:55 +02:00
Frank Denis
752c1fff2d
emscripten template: make the module global
2017-10-05 00:16:37 +02:00
Frank Denis
cc8cd391c9
Fix emscripten template
2017-10-05 00:11:40 +02:00
Frank Denis
93e39760b9
Wasm: add basic benchmark
...
Not really fair yet since the script isn't preloaded
2017-10-05 00:02:37 +02:00
Frank Denis
f0daa92f50
Remove index-wasm.html.tpl
2017-10-04 23:52:39 +02:00
Frank Denis
60366ac447
asmjs requires TOTAL_MEMORY to be a multiple of 16MB
2017-10-04 23:01:02 +02:00
Frank Denis
6db1adbf4e
Reserve more memory for wasm sumo builds
2017-10-04 22:52:22 +02:00
Frank Denis
6a0e144899
Use less memory for the pwhash tests
2017-10-04 22:52:11 +02:00
Frank Denis
ce3254dff4
Ignore test/default/*.asm.js
2017-10-04 22:25:08 +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