Nick Parker
fafd98ef5d
Add PRAGMA cipher_profile support
2014-04-07 11:42:32 -05:00
Nick Parker
bba319a716
Fix for cipher_migrate on passphrases longer than 64 characters and raw keys
2013-12-06 11:03:50 -06:00
Nick Parker
200b3146a3
Adjustment to ltc crypto provider and cipher_add_random
2013-12-03 13:32:05 -06:00
Nick Parker
4b31a37006
Enforce prefix and suffix format for cipher_add_random
2013-11-26 09:52:55 -06:00
Nick Parker
8348d8e1ed
Fix compilation for Windows
2013-11-25 14:46:26 -06:00
Nick Parker
930b441e81
Add PRAGMA cipher_add_random to source external entropy
2013-11-25 10:34:09 -06:00
Nick Parker
c7986f2905
Do not use VirtualLock/Unlock on WinRT or Windows Phone
2013-11-04 16:42:32 -06:00
Nick Parker
bdd8d0a5c6
Change pass field to unsigned char * in cipher_ctx
2013-10-15 10:08:16 -05:00
Nick Parker
fc2fcff453
Ignore hmac read during Btree file copy
2013-09-23 11:16:12 -05:00
Nick Parker
9d84aca41d
Proper format for key on attach, migrate user_version
2013-09-12 09:16:21 -05:00
Stephen Lombardo
018c0fb979
remove unused variables
2013-09-03 17:29:13 -04:00
Stephen Lombardo
16167e9855
restore use of ArraySize convenience function
2013-09-03 16:54:23 -04:00
Stephen Lombardo
f2912623bc
fix regression itroduced in prior commit
2013-09-03 16:47:11 -04:00
Stephen Lombardo
f25510fb98
ANSI C and win c compiler fixes
2013-09-11 16:27:27 -04:00
Nick Parker
432585f0f8
Adjustments due to upstream merging
2013-08-29 09:04:14 -05:00
Nick Parker
cfee6c249c
Merge branch 'attach' into kdfiter
...
Conflicts:
test/crypto.test
2013-08-13 15:27:51 -05:00
Nick Parker
6f4a0f2d8d
Adjustments to cipher_migrate
...
- And format flags when checking for exit condition
- Pass key size to sqlcipher_check_connection
- Trace version upgrade logic
2013-08-13 14:53:08 -05:00
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
Nick Parker
1d3fc78431
Merge branch 'prerelease' into kdfiter
...
Conflicts:
src/crypto_impl.c
2013-07-11 14:51:09 -05:00
Stephen Lombardo
573d7b209d
improve initialization and thread safety for default crypto provider
2013-07-09 11:26:40 -04:00
Stephen Lombardo
a2bb641e48
64k iterations plus pragma cipher_default_kdf_iter function
2013-06-27 19:07:58 -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