Frank Denis
a0b9bc46e4
constcheck: grab a few more constants
2017-08-25 14:49:47 +02:00
Frank Denis
0ccdfd0c8d
Update emscripten symbols list
2017-08-25 14:26:26 +02:00
Frank Denis
242045cb4d
Update emscripten symbols list
2017-08-25 14:24:34 +02:00
Frank Denis
30a25dbb2a
Bump
2017-08-24 15:50:25 +02:00
Frank Denis
be58b2e666
Accept a NULL pointer for the padded length in sodium_pad()
2017-08-24 15:49:50 +02:00
Frank Denis
b503d75e43
Add crypto_secretstream_*() to MSVC solutions
2017-08-22 09:29:32 +02:00
ektrah
a55e132461
Update packaging for .NET Core ( #583 )
2017-08-18 00:44:52 +02:00
Frank Denis
4c93d0391c
C++ compat
2017-08-17 23:27:20 +02:00
Frank Denis
0850e55808
Check that a zero blocksize returns -1
2017-08-17 21:00:02 +02:00
Frank Denis
a27c18d0e8
No need for two buffers in the padding test
2017-08-17 20:58:14 +02:00
Frank Denis
d5574a69fa
Complete sodium_pad/unpad() and add a couple tests
2017-08-17 20:54:20 +02:00
Frank Denis
b9ed93fcb8
Change the sodium_pad() API to accept a maximum buffer length
...
Of course, this is not required. Just like `strcat()` can be used
safely. But since the cost of this extra check is negligible, better
return `-1` than potentially overwrite unrelated memory locations.
2017-08-17 17:23:53 +02:00
Frank Denis
4fd66e3ad7
Name similar things the same way in sodium_pad() and sodium_unpad()
2017-08-17 14:13:13 +02:00
Frank Denis
fb4dc083e5
Update ChangeLog
2017-08-17 14:08:11 +02:00
Frank Denis
50c7632cc3
+ sodium_pad() / sodium_unpad()
2017-08-17 14:05:23 +02:00
Frank Denis
55a578d625
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
+ Firefox
Some notes about RtlGenRandom
Format paragraphs
Explain that sodium_misuse() still aborts by default
+ crypto_secretstream_*()
THANKS += PIA
2017-08-16 22:06:59 +02:00
Frank Denis
b277148983
Reorder crypto_secretstream_*() prototypes in a more intuitive sequence
2017-08-16 22:06:22 +02:00
Frank Denis
c3b315ec76
+ Firefox
2017-08-16 21:12:48 +02:00
Frank Denis
80296be947
Some notes about RtlGenRandom
2017-08-16 20:58:22 +02:00
Frank Denis
914ff87576
Format paragraphs
2017-08-16 20:21:31 +02:00
Frank Denis
c654261477
Explain that sodium_misuse() still aborts by default
2017-08-16 20:16:19 +02:00
Frank Denis
901c49203d
+ crypto_secretstream_*()
2017-08-16 18:54:48 +02:00
Frank Denis
a335fc2dad
Merge branch 'master' of github.com:jedisct1/libsodium
2017-08-16 17:55:30 +02:00
Frank Denis
5f1f6f7470
THANKS += PIA
2017-08-16 17:54:53 +02:00
Frank Denis
6e8e0a93f9
Add a couple tests for crypto_secretstream_*()
2017-08-16 14:53:54 +02:00
Frank Denis
88c0b6538f
Trigger sodium_misuse() if mlen > secretstream_MESSAGESBYTES_MAX
2017-08-16 13:59:56 +02:00
Frank Denis
72d5d506d5
Sort
2017-08-16 13:58:36 +02:00
Frank Denis
df7ad26328
Introduce a new crypto_secretstream_*() API
...
No high-level API yet, since there is no high-level AEAD API.
2017-08-16 13:26:23 +02:00
ektrah
45f2759d86
Update packaging scripts to .NET Core 2.0 ( #582 )
2017-08-15 16:27:54 +02:00
ektrah
c39ecb245c
Update packaging for .NET Core ( #581 )
2017-08-13 19:06:10 +02:00
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