Frank Denis
9c33a54e89
Nothing requires <poll.h> in randombytes_sysrandom.c
2014-03-06 21:39:05 -08:00
Frank Denis
9f2e0ba803
Use memset_s() if available
2014-03-02 19:05:14 -08:00
Frank Denis
639a92ebe7
Add crypto_hash_primitive()
2014-02-23 20:24:59 -08:00
Frank Denis
afcba42802
Save and restore errno when opening the random device.
2014-02-09 09:48:43 -08:00
Frank Denis
28b3f2ab0e
^ is not a good way to check for all zeros :) Spotted by sneves@
2014-01-26 16:47:55 -08:00
Frank Denis
49114ee2f5
Reorder vars
2014-01-24 09:41:19 -08:00
Frank Denis
bd4aacf078
crypto_sign_ed25519_open(): Check that the public key is not all zeroes.
...
Reported by Mikkel Fahnøe Jørgensen via nightcracker@
2014-01-24 09:36:21 -08:00
Frank Denis
e8509072a9
Add an easy interface to secretbox
2013-12-31 18:37:36 +01:00
Frank Denis
c57b3c58b3
C++ compat
2013-12-31 18:37:36 +01:00
Frank Denis
02ec147a00
Add a crypto_box easy interface
2013-12-31 18:37:36 +01:00
Frank Denis
41e66896c8
Disable long long warnings when compiled with an old g++ version.
2013-12-31 15:20:02 +01:00
Frank Denis
9a88b1ed74
Add .type @function to export function names in asm implementations (ELF only)
...
via NeoRaider@
2013-12-26 12:14:46 +01:00
Frank Denis
d3c949bafa
Remove ASM version of endian conversion helpers (in portable-jane.h) on PPC
...
This seems to be causing issues on ppc64 when compiling with optimizations.
2013-12-18 14:37:34 -08:00
Frank Denis
2994aebafb
Remove unused macro
2013-12-11 20:27:42 -08:00
Frank Denis
bf72ee931e
Make crypto_scalarmult_curve25519.h architecture-independent
2013-12-11 20:17:09 -08:00
Frank Denis
5133638024
Make crypto_stream_salsa20.h architecture-independent.
...
Move implementation-specific functions to compat.c
2013-12-11 19:45:11 -08:00
Frank Denis
5ad45ee98c
Move Doxygen API doc to its own branch until it is complete.
2013-12-09 18:04:05 -08:00
Frank Denis
d0793255a3
innvocation -> invocation
2013-12-09 16:56:33 -08:00
Frank Denis
71fb3e3dda
Remove trailing spaces
2013-12-09 16:55:44 -08:00
Frank Denis
149ce5b377
Lenght -> Length
2013-12-09 16:54:06 -08:00
Frank Denis
6eb2c2a284
sodium/version.h.in: fix pasto
2013-12-09 16:19:45 -08:00
Jan de Muijnck-Hughes
5a753ba908
Added api documentation.
...
The outward facing api has been documented where possible. If the
documentation has not been added a `@todo` annotations has been
added. Doxygen will constuct a list of TODO's automatically.
2013-12-08 15:58:03 +00:00
Frank Denis
08755e04e1
Support randombytes() with size == 0, but don't force implementations to support it
2013-11-21 23:22:45 -08:00
Frank Denis
f553bb4bf2
aes256-ctr: do not left shift more than 16 bits on a signed int.
...
Spotted by John Regehr and clang -fsigned-integer-overflow
2013-11-12 09:47:36 -08:00
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