268 Commits
Author SHA1 Message Date
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
Stephen Lombardo 3703f3638e rework attach to require explicit key 2013-05-24 16:17:15 -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
Stephen Lombardo 58980b9a5d normalize check for context in cipher pragma 2012-11-16 16:27:50 -05:00
Stephen Lombardo a21a776ade fix flag checks 2012-11-16 16:20:37 -05:00
Stephen Lombardo bea4a2c894 pragma to query cipher_hmac_pgno setting 2012-11-16 16:16:10 -05:00
Stephen Lombardo 7aaf777c48 remove redundant memset calls 2012-11-16 15:22:04 -05:00
Stephen Lombardo c875686617 fixup some comments 2012-11-16 15:20:44 -05:00
Stephen Lombardo e8c819bcf8 sqlcipher_memset avoid's memset optimization 2012-11-16 15:05:33 -05:00
Stephen Lombardo 72a9eb2161 improvement to mem comparison in ismemset 2012-11-16 14:36:28 -05:00
Stephen Lombardo ef3ca72e31 pragma to print hmac salt mask 2012-11-16 13:32:03 -05:00
Stephen Lombardo c76596b12d pragma to return fast_kdf_iter 2012-11-16 12:52:51 -05:00
Stephen Lombardo 41d4c53cb4 rework some pragma related interfaces 2012-11-16 12:42:41 -05:00
Stephen Lombardo caf3865b8b pragmas to override hmac salt mask and allow migration of 2.0 beta databases 2012-11-16 11:13:14 -05:00
Stephen Lombardo 2fd20b36e1 preserve const qualifier 2012-11-16 08:52:07 -05:00
Stephen Lombardo 9d38ddee10 Merge branch 'prerelease' of ssh://github.com/sqlcipher/sqlcipher into prerelease 2012-11-15 18:49:21 -05:00
Stephen Lombardo 58acc8269f Merge branch 'sqlite-release' into prerelease-int 2012-11-15 18:46:41 -05:00
Stephen Lombardo 801e036cd8 upstream 3.7.14.1 2012-11-15 18:45:58 -05:00