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
Stephen Lombardo
7a9b9e39a1
move hmac setting to flags on cipher context
2012-07-17 16:19:40 -04:00
Stephen Lombardo
dbbbb7cca7
convert page number to little endian before MAC
2012-07-10 17:11:01 -04:00
Stephen Lombardo
06429ca622
fix issue with short page reads causing hmac failures with auto vacuum enabled
2012-06-13 13:34:14 -04:00
Stephen Lombardo
1a17b573eb
fix context comparisons and log rekey errors
2012-05-17 17:29:27 -04:00
Stephen Lombardo
f09f9f908a
error out if key_sz is ever 0 due to context corruption
2012-05-15 20:48:10 -04:00
Stephen Lombardo
0330944245
resolv warnings under -DCODEC_DEBUG
2012-05-15 20:25:53 -04: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
3a68b1bbca
clarify trace message for raw key
2012-01-13 12:28:13 -05:00
Stephen Lombardo
8ce46cd998
Revert "perform fast key derivation on raw keys"
...
This reverts commit 2e868032dc .
2012-01-13 12:27:16 -05:00
Stephen Lombardo
2e868032dc
perform fast key derivation on raw keys
2012-01-13 00:18:23 -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
ec013d7b51
allocate EVP_CIPHER_CTX and HMAC_CTX as part of cipher_ctx's locked heap memory
2012-01-03 11:05:11 -05:00
Stephen Lombardo
95049844a8
add notice
2011-12-28 11:20:02 -05:00
Stephen Lombardo
b673c72215
fix warnings under visual studio
2011-12-27 13:25:08 -05:00
Stephen Lombardo
786292f703
fixes for compilation under os x
2011-12-27 13:00:58 -05:00
Stephen Lombardo
5d4ded1850
fix hmac calls on macosx
2011-12-27 12:27:41 -05:00
Stephen Lombardo
15118068de
memory locking
2011-12-27 12:15:58 -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
9f710946ac
explicitly use RAND_bytes per issue #15
2011-12-27 10:35:43 -05:00
Steven Parkes
d1af70233a
-ansi -pedantic -std=c99 warning clean
2011-05-09 15:22:44 -07:00
Stephen Lombardo
946f363290
remove return on void function
2011-04-17 21:51:41 -04:00
Stephen Lombardo
92e4ad7436
implementation of sqlcipher_export() function to copy schema and data between databases
2011-04-14 16:44:29 -04:00
Stephen Lombardo
76c1e11fe3
refactoring encryption interface so codec interface is separate from crypto implementation
2011-03-02 13:15:13 -05:00