Frank Denis
|
5a566c041c
|
We can't enforce 64-bit alignment of aes256 context w/ the current interface
|
2013-11-12 09:41:23 -08:00 |
|
Frank Denis
|
f47b7cdb58
|
Rename crypto_generichash_blake2b_init2()
|
2013-11-11 23:18:34 -08:00 |
|
Frank Denis
|
e43cf109a7
|
Add crypto_secretbox_macbytes()
|
2013-11-11 20:07:14 -08:00 |
|
Frank Denis
|
1f405ef7f2
|
void * casts for c++ compat
|
2013-11-05 22:30:39 -08:00 |
|
Frank Denis
|
6745db7a0b
|
Add blake2b_salt_personal()
|
2013-11-05 22:28:33 -08:00 |
|
Frank Denis
|
e9c46aef5f
|
Add support for salt & personalization to Blake2.
This API might change. I'm not a big fan of what we have now.
|
2013-11-05 21:46:19 -08:00 |
|
Frank Denis
|
a586df583a
|
Use blake2b_init() *or* blake2b_init_key(). Calling both is not needed.
|
2013-11-05 21:00:04 -08:00 |
|
Frank Denis
|
1ca05f6b16
|
Have sodium_memcmp(a,b,s) return -1 if a != b, document return value.
|
2013-10-30 06:47:13 -07:00 |
|
Frank Denis
|
82046cbd5e
|
Face it, /dev/arandom was removed from OpenBSD a loooooong time ago.
|
2013-10-28 10:59:51 -07:00 |
|
Frank Denis
|
afb89c7e16
|
Some systems have arc4random() but not arc4random_buf()
|
2013-10-22 02:54:45 -07:00 |
|
Frank Denis
|
af28f8f2cd
|
Export stream_salsa20 constants
|
2013-10-21 22:03:37 -07:00 |
|
Frank Denis
|
e10a84350f
|
Keep crypto_stream_salsa* constants close to their wrappers
|
2013-10-21 21:51:59 -07:00 |
|
Frank Denis
|
415b50d56b
|
Package crypto_scalarmult/curve25519/scalarmult_curve25519_api.c
|
2013-10-21 21:44:03 -07:00 |
|
Frank Denis
|
a5834e1e25
|
Use arc4random() if available in onetimeauth_poly1305_try.c
|
2013-10-21 21:11:06 -07:00 |
|
Frank Denis
|
696934b123
|
_sodium_alignedcalloc(): use arc4random_buf() if available
|
2013-10-21 21:07:39 -07:00 |
|
Frank Denis
|
f9aff06dc0
|
Remove all use of booleans. Because MSVC < 2013. Sigh.
|
2013-10-21 17:49:48 -07:00 |
|
Frank Denis
|
afa49d340c
|
Add stdbool.h for old MSVC.
|
2013-10-14 17:15:50 -07:00 |
|
Frank Denis
|
81321c8809
|
Define _SODIUM_C99 as empty on retarded compilers, not only when using C++
|
2013-10-14 16:45:02 -07:00 |
|
Frank Denis
|
fcf4b21149
|
sha256 IV should be unsigned chars.
|
2013-10-14 13:43:12 -07:00 |
|
Frank Denis
|
8fa91a91ab
|
Cast CryptGenRandom pointer to (BYTE *) to make MSVC happy when compiling as a C++ project
|
2013-10-14 13:40:54 -07:00 |
|
Frank Denis
|
6df6be8911
|
Remove some unneeded includes
|
2013-10-14 13:38:36 -07:00 |
|
Frank Denis
|
64729711c4
|
Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
Fixed sodium.h install
|
2013-10-13 12:50:00 -07:00 |
|
Frank Denis
|
bd8cbd3175
|
Make curve25519-donna-c64 handle non-canonical points like the ref implementation.
|
2013-10-13 12:49:15 -07:00 |
|
xantares
|
c6cd95f716
|
Fixed sodium.h install
|
2013-10-12 23:46:37 +02:00 |
|
xantares
|
5f5c82aa2f
|
Fixed headers install
|
2013-10-10 23:03:07 +02:00 |
|
xantares
|
8d0942d5b1
|
Do not include configured headers
|
2013-10-09 20:57:32 +02:00 |
|
xantares
|
e2a30a859d
|
Fixed libsodium.def dependency
|
2013-10-09 19:22:23 +02:00 |
|
Frank Denis
|
9599289ae0
|
Use HAVE_TI_MODE in portable-jane.h to use (or not) int128_t
|
2013-10-08 13:10:16 -07:00 |
|
Frank Denis
|
5ae6712192
|
More C89 compat
|
2013-10-07 19:58:06 -07:00 |
|
Frank Denis
|
1e4157ad19
|
blake2b: use only pre-C99 style declarations.
|
2013-10-07 19:46:32 -07:00 |
|
Frank Denis
|
82c7b125af
|
Define an empty SODIUM_EXPORT if SODIUM_STATIC is defined.
|
2013-10-07 19:32:58 -07:00 |
|
Frank Denis
|
8fbbb98847
|
Be consistent, keep macros and related functions next to each other.
|
2013-10-05 14:11:57 -07:00 |
|
Frank Denis
|
5e4e3c9ecf
|
Add an empty line. Yeah, that's a fantastic commit.
|
2013-10-05 14:08:03 -07:00 |
|
Frank Denis
|
8effa1ea88
|
Export scalarmult_curve25519 constants
|
2013-10-05 14:06:09 -07:00 |
|
Frank Denis
|
71489f447a
|
Make MSVC parser not panic when it parses a long literal.
Just use the scientific notation instead.
Found by @sneves, thanks!
|
2013-10-04 14:48:33 -07:00 |
|
Frank Denis
|
32a8591985
|
Fix randombytes_salsa20_random.c for MSVC
|
2013-09-24 14:20:52 -07:00 |
|
Frank Denis
|
26d108d468
|
MSVC fixes for randombytes_sysrandom.c
|
2013-09-24 14:09:26 -07:00 |
|
Frank Denis
|
ad49d05a8b
|
Match randombytes() prototype with declaration.
|
2013-09-24 14:06:26 -07:00 |
|
Frank Denis
|
18015e71e2
|
randombytes_stir() returns void
|
2013-09-24 14:05:34 -07:00 |
|
Frank Denis
|
02bb86d18b
|
MSVC/portable-jane.h: don't redefine _CRT_SECURE_NO_WARNINGS
|
2013-09-24 13:42:23 -07:00 |
|
Frank Denis
|
8086d6f696
|
blake2: remove more declarations in for() for MSVC
|
2013-09-24 13:38:02 -07:00 |
|
Frank Denis
|
14809c12c4
|
MSVC doesn't like a definition in a for() loop.
|
2013-09-24 13:28:31 -07:00 |
|
Frank Denis
|
c43440f01c
|
More fixes for big-endian architectures
|
2013-09-21 19:43:39 -07:00 |
|
Frank Denis
|
c19b0128e2
|
Add aes256-table-be.h to the Makefile
|
2013-09-21 18:56:24 -07:00 |
|
Frank Denis
|
29f81d167c
|
aes256 table for big endian
|
2013-09-21 18:55:36 -07:00 |
|
Frank Denis
|
15f87c1c90
|
Reformat aes-table-le.h
|
2013-09-21 18:50:59 -07:00 |
|
Frank Denis
|
5dd623e96d
|
Move endian-dependent aes256estream/aes-table.h bits to aes-table-le.h
|
2013-09-21 18:27:11 -07:00 |
|
Frank Denis
|
30e27fcd25
|
Make aes256estream implementation less LE dependant. BE Sbox coming up next.
|
2013-09-21 15:27:34 -07:00 |
|
Frank Denis
|
b03a2991b2
|
Add crypto_onetimeauth_poly1305_ref() wrapper.
|
2013-09-09 22:17:54 -07:00 |
|
Frank Denis
|
554ad5bb6c
|
Remove ALIGN definition from portable-jane.h
A macro of the same name is already defined by OpenBSD's libc, and the
portable-jane.h one is not in use yet.
|
2013-09-08 13:55:54 -07:00 |
|