Commit Graph

564 Commits

Author SHA1 Message Date
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
Frank Denis
942c371d3c Use rand() instead of random() in regression tests. 2013-04-28 01:02:52 -07:00
Frank Denis
825cd5f7fe Update THANKS, for Racket and more Ruby bindings 2013-04-28 00:02:32 -07:00
Frank Denis
b339a9a2f6 Mention Racket bindings and the other Ruby library 2013-04-27 23:59:51 -07:00
Frank Denis
24014415a1 Add ../crypto_stream_salsa20.h to .gitignore 2013-04-27 17:23:44 -07:00
Frank Denis
f16186671d Have "make distclean" remove *.res files 2013-04-27 16:42:37 -07:00
Frank Denis
a68f217a80 Fix AC_INIT() 2013-04-27 16:39:23 -07:00
Frank Denis
02f98ce727 Only trust clang support for mode(TI) on amd64 2013-04-27 14:28:18 -07:00
Frank Denis
bb70f436d0 Just check cpuid itself, don't clobber %ebx 2013-04-27 14:07:39 -07:00
Frank Denis
46f5ec89a6 Fix __STDC_LIMIT_MACROS autoconf check 2013-04-27 13:42:55 -07:00
Frank Denis
318d54e990 Check whether __STDC_LIMIT_MACROS is required 2013-04-27 13:40:22 -07:00
Frank Denis
f33d5a231c Adjust doc 2013-04-27 13:26:40 -07:00
Frank Denis
404237d09b Fix "make check" target when compiled in a dedicated directory. 2013-04-27 11:43:26 -07:00
Frank Denis
e5e7c7cc07 Add package URL 2013-04-27 11:42:27 -07:00
Frank Denis
6aa35882eb Android: target Gingerbread, but downgrade the toolchain to 4.3.3 2013-04-27 11:18:08 -07:00
Frank Denis
013cca7087 Remove crypto_stream_salsa20.h for the distfiles. 2013-04-27 11:17:33 -07:00
Frank Denis
32b3378fa5 Add a link to libcurvecpr 2013-04-27 10:46:11 -07:00
Frank Denis
8cb860265b Update NEWS 2013-04-27 10:29:04 -07:00
Frank Denis
808d1807dc Add optimized salsa20 amd64 assembly implementation 2013-04-27 10:21:32 -07:00
Frank Denis
3ccbd69307 Update AUTHORS 2013-04-27 09:17:26 -07:00
Frank Denis
ffb1e24ef1 Make the crypto_stream_salsa20 implementation switchable at compile-time 2013-04-27 09:12:26 -07:00
Frank Denis
fd7a96d049 Ignore *.plist 2013-04-27 09:08:53 -07:00
Frank Denis
5b09876c95 DRY 2013-04-27 09:03:31 -07:00
Frank Denis
cfe3f24964 sizes are unsigned. 2013-04-27 04:41:34 -07:00