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
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
d85cc20dc8
update to version 2.2.0
2013-05-24 16:37:12 -04:00
Stephen Lombardo
47e8413d24
Merge branch 'deb' into prerelease-int
...
Conflicts:
Makefile.in
VERSION
configure
2013-05-24 16:36:21 -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
Stephen Lombardo
94915f34f5
rebuild configure script
2013-03-20 16:40:14 -04:00
Stephen Lombardo
cd2c50036b
update autoconf to pull automatically use VERSION
2013-03-20 16:38:02 -04:00
Stephen Lombardo
ed1e161168
remove -DNDEBUG flag on debug builds
2013-02-25 13:59:50 -05:00