Stephen Lombardo
c3f6cf1e02
null termination of key value
2013-08-13 12:54:16 -04:00
Nick Parker
f844a5dfc3
Attach new codec before btree copy
2013-07-29 11:04:29 -05:00
Nick Parker
9b415f6401
Work to configure the proper env. for the migration
2013-07-26 16:50:36 -05:00
Nick Parker
b507d1b180
Clean up compiler warnings
2013-07-26 09:29:36 -05:00
Nick Parker
fb14d957ca
Swap btree for write, reset password on codec - working.
2013-07-26 09:20:18 -05:00
Nick Parker
b92ddfc1ef
More work on cipher_migrate, still unusable
2013-07-25 16:22:58 -05:00
Nick Parker
4bc6ba08f8
Initial work on a PRAGMA cipher_migrate
...
Swapping of the Btree meta data is not working properly now.
2013-07-24 17:07:42 -05:00
Stephen Lombardo
6cd1fdf60b
finalize new attach behavior
...
- key can be specified in hex as key plus salt together
- source passphrase is cleared after derivation
- key specification containing derived key and salt stored on
cipher_ctx for use in attach on an encrypted main database
when no key is provided with the attach statement
2013-07-19 12:50:14 -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
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
Nick Parker
51f2855d36
Checking for SQLITE_OK as return code for random
2013-06-11 11:24:29 -05:00
Nick Parker
6937773d64
Passing pointer to provider context
2013-06-11 09:21:16 -05:00
Nick Parker
fe9cb18154
commoncrypto integration with configure & register
2013-06-06 12:19:49 -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
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
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
f7781428d8
remove inline to support vs compilation
2012-12-07 10:55:59 -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
d427cb370a
Merge pull request #37 from developernotes/prerelease
...
Prerelease
2012-11-06 12:30:09 -08:00
Nick Parker
69ef105817
Adding get support for cipher_page_size
2012-11-06 12:01:16 -06:00
Nick Parker
bc1def4a70
Adding get support to PRAGMA cipher_default_use_hmac
2012-11-06 11:48:35 -06:00
Nick Parker
9a9873b933
Adding get support to PRAGMA cipher_use_hmac
2012-11-06 11:41:59 -06:00
Nick Parker
6eb69e384a
Adding get support to the PRAGMA kdf_iter
2012-11-06 11:20:39 -06:00
Nick Parker
693a403f76
Print the cipher PRAGMA when context exists
2012-10-15 14:18:54 -05:00
Stephen Lombardo
fc04d69470
initialize memory in sqlcipher_malloc before use
2012-10-03 08:09:02 -04:00
Stephen Lombardo
273558efc6
improvements to memory comparison
2012-10-02 12:36:25 -04:00
Stephen Lombardo
9a6807e1b6
deactivation routine to call EVP_cleanup
2012-10-02 11:55:07 -04:00
Stephen Lombardo
f1ea44e3ef
pragma allows le, be, or native pgno ordering plus tests
2012-07-18 11:21:12 -04:00
Stephen Lombardo
7f2b44c8e2
DRY up and inline pragma settings
2012-07-17 22:54:38 -04:00
Stephen Lombardo
70ef31ff5d
add flag for normalizing pgno in HMAC check
2012-07-17 16:45:02 -04:00