775 Commits

Author SHA1 Message Date
Stephen Lombardo
d5c4edebd9 now rekey can be used on unencrpyted databases to encrypt the data 2008-08-19 00:45:46 -04:00
Stephen Lombardo
28585dbd6a add more test coverage; fix rekey bug related to MJ_PAGE_NO 2008-08-10 22:39:35 -04:00
Stephen Lombardo
d9b3597d4b remove unused HDR_SZ definition 2008-08-09 08:48:26 -04:00
Stephen Lombardo
199bbc466d adjust test suite for new error message 2008-08-09 08:46:35 -04:00
Stephen Lombardo
984cc531df allocate random data for intialization vector 2008-08-09 08:46:03 -04:00
Stephen Lombardo
301a6beeef major simplification - allocate space at end of each page for random initialization vector 2008-08-09 08:13:30 -04:00
Stephen Lombardo
2fe24cf434 initial cut at a regression test script for cipher codec functionality. execute make testfixture && ./testfixture test/codec.test 2008-08-07 09:33:59 -04:00
Stephen Lombardo
ebeaf637db working implementation of rekey functionality. PRAGMA rekey='passphrase' will now encrypt a database if it is currently unencrypted or re-encrypt with a new passphrase if it is already encrypted. 2008-08-06 10:30:36 -04:00
Stephen Lombardo
9546e71745 basic implimentation of sqlite3_rekey functionality. WARNING: currently only works on single page databses! 2008-08-04 15:46:58 -04:00
Stephen Lombardo
04faa55bf8 add hook to support PRAGMA rekey='xyz' 2008-08-04 15:16:50 -04:00
Stephen Lombardo
38fc33fa6d base defintions, allocations, and cleanup for codec rekey data 2008-08-04 14:31:19 -04:00
Stephen Lombardo
694dfbb47b notes about implementation of rekey functionality 2008-08-04 14:25:45 -04:00
Stephen Lombardo
211a71ea9c identify and exclude tests that cause permanent errors due to encrypted file format 2008-08-01 21:39:17 -04:00
Stephen Lombardo
e2515c0ebd addtional testing for null pointers and malloc errors 2008-08-01 13:30:40 -04:00
Stephen Lombardo
5b4d50c488 updated documentation on how to build and use sqlite-cipher in README 2008-07-30 21:47:23 -04:00
Stephen Lombardo
b185f3b2ed add sqlite3FreeCodecArg call to sqlite3PagerClose; new code wipes sensitive data and frees allocated memory when database/btree/pager is closed 2008-07-30 21:29:04 -04:00
Stephen Lombardo
c9b06918b1 move key preparation into sqlite3_key and out of sqlite3CodecAttach for cleaner interface 2008-07-30 20:55:42 -04:00
Stephen Lombardo
ce3851b8ad use predefined sqlite3PagerSetCodec on attach 2008-07-30 20:11:38 -04:00
Stephen Lombardo
b76f6e9328 handle memory allocation errors 2008-07-30 16:24:44 -04:00
Stephen Lombardo
39d1612056 handle condition where raw key data is passed into sqlite3CodecAttach through database attach 2008-07-30 14:26:03 -04:00
Stephen Lombardo
3ec4def62f add see activation to extension 2008-07-30 13:44:33 -04:00
Stephen Lombardo
36dc72d361 updates to note public domain license and readme 2008-07-30 13:33:57 -04:00
Stephen Lombardo
a45a181cee switch digest to sha256 (requires sha256 support in openssl); allow setting a passphrase instead of raw blob key; update readme 2008-07-30 13:15:55 -04:00
Stephen Lombardo
11dd40da8d baseline working encryption plugin and build rules (hex key only) 2008-07-30 10:43:21 -04:00
Stephen Lombardo
617ed01e77 commit of sqlite 3.6.0 2008-07-30 09:15:43 -04:00