445 Commits

Author SHA1 Message Date
Stephen Lombardo
65df5ed290 reflect SQLCipher name on startup 2013-06-22 14:43:38 -04:00
Stephen Lombardo
a31d205766 Merge branch 'prerelease' of github.com:sqlcipher/sqlcipher into prerelease 2013-06-21 13:38:36 -04:00
Stephen Lombardo
b75c9ffa4b remove unused array allocation 2013-06-21 13:38:08 -04:00
Nick Parker
836b4b5108 Adding 'none' option to --with-crypto-lib
This allows for skipping of the library check, useful when only
preparing the amalgamation.
2013-06-21 12:19:56 -05:00
Stephen Lombardo
0a767d7c15 Merge branch 'prerelease' of github.com:sqlcipher/sqlcipher into prerelease 2013-06-21 11:11:36 -04:00
Stephen Lombardo
c9ec48ded8 add function to return current registered provider 2013-06-21 11:11:02 -04:00
Nick Parker
970d88bdb8 Remove SQLCIPHER_CRYPTO_OPENSSL flag for commoncrypto 2013-06-21 10:05:52 -05:00
Stephen Lombardo
51079a8775 resolve build warnings under clang 2013-06-21 11:01:18 -04:00
Stephen Lombardo
9b1a92181a Merge branch 'prerelease' of github.com:sqlcipher/sqlcipher into prerelease 2013-06-12 15:21:07 -04:00
Stephen Lombardo
6ae95d380e narrow root directory excludes in gitignreo 2013-06-12 15:18:48 -04:00
Nick Parker
be057d3e5f Adjusting the configure template for commoncrypto 2013-06-12 13:45:11 -05:00
Nick Parker
1742ee4e5c Check defined for crypto impl flag & formatting 2013-06-12 12:15:13 -05:00
Nick Parker
e8a54ad0ef Updated configure script from autoconf 2013-06-12 10:21:44 -05:00
Nick Parker
92cec1ccdd Default crypto provider to OpenSSL
When no crypto provider has been specified, set the
SQLCIPHER_CRYPTO_OPENSSL flag.
2013-06-12 10:06:59 -05:00
Stephen Lombardo
a828432a72 normalize license statements, ifdefs, and wrapper comments 2013-06-12 11:01:38 -04:00
Nick Parker
8b243d5986 Reorder check for crypto implementation flag. 2013-06-11 12:20:01 -05:00
Stephen Lombardo
91dcae725d if no default provider defined, error with a message 2013-06-11 13:12:02 -04:00
Stephen Lombardo
979f690669 check return code on RAND_bytes(); 2013-06-11 13:11:41 -04:00
Stephen Lombardo
1862c0df6f remove internal calls to add random 2013-06-11 12:55:50 -04:00
Stephen Lombardo
b66b1420c3 adjust return values for commoncrypto 2013-06-11 12:53:48 -04:00
Nick Parker
96055def76 Merge branch 'prerelease' into multi-lib 2013-06-11 11:36:10 -05:00
Nick Parker
878f82a09c Fix Vdbe assignment to sqlite3GetVdbe 2013-06-11 11:35:03 -05:00
Nick Parker
51f2855d36 Checking for SQLITE_OK as return code for random 2013-06-11 11:24:29 -05:00
Nick Parker
689b22ead7 Removing RAND_bytes call 2013-06-11 11:23:40 -05:00
Nick Parker
e0cd3f29be Adjust buffer size feed into fortuna entropy
Also calling fortuna_ready before fortuna_read to allow for new entries
in the fotuna pool to become available.  Minor format adjustments.
2013-06-11 09:23:08 -05:00
Nick Parker
6937773d64 Passing pointer to provider context 2013-06-11 09:21:16 -05:00
Stephen Lombardo
3659159b72 remove internal mutexing and move fortuna initialization to activate 2013-06-06 15:48:11 -04:00
Nick Parker
5b639be3c4 Add test for commoncrypto default cipher 2013-06-06 13:49:03 -05:00
Nick Parker
ee14e0fd2a commoncrypto provider name 2013-06-06 12:21:46 -05:00
Nick Parker
fe9cb18154 commoncrypto integration with configure & register 2013-06-06 12:19:49 -05:00
Nick Parker
fcc1332c54 Adding to OpenSSL entropy pool when performing kdf 2013-06-06 11:18:45 -05:00
Nick Parker
7026edb969 Change call site of sqlite3_randomness and fortuna_ready
sqlite3_randomness was blocking when invoked with
sqlcipher_ltc_activate.  As new entropy is added to the pool, calls to
fortuna_ready are required to allow the new entropy to be used.
2013-06-06 11:04:03 -05:00
Stephen Lombardo
a60090f879 changes to random seeding 2013-06-06 10:26:12 -04:00
Nick Parker
2d9f0d5945 Add to openssl entropy pool when computing an hmac 2013-06-05 17:01:45 -05:00
Nick Parker
eb0b37148e Add entropy to fortuna pool during hmac derivation 2013-06-05 16:48:36 -05:00
Nick Parker
dc2cc9a81d Calling deactivate before freeing the memory 2013-06-05 15:46:17 -05:00
Nick Parker
b4bb526dcb New test procedures can check cipher provider name
if_built_with_openssl and if_built_with_libtomcrypt act as replacements
for do_test, only performing the test when the current sqlcipher
testfixture binary was compiled with the specific crypto library.
2013-06-05 15:21:21 -05:00
Stephen Lombardo
4ded3fceb9 Merge branch 'multi-lib' of github.com:sqlcipher/sqlcipher into multi-lib 2013-06-05 13:44:50 -04:00
Stephen Lombardo
35b4d9a425 initial implementation of CommonCrypto provider 2013-06-05 13:43:08 -04:00
Nick Parker
9c4d19eb4f Add read-only PRAGMA cipher_provider
Provides a readonly name of the cipher provider.  Available once
the codec_ctx has been properly initialized as the provider name
is sourced from the sqlcipher_provider implementation.
2013-06-05 11:28:32 -05:00
Nick Parker
eb3c1dc076 Tracking the state of the prng 2013-06-05 11:28:32 -05:00
Nick Parker
bac7518159 Removing sha256 hash reference 2013-06-05 11:28:32 -05:00
Stephen Lombardo
f868ae38a7 remove uneccesary mptest and dSYM files 2013-06-05 12:24:15 -04:00
Stephen Lombardo
5296f3334b fixup build to include new sqlcipher.h 2013-05-31 02:40:08 -04:00
Stephen Lombardo
f60e96283e move sqlcipher_export to crypto.c 2013-05-31 02:23:24 -04:00
Stephen Lombardo
9aa1310d0e remove files generated buy build automatically 2013-05-31 02:19:36 -04:00
Stephen Lombardo
20d783141f tighten up public functions 2013-05-31 02:18:05 -04:00
Stephen Lombardo
c7f1d14ded providers accessed via function pointers 2013-05-31 00:52:19 -04:00
Nick Parker
50843f0b85 Check crypto library availability by type 2013-06-04 10:13:02 -05:00
Nick Parker
e44f59f2b3 Add support for --with-crypto-lib from autoconf
The default configure script generated from autoconf will default to
using OpenSSL as the crypto library.  With the new --with-crypto-lib
flag, users can specify libtomcrypto as an alternative crypto library.
2013-06-03 16:45:44 -05:00