Frank Denis
efbc49f100
Indent
2017-02-23 11:23:19 +01:00
Frank Denis
434e3691ba
Indent
2017-02-23 11:22:58 +01:00
Frank Denis
e747cec677
Indent
2017-02-23 11:22:36 +01:00
Frank Denis
3cce789304
Indent
2017-02-23 11:22:00 +01:00
Frank Denis
db7c0e1956
Indent
2017-02-23 11:21:30 +01:00
Frank Denis
c8f6121429
Indent
2017-02-23 11:20:37 +01:00
Frank Denis
20b12aa9d4
Indent
2017-02-23 11:19:53 +01:00
Frank Denis
5351efb122
Indentx
2017-02-23 11:15:29 +01:00
Frank Denis
dd9d8e283b
Indent
2017-02-23 11:13:43 +01:00
Frank Denis
9cd732c88d
Indent
2017-02-23 11:12:18 +01:00
Frank Denis
0ccc6d7661
Indent
2017-02-23 11:06:27 +01:00
Frank Denis
32a084222a
Indent
2017-02-23 10:57:18 +01:00
Frank Denis
9626d7af59
Indent, remove duplicate includes
2017-02-23 10:51:42 +01:00
Frank Denis
61adf7f777
Leverage COMPILER_ASSERT
2017-02-23 10:49:53 +01:00
Frank Denis
02c2def25e
inline
2017-02-23 10:40:42 +01:00
Frank Denis
5535ff8946
Indent
2017-02-23 10:38:37 +01:00
Frank Denis
68466a7ed7
Ident, reuse COMPILER_ASSERT
2017-02-23 10:37:57 +01:00
Frank Denis
14d54b9d22
Do not invent your own types
2017-02-23 10:34:32 +01:00
Frank Denis
a60ac31ba4
Clean up the aes128ctr code
2017-02-23 10:30:44 +01:00
Frank Denis
2be6fc4800
Indent
2017-02-23 10:14:13 +01:00
Frank Denis
2838bcd04c
Indent
2017-02-23 10:12:43 +01:00
Frank Denis
a70446a127
Indent
2017-02-23 10:12:04 +01:00
Frank Denis
6980d47ec2
Indent
2017-02-23 10:09:08 +01:00
Frank Denis
2a24a27afa
Indent
2017-02-23 09:57:09 +01:00
Frank Denis
a1c4cf5b3c
Indent
2017-02-23 09:47:12 +01:00
Frank Denis
cad6561799
Indent
2017-02-23 09:42:15 +01:00
Frank Denis
9fbd5c0c18
Indent
2017-02-23 09:39:59 +01:00
Frank Denis
b25cffb7f1
Indent
2017-02-23 09:39:02 +01:00
Frank Denis
5a843719b1
Use inlined functions instead of macros
2017-02-23 09:35:41 +01:00
Frank Denis
fe3ed40a76
Reuse ROTR64
2017-02-23 09:27:47 +01:00
Frank Denis
a3d7bc065e
Reuse macros
2017-02-23 09:24:15 +01:00
Frank Denis
c06418a382
Indent
2017-02-23 09:05:47 +01:00
Frank Denis
05349aa14d
Avoid multiple definitions of ROTL/ROTR macros
2017-02-23 09:01:50 +01:00
Frank Denis
9fdca4a8c9
There's pretty much nothing left from the original code
2017-02-20 21:13:59 +01:00
Frank Denis
f5673c7cc0
Avoid negating unsigned values
2017-02-20 21:12:33 +01:00
Frank Denis
40b4462239
Version bump [not released yet]
2017-02-20 11:35:14 +01:00
Frank Denis
0877b14c68
Correct array size check in xchacha20 test
2017-02-20 11:35:13 +01:00
ektrah
7901b1ce75
Add scripts and files to package libsodium for .NET Core ( #477 )
2017-02-20 10:34:42 +01:00
Frank Denis
76e8776839
Merge a couple more files
2017-02-20 10:32:23 +01:00
Frank Denis
bb67b383ef
Drop the _api suffixes
2017-02-20 09:50:34 +01:00
Frank Denis
5957e2c735
C++ compat
2017-02-19 21:23:34 +01:00
Frank Denis
8af252bf87
use crypto_*_keygen() in tests
2017-02-19 21:20:45 +01:00
Frank Denis
7e5d64834c
untab
2017-02-19 21:17:42 +01:00
Frank Denis
7f7e7235c5
Add a keygen function to all the primitives
2017-02-19 21:15:54 +01:00
Frank Denis
93d02019da
Trigger randombytes_seedbytes()
2017-02-19 19:10:08 +01:00
Frank Denis
fe3e60392c
C++ compat
2017-02-19 19:03:18 +01:00
Frank Denis
eb5ff7270e
Use the IETF ChaCha20 version for randombytes_buf_deterministic()
...
It doesn't make any difference except by limiting the maximum
length to 256 Gb. But the code for the IETF version has a higher
probability to already be used by something else than the original
version.
Enforcing a 256 Gb limit can also prevent surprises from happening
in other implementations.
2017-02-19 18:55:32 +01:00
Frank Denis
4c6b0ac762
Add aliases for stream_chacha20 sizes, similar to chacha20poly1305
2017-02-19 18:54:25 +01:00
Frank Denis
cafb0a695b
Add randombytes_buf_deterministic()
2017-02-19 18:40:29 +01:00
Frank Denis
70c2796ae5
+ crypto_kdf high-level API
...
This is a common need, and people end up reimplementing HKDF.
So, add a crypto_kdf() API similiar to libhydrogen's. The later has a
higher limit for the output length using BLAKE2X if required.
We can implement the same strategy later in libsodium if needed.
2017-02-19 18:13:10 +01:00