Commit Graph
105 Commits
Author SHA1 Message Date
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
Steve Thomas a5d41bf0ad Validate Hex 2016-01-27 10:59:39 -06:00
Nick Parker e451540b9c Remove null check, assignment always occurs 2015-06-17 11:57:43 -05:00
Nick Parker 29b00cb2fc Initial FIPS integration 2015-03-10 14:33:43 -05:00
Nick Parker 15186850b5 Merge branch 'feature/aix' of https://github.com/likema/sqlcipher into likema-feature/aix 2015-03-10 13:23:41 -05:00
Like Ma a94d35c7dc Fix building error by GCC 4.5.4 in AIX 5.1
GCC reported undefined mmap without _AIX macro.
2015-03-03 15:07:16 +08:00
Nick Parker a31d65d7c8 Add support for attaching databases with non-default page sizes 2015-01-29 10:39:12 -06:00
Nick Parker 7180cded4d Remove static modifier from codec password storage functions 2014-12-16 16:19:35 -06:00
Stephen Lombardo c6072831d1 fix redundant key derivation with common crypto provider 2014-07-25 11:42:24 -04: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 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