Frank Denis
100a055a54
Indent
2017-08-12 16:38:11 +02:00
Frank Denis
e6e3f7dd8d
ChangeLog
2017-08-09 22:41:26 +02:00
Frank Denis
76995c52ff
Argon2: use sodium_{bin2base64,base642bin} instead of a private implementation
2017-08-09 22:41:26 +02:00
Frank Denis
265bdcfe07
bin2hex & bin2base64: return a null size on error
...
This might prevent applications that don't properly check return codes
from reusing previous data.
2017-08-09 22:41:20 +02:00
Frank Denis
a6480aec44
b64 test: intentionally overestimate sizes
...
overflows will be caught by the guard page, if any
2017-08-09 18:03:56 +02:00
Frank Denis
74fd8fd1ce
C++ compat
2017-08-09 16:08:03 +02:00
Frank Denis
ad5a5232a2
Make that a size_t
2017-08-09 16:07:10 +02:00
Frank Denis
f42390a557
Update Visual Studio solutions
2017-08-09 15:58:21 +02:00
Frank Denis
cdbb43f444
base64 tests
2017-08-09 15:56:58 +02:00
Frank Denis
eb84b00b75
glibc requires <stdint.h> for SIZE_MAX
2017-08-09 02:09:46 +02:00
Frank Denis
3f272cbbfc
Add a base64 codec, due to popular request
...
I still think that base64 is awful, but users have spoken.
2017-08-09 01:54:57 +02:00
Frank Denis
308684790f
Move the codecs from sodium/utils.c to a dedicated file
2017-08-09 01:38:14 +02:00
Frank Denis
b49054ff83
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
Doc
Update
Add some blank lines for readability
s/the//
Document crypto_aead_aes256gcm_*() limitations
Update ChangeLog
Add crypto_pwhash_str_alg()
2017-08-08 18:08:30 +02:00
Frank Denis
ef7c9f44c0
Sort
2017-08-08 18:07:46 +02:00
Frank Denis
c87e6f5e12
Add -Wold-style-declaration
2017-08-08 18:07:23 +02:00
Frank Denis
dd9416fd59
Doc
2017-08-08 14:28:12 +02:00
Frank Denis
1c573d4cb4
Update
2017-08-06 22:32:58 +02:00
Frank Denis
5b141eb9ec
Add some blank lines for readability
2017-08-06 19:17:25 +02:00
Frank Denis
7e91aa3f89
s/the//
2017-08-06 19:15:26 +02:00
Frank Denis
4baea3575b
Merge branch 'master' of github.com:jedisct1/libsodium
2017-08-06 19:11:49 +02:00
Frank Denis
9b7db7c3f3
Document crypto_aead_aes256gcm_*() limitations
2017-08-06 19:11:19 +02:00
Frank Denis
8f0953b31f
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
Bench: don't tie the printed result to the number of iterations
Make the number of iterations configurable; reduce the default
Add an interesting test case for a custom randombytes_uniform implementation
Add a benchmark mode
randombytes test: restore the salsa20-based rng at the end, for benchmarks
Indent
2017-08-05 20:58:23 +02:00
Frank Denis
9e0e77a3fd
Update ChangeLog
2017-08-05 20:58:11 +02:00
Frank Denis
a894ec93f2
Add crypto_pwhash_str_alg()
2017-08-05 20:56:59 +02:00
Frank Denis
cde31281d1
Bench: don't tie the printed result to the number of iterations
2017-08-04 23:30:30 +02:00
Frank Denis
6d59a5897d
Make the number of iterations configurable; reduce the default
2017-08-04 23:16:42 +02:00
Frank Denis
28a1e6886e
Add an interesting test case for a custom randombytes_uniform implementation
2017-08-04 23:13:29 +02:00
Frank Denis
5b4db091df
Add a benchmark mode
2017-08-04 23:08:22 +02:00
Frank Denis
8813c36fff
randombytes test: restore the salsa20-based rng at the end, for benchmarks
2017-08-04 23:01:16 +02:00
Frank Denis
a8cc1634f4
Indent
2017-08-04 22:59:06 +02:00
Frank Denis
9d03fbb38c
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
Simplify
Just a simple script to match constants with functions
+ emscripten-wasm.sh
Update the exported list of JS symbols
Add *_messagebytes_max() wrappers
Revert "wasm tests: skip over *.asm.js files"
wasm tests: skip over *.asm.js files
[Findsodium.cmake] DON'T OVERWRITE LIBRARY SUFFIXES (#576 )
Revert "+ sodium_alloc_overhead()"
+ sodium_alloc_overhead()
Remove TOTAL_MEMORY from wasm builds
Include private/common.h for COMPILER_ASSERT
Sort
Node need for --expose-wasm any more with recent nodejs versions
2017-08-04 17:43:23 +02:00
Frank Denis
196e03299e
Preliminary ChangeLog
2017-08-04 17:42:36 +02:00
Frank Denis
19f76d7cb3
Simplify
2017-08-03 22:45:18 +02:00
Frank Denis
544ce64000
Just a simple script to match constants with functions
2017-08-03 16:28:29 +02:00
Frank Denis
f711c6d049
+ emscripten-wasm.sh
2017-08-03 16:20:07 +02:00
Frank Denis
1a3b474f7f
Update the exported list of JS symbols
2017-08-03 13:38:15 +02:00
Frank Denis
e1fa9cc90c
Add *_messagebytes_max() wrappers
2017-08-03 13:34:31 +02:00
Frank Denis
53280aa28f
Revert "wasm tests: skip over *.asm.js files"
...
This reverts commit ac8111c315
.
2017-08-02 18:26:35 +02:00
Frank Denis
ac8111c315
wasm tests: skip over *.asm.js files
2017-08-02 17:17:04 +02:00
Henrik Gaßmann
29914ec821
[Findsodium.cmake] DON'T OVERWRITE LIBRARY SUFFIXES ( #576 )
2017-08-02 16:32:31 +02:00
Frank Denis
f02770b2ad
Revert "+ sodium_alloc_overhead()"
...
This reverts commit c5b61d8129
.
2017-08-02 14:26:56 +02:00
Frank Denis
c5b61d8129
+ sodium_alloc_overhead()
2017-08-02 12:34:56 +02:00
Frank Denis
23c36615cd
Remove TOTAL_MEMORY from wasm builds
...
asmjs builds need to be done separately to get actual asmjs code
and not almost-asmjs code.
Don't build html pages. It doesn't change anything, and support for
asmjs in libsodium.js remains a tricky problem to solve.
2017-08-01 23:21:57 +02:00
Frank Denis
c56fa3ccf9
Include private/common.h for COMPILER_ASSERT
2017-08-01 11:40:32 +02:00
Frank Denis
56eb70f8bb
Sort
2017-08-01 10:38:23 +02:00
Frank Denis
3c3214fbd9
Node need for --expose-wasm any more with recent nodejs versions
2017-08-01 10:19:07 +02:00
Frank Denis
b5b67d074e
Add -fembed-bitcode to the iOS 64 target, for WatchOS and TVOS
2017-07-31 14:54:15 +02:00
Frank Denis
580bf7a19d
emscripten-wasm.sh: generate HTML files even if we don't use them
...
So that emscripten generates the stub to load the wasm code in web browsers.
2017-07-31 12:52:52 +02:00
Frank Denis
ae8cd7208c
emscript-wasm: don't use --enable-minimal on sumo builds
2017-07-30 23:31:56 +02:00
Frank Denis
f2a7b61230
Update symbols
2017-07-30 21:34:09 +02:00