Commit Graph

233 Commits

Author SHA1 Message Date
Stephen Lombardo 65df5ed290 reflect SQLCipher name on startup 2013-06-22 14:43:38 -04:00
Stephen Lombardo b75c9ffa4b remove unused array allocation 2013-06-21 13:38:08 -04:00
Stephen Lombardo c9ec48ded8 add function to return current registered provider 2013-06-21 11:11:02 -04:00
Stephen Lombardo 51079a8775 resolve build warnings under clang 2013-06-21 11:01:18 -04:00
Nick Parker 1742ee4e5c Check defined for crypto impl flag & formatting 2013-06-12 12:15:13 -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 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
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 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 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
Nick Parker f6e4ed4783 Initial commit with support for using libtomcrypt. 2013-05-31 14:40:12 -05:00
Nick Parker 22bccfd164 Remove unneeded buffer from openssl_ctx 2013-05-29 15:52:12 -05:00
Nick Parker d720c6e3d1 Pass lib_ctx to all crypto_impl functions 2013-05-29 15:44:28 -05:00
Nick Parker f413acf207 Pull crypto_openssl into Makefile.in for building 2013-05-29 15:10:48 -05:00
Stephen Lombardo 1bc791708a separate out openssl implementation to separate source file 2013-05-29 11:18:32 -04:00
Nick Parker 297e94d2c2 Merge sqlite-release(3.7.17) into prerelease-integration
Conflicts:
	src/pragma.c
2013-05-21 15:42:46 -05:00
Nick Parker 67300dfce8 Snapshot of upstream SQLite 3.7.17 2013-05-21 15:38:11 -05:00
Nick Parker cfb5032bf3 Bumping the CIPHER_VERSION 2013-01-16 13:34:37 -06:00
Nick Parker 7d88842525 Snapshot of upstream SQLite 3.7.15.2 2013-01-15 16:38:05 -06:00
Nick Parker a28a2a2309 Merge sqlite-release(3.7.15.2) into prerelease-integration 2013-01-15 16:38:05 -06:00
Stephen Lombardo cf9fb1e077 rev to 2.1.1 2012-12-07 10:56:20 -05:00
Stephen Lombardo f7781428d8 remove inline to support vs compilation 2012-12-07 10:55:59 -05:00