Frank Denis
6ee74618d0
Use sodium_bin2hex() instead of duplicating the same code everywhere.
2013-07-07 23:46:42 -07:00
Frank Denis
1a3786705e
Add a sodium_bin2hex utility function.
2013-07-07 23:38:14 -07:00
Frank Denis
a6490db658
Don't -> Do not
2013-07-07 22:38:51 -07:00
Frank Denis
09a4848fc9
Document --disable-pie instead of --enable-pie
2013-07-07 22:35:34 -07:00
Frank Denis
617eb6d26f
Move --enable-pie switch
2013-07-07 22:29:58 -07:00
Frank Denis
51d91d1115
autoconf: move the last switch, --enable-debug
2013-07-07 22:25:20 -07:00
Frank Denis
1d921e45da
autoconf: keep moving switches to the top of the file
2013-07-07 22:20:27 -07:00
Frank Denis
43132738d2
Add a pre-js script for providing /dev/urandom to tests in Javascript.
...
Not plugged to the build system yet.
2013-07-07 22:04:13 -07:00
Frank Denis
c06e228867
autoconf: start moving AC_ARG_ENABLE macros to the top of the script.
2013-07-07 21:46:44 -07:00
Frank Denis
c8a44ba02e
Disable asm implementations when compiling to javascript with emscripten.
2013-07-07 21:33:41 -07:00
Frank Denis
f66ab14d7f
Remove -I/usr/local/include and -L/usr/local/lib
...
libsodium doesn't have any dependency on 3rd party libs.
2013-07-07 19:18:03 -07:00
Frank Denis
34fe1205ac
Mark clang false positives
2013-07-07 18:57:09 -07:00
Frank Denis
cdbbe47ed9
Remove dead assignments that the compiler optimizes out.
2013-07-07 14:27:31 -07:00
Frank Denis
c828d169c6
Prepare for a version bump.
2013-07-07 14:10:02 -07:00
Frank Denis
8bc0e72f2f
libsodium.org is now available over HTTPS & SPDY
2013-07-07 14:04:52 -07:00
Frank Denis
98436192db
Merge pull request #52 from dsheets/patch-1
...
Add a DNSSEC tarball verification note from @jedisct1 in #51
2013-07-05 10:57:02 -07:00
David Sheets
23e40b3557
Add a DNSSEC tarball verification note from @jedisct1 in #51
...
download.libsodium.org vends DNSSEC-secured SHA256 hashes of release tarballs.
2013-07-05 12:15:22 +01:00
Frank Denis
b2843bb3dc
Merge pull request #50 from irungentoo/master
...
Case insensitive includes prevented libsodium from cross compiling correctly to Windows from a case sensitive OS.
2013-07-03 11:50:51 -07:00
irungentoo
4c43660f68
libsodium now cross compiles correctly for Windows from Linux.
2013-07-03 14:41:47 -04:00
Frank Denis
34b84c0eaf
Move libsodium to its own domain.
2013-06-25 18:26:33 -07:00
Frank Denis
ea4e4e0738
Link Pharo/Squeak bindings announce
2013-06-17 23:13:42 -07:00
Frank Denis
71d2d9c127
Add PHP-Sodium
2013-06-15 09:03:04 -07:00
Frank Denis
eb8f06befd
Merge pull request #48 from alexanderkjeldaas/master
...
Check prerequisites in android.sh
2013-06-13 01:14:52 -07:00
Alexander Kjeldaas
b01ebe6caf
Check prerequisites in android.sh
2013-06-13 10:11:28 +02:00
Frank Denis
0ad0f3e1ce
Disable PIE on Android
2013-06-09 12:14:31 -07:00
Frank Denis
2b50f0845d
Merge pull request #46 from neheb/master
...
Smaller logo
2013-06-06 13:41:19 -07:00
Mangix
20709fd8ec
zopflipng + defluff
2013-06-06 13:11:30 -07:00
Frank Denis
8cc4381255
+saltine
2013-06-06 00:24:55 -07:00
Frank Denis
d0e84777ab
Add missing SODIUM_EXPORT in crypto_stream.h
2013-06-05 21:54:52 -07:00
Frank Denis
39a54324fb
Update Android & iPhone build scripts to build static libraries only.
2013-05-30 22:56:18 -07:00
Frank Denis
01ee32e3a3
Merge remote-tracking branch 'stouset/add-lookup-methods-for-all-constants'
...
* stouset/add-lookup-methods-for-all-constants:
Add remaining functions for looking up constants
Fix definition of crypto_box_curve25519xsalsa20poly1305_macbytes
Add functions exposing constants for all operation/primitive pairs
2013-05-22 11:42:58 -07:00
Frank Denis
802369e9dd
No need to call randombytes_sysrandom_stir_if_needed() twice.
2013-05-22 11:19:13 -07:00
Frank Denis
e68b08a4ff
Call randombytes_salsa20_random_stir_if_needed() only when we don't have
...
anything in stock, and reduce the number of required getpid() calls.
2013-05-22 11:17:37 -07:00
Stephen Touset
98c02a21d6
Add remaining functions for looking up constants
...
The automated script that generated functions for looking up #define'd
constants didn't handle edge cases in these files, so these have been
added by hand. They're thus either more likely or less likely to
contain mistakes (depending on one's particular point of view).
2013-05-16 15:48:08 -07:00
Stephen Touset
2a0f3d040f
Fix definition of crypto_box_curve25519xsalsa20poly1305_macbytes
...
This function definition was created by an automated script that
incorrectly handled a corner case.
2013-05-16 15:27:28 -07:00
Stephen Touset
8eea4a3f74
Add functions exposing constants for all operation/primitive pairs
...
Wrappers for other languages can't access constants defined by C
preprocessor macros, so they must be exposed as functions. This was
already done for the "default" implementation of each operation, but
this commit adds functions for (almost) all of the underlying
primitives.
A few are currently excluded due to problems with the automated script
used to generated this commit. They are:
* crypto_onetimeauth_poly1305
* crypto_generichash_blake2b
* crypto_verify16
* crypto_verify32
2013-05-16 13:17:18 -07:00
Frank Denis
81d604c70c
Add crypto_generichash_keybytes() and crypto_generichash_bytes()
...
to provide a default key/output size.
2013-05-16 11:45:19 -07:00
Frank Denis
4d147466bc
Bump generichash minimum key and output size to 128 bits.
...
People who know what they are doing and who need a truncated output or a
shorter key can still do it.
But we should keep the chance for users to shoot themselves in the foot down
to a minimum.
2013-05-16 11:25:33 -07:00
Frank Denis
9578af69d2
Use crypto_generichash_state for crypto_generichash_*() wrappers.
2013-05-15 21:21:39 -07:00
Frank Denis
8d08a564ae
Merge pull request #40 from VeXocide/patch-1
...
Trivial cleanup of crypto_generichash.h
2013-05-15 20:35:12 -07:00
Jeroen Habraken
fcc7df0e54
Trivial cleanup of crypto_generichash.h
2013-05-15 22:29:21 -05:00
Frank Denis
a8d4c24e42
<stdlib.h> -> <stddef.h> for size_t
2013-05-15 19:57:07 -07:00
Frank Denis
6988a02e4f
Remove trailing whitespaces
2013-05-13 17:00:56 -07:00
Frank Denis
ab2e1ab140
hmac/256 -> hmac512/256 in randombytes_salsa20_random_stir() to make code smaller.
2013-05-13 16:59:57 -07:00
Frank Denis
1a0a89df33
No need to define CROSS_COMPILING
2013-05-13 12:45:58 -07:00
Frank Denis
a8e5f6e7ce
Merge pull request #37 from neheb/master
...
Smaller PNG file
2013-05-06 08:53:08 -07:00
Mangix
ce60bdf759
Smaller PNG file
2013-05-06 02:05:51 -07:00
Frank Denis
a461cb00cd
Export NDK_ANDROID_SOURCES
2013-05-04 13:16:57 -07:00
Frank Denis
cbe7db977a
Mention pre-compiled Win32 packages
2013-05-01 22:11:08 -07:00
Frank Denis
210de1570a
Add --disable-asm option to disable assembly implementations.
...
Check that fesetenv() and fegetenv() are available. If they aren't, still
compile the floating-point implementation of poly1305, but never pick it
in sodium_init().
This helps libsodium compile and work on Emscripten and on environments with
an incomplete libc.
2013-04-28 09:44:23 -07:00