Commit Graph
96 Commits
Author SHA1 Message Date
Stephen Lombardo a828432a72 normalize license statements, ifdefs, and wrapper comments 2013-06-12 11:01:38 -04:00
Stephen Lombardo 3659159b72 remove internal mutexing and move fortuna initialization to activate 2013-06-06 15:48:11 -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 1bc791708a separate out openssl implementation to separate source file 2013-05-29 11:18:32 -04:00
Stephen Lombardo 58980b9a5d normalize check for context in cipher pragma 2012-11-16 16:27:50 -05:00
Stephen Lombardo bea4a2c894 pragma to query cipher_hmac_pgno setting 2012-11-16 16:16:10 -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
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 9a6807e1b6 deactivation routine to call EVP_cleanup 2012-10-02 11:55:07 -04:00
Stephen Lombardo 913022cc3e detect failure to initialize context (i.e. out of memory) 2012-07-18 14:40:48 -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 96a7738587 move pragma handling logic into crypto.c 2012-07-17 17:18:17 -04:00
Stephen Lombardo bfff38581c restructure to allow non-amalgamated builds again 2012-07-09 16:59:10 -04:00
Stephen Lombardo c6629b2fc7 Merge branch 'master' into prerelease 2012-05-18 11:15:36 -04:00
Nick Parker e4822420d6 Adjusting the way string content is rendered, fixes issue on Android. 2012-05-18 10:09:15 -05:00
Stephen Lombardo c2f7cd7926 enable secure delete on all encrypted databases 2012-05-18 02:22:40 -04:00
Stephen Lombardo 1a17b573eb fix context comparisons and log rekey errors 2012-05-17 17:29:27 -04:00
Nick Parker 525243c689 Adding PRAGMA cipher_version to identify the current SQLCipher version,
also including test.
2012-05-17 07:59:43 -05:00
Stephen Lombardo f018888ed8 Merge branch 'release-integration' 2012-05-15 20:49:14 -04:00
Stephen Lombardo 0330944245 resolv warnings under -DCODEC_DEBUG 2012-05-15 20:25:53 -04:00
Stephen Lombardo f26e6abad6 updates for compatibility with 3.7.12 functions 2012-05-15 19:18:44 -04:00
Stephen Lombardo aa848ebc08 Merge branch 'release-merge' 2012-02-29 11:39:45 -05:00
Stephen Lombardo 8f061f1a50 add pragma cipher_default_use_hmac to toggle global HMAC setting 2012-02-29 11:14:42 -05:00
Stephen Lombardo 758cc138d9 use new btsFlags under 3.7.10 instead of pageSizeFixed 2012-01-18 00:37:15 -05:00
Stephen Lombardo cdfd2a3d3a ensure that pragmas don't do anything unless a context is initialized on the db 2012-01-18 00:15:01 -05:00
Stephen Lombardo f7591e02fe rework hmac key derivation based on low iteration PBKDF2 with static salt mask 2012-01-12 23:42:55 -05:00
Stephen Lombardo 9c0dd8d449 improved HMAC key derivation
- ensure that the HMAC key derivation salt is different from
  that used to generate the encryption key
- allow the number of pbkdf2 iterations used for HMAC key
  derivation to be configured at runtime via pragma
2012-01-03 17:26:44 -05:00
Stephen Lombardo 823a099e5e improvements to error handling 2011-12-27 11:30:54 -05:00
Stephen Lombardo 0da4a1a5c5 minor cleanups 2011-12-27 11:05:43 -05:00
Stephen Lombardo 56fa635aff SQLC-1: fix behavior for PRAGMA rekey being called as first operation or before PRAGMA key 2011-08-17 14:00:36 -04:00
Steven Parkes e6396f9297 cleanup warnings 2011-05-09 15:31:27 -07:00
Steven Parkes d1af70233a -ansi -pedantic -std=c99 warning clean 2011-05-09 15:22:44 -07:00
Stephen Lombardo 76c1e11fe3 refactoring encryption interface so codec interface is separate from crypto implementation 2011-03-02 13:15:13 -05:00
Stephen Lombardo 7531bed022 allow HMAC behavior override via DEFAULT_USE_HMAC 2011-02-19 14:57:11 -05:00
Stephen Lombardo ffcb4f7fd9 refactor calculation of reserve space 2011-02-17 01:49:01 -05:00
Stephen Lombardo 3aefd5e5de codec_hmac uses hmac key 2011-02-17 00:14:54 -05:00
Stephen Lombardo b62c74407a improvements to pragmas, allow custom page sizes and page data checks via hmac
- now possible to set custom page size using PRAGMA cipher_page_size = N;
- allow custom pragmas to be used on attached databases
- perform hmac on page ciphertext and IV before decryption
2011-02-16 16:07:20 -05:00
Stephen Lombardo c45622d14d mutexes in rekey 2010-10-03 08:56:16 -04:00
Stephen Lombardo 658cb02be9 update other areas relying on GetPageSize to use default; Enter db->mutex before forcing page size 2010-10-03 01:14:16 -04:00
Stephen Lombardo a1439c8d71 resolve bug where page size is improperly set 2010-10-01 13:07:37 -04:00
Stephen Lombardo ebecc71a89 accommodate new void return from sqlite3PagerPagecount 2010-08-28 08:44:25 -04:00