Stephen Lombardo
369b22da7e
remove PRAGMA cipher
2018-09-11 17:13:58 -04:00
Stephen Lombardo
c40ffaa964
add PRAGMA cipher_memory_security to control settings; lock/unlock memory in manager
2018-09-11 12:56:45 -04:00
Stephen Lombardo
37270bd069
correct build errors and warnings
2018-09-06 13:22:54 -04:00
Stephen Lombardo
915a0a4686
disable rekey_cipher & rekey_kdf_iter; major simplification of internal contexts
2018-09-06 12:11:44 -04:00
Stephen Lombardo
1cdb2fcdce
cleanup to enable building with --disable-amalgamation
2018-09-06 09:52:32 -04:00
Stephen Lombardo
02cee4ca2a
add support for HMAC-SHA256 and HMAC-SHA512 (default) for HMAC and PBKDF2
2018-09-05 17:39:07 -04:00
Stephen Lombardo
1bb4737da2
adds PRAGMA default_cipher_plaintext_header_size and tests
2018-01-18 10:22:12 -05:00
Stephen Lombardo
a7c459aa77
implementation of PRAGMAs cipher_plaintext_header_sz and cipher_salt
2018-01-17 14:20:41 -05:00
Stephen Lombardo
895a4c7144
Merge branch 'trace' into prerelease-merge
2017-08-09 14:38:34 -04:00
Stephen Lombardo
42e067d17f
improvements and extensions to trace logging
2017-08-09 12:32:56 -04:00
Nick Parker
8a43a6273a
Fix sqlcipher_export & cipher_migrate when tracing API used
2017-05-25 13:44:23 -05:00
Stephen Lombardo
3f990b42f3
Merge branch 'master' into prerelease
2016-12-13 15:11:55 -05:00
Nick Parker
bae72ae4e3
Merge sqlite-release(3.15.2) into prerelease-integration
2016-12-06 13:10:27 -06:00
Nick Parker
c1f7fe783c
Prevent writing database with cipher set to invalid value
2016-05-25 16:37:54 -05:00
Nick Parker
e873a49d99
Prevent deadlock of database mutex
2016-05-13 16:28:34 -05:00
Nick Parker
85a407e259
Move declaration to top level of block
2016-03-07 14:35:07 -06:00
Nick Parker
bc9fda6b26
Issue warning for deprecated PRAGMA cipher command
2016-03-03 11:23:11 -06:00
Nick Parker
f9044bf604
Initial reporting of the cipher provider version
...
Execute PRAGMA cipher_provider_version;
Supports OpenSSL, libtomcrypt, and
common crypto when running on OS X
2016-02-22 15:53:08 -06:00
Nick Parker
cbcb03710a
Pass flag to sqlite3PagerGet
2016-02-22 12:39:29 -06:00
Nick Parker
18f95ebbea
Check for valid context before using cipher_store_pass
...
Identified by Nicholas Starke
2015-04-21 14:08:41 -05:00
Nick Parker
eb94bb8747
set writeOnly to false when performing sqlite3BtreeRollback
2015-03-20 10:03:51 -05:00
Nick Parker
29b00cb2fc
Initial FIPS integration
2015-03-10 14:33:43 -05:00
Nick Parker
a31d65d7c8
Add support for attaching databases with non-default page sizes
2015-01-29 10:39:12 -06:00
Nick Parker
90606b3d03
Add PRAGMA cipher_store_pass
...
PRAGMA cipher_store_pass allows the passphrase to remain in memory
which will allow an ATTACH statement to succeed without providing
the key value during ATTACH when both databases use the same passphrase,
but have different salt values. Previously, in order to ATTACH with
this scneario, calling ATTACH required providing the key value inline.
2014-06-13 16:18:02 -05:00
Nick Parker
fafd98ef5d
Add PRAGMA cipher_profile support
2014-04-07 11:42:32 -05:00
Nick Parker
200b3146a3
Adjustment to ltc crypto provider and cipher_add_random
2013-12-03 13:32:05 -06:00
Nick Parker
930b441e81
Add PRAGMA cipher_add_random to source external entropy
2013-11-25 10:34:09 -06:00
Nick Parker
8338f32f04
Adjust title of cipher_migrate output
2013-10-16 10:24:56 -05:00
Nick Parker
bdd8d0a5c6
Change pass field to unsigned char * in cipher_ctx
2013-10-15 10:08:16 -05:00
Stephen Lombardo
f25510fb98
ANSI C and win c compiler fixes
2013-09-11 16:27:27 -04:00
Nick Parker
045844f0cc
Adjust codec tracing, add rekey by name test.
2013-08-30 09:49:46 -05:00
Nick Parker
1ba0e0e418
Adjust db_index search count and rename codec_pragma
2013-08-30 08:24:57 -05:00
Nick Parker
1f17e15851
Implement sqlite3_key_v2 & sqlite3_rekey_v2.
2013-08-29 11:57:03 -05:00
Nick Parker
cfee6c249c
Merge branch 'attach' into kdfiter
...
Conflicts:
test/crypto.test
2013-08-13 15:27:51 -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
5827b3d3db
Merge branch 'prerelease' into attach
2013-06-27 19:09:42 -04:00
Stephen Lombardo
a2bb641e48
64k iterations plus pragma cipher_default_kdf_iter function
2013-06-27 19:07:58 -04:00
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
3703f3638e
rework attach to require explicit key
2013-05-24 16:17:15 -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