adjustments to log output
[sqlcipher.git] / CHANGELOG.md
blob15cbbd779b3da40b3d63e2e0c4abaa04cb5767d1
1 # SQLCipher Change Log
2 All notable changes to this project will be documented in this file.
4 ## [4.5.1] - (February 2022 - [4.5.1 changes])
5 - Updates source code baseline to upstream SQLite 3.37.2
6 - Adds PRAGMA cipher_log and cipher_log_level features to allow logging of TRACE, DEBUG, INFO, WARN, and ERROR messages to stdout, stderr, file, or logcat
7 - Modifies PRAGMA cipher_profile to use sqlite3_trace_v2 and adds logcat target for Android
8 - Updates OpenSSL provider to use EVP_MAC API with version 3+
9 - Adds new PRAGMA cipher_test_on, cipher_test_off, and cipher_test_rand (available when compiled with -DSQLCIPHER_TEST) to facilitate simulation of error conditions
10 - Fixes PRAGMA cipher_integrity_check to work properly with databases larger that 2GB
11 - Fixes missing munlock before free for context internal buffer (thanks to Fedor Indutny)
13 ## [4.5.0] - (October 2021 - [4.5.0 changes])
14 - Updates baseline to upstream SQLite 3.36.0
15 - Changes the enhanced memory security feature to be DISABLED by default; once enabled by PRAGMA cipher_memory_security = ON, it can't be turned off for the lifetime of the process
16 - Changes PRAGMA cipher_migrate to permanently enter an error state if a migration fails
17 - Fixes memory locking/unlocking issue with realloc implementation on hardened runtimes when memory security is enabled
18 - Fixes cipher_migrate to cleanup the temporary database if a migration fails
19 - Removes logging of non-string pointers when compiling with trace level logging
21 ## [4.4.3] - (February 2021 - [4.4.3 changes])
22 - Updates baseline to ustream SQLite 3.34.1
23 - Fixes sqlcipher_export handling of NULL parameters
24 - Removes randomization of rekey-delete tests to avoid false test failures
25 - Changes internal usage of sqlite_master to sqlite_schema
26 - Omits unusued profiling function under certain defines to avoid compiler warnings
28 ## [4.4.2] - (November 2020 - [4.4.2 changes])
29 - Improve error handling to resolve potential corruption if an encryption operation failed while operating in WAL mode
30 - Changes to OpenSSL library cryptographic provider to reduce initialization complexity
31 - Adjust cipher_integrity_check to skip locking page to avoid a spurious error report for very large databases
32 - Miscellaneous code and comment cleanup
34 ## [4.4.1] - (October 2020 - [4.4.1 changes])
35 - Updates baseline to upstream SQLite 3.33.0
36 - Fixes double-free bug in cipher_default_plaintext_header_size
37 - Changes SQLCipher tests to use suite runner
38 - Improvement to cipher_integrity_check tests to minimize false negatives
39 - Deprecates PRAGMA cipher_store_pass
41 ## [4.4.0] - (May 2020 - [4.4.0 changes])
42 - Updates baseline to upstream SQLite 3.31.0
43 - Adjusts shell to report SQLCipher version alongside SQLite version
44 - Fixes various build warnings under several compilers
45 - Removes unused id and status functions from provider interface
47 ## [4.3.0] - (November 2019 - [4.3.0 changes])
48 - Updates baseline to upstream SQLite 3.30.1
49 - PRAGMA key now returns text result value "ok" after execution
50 - Adjusts backup API so that encrypted to encrypted backups are permitted
51 - Adds NSS crypto provider implementation
52 - Fixes OpenSSL provider compatibility with BoringSSL
53 - Separates memory related traces to reduce verbosity of logging
54 - Fixes output of PRAGMA cipher_integrity_check on big endian platforms
55 - Cryptograpic provider interface cleanup
56 - Rework of mutex allocation and management
57 - Resolves miscellaneous build warnings
58 - Force error state at database pager level if SQLCipher initialization fails
60 ## [4.2.0] - (May 2019 - [4.2.0 changes])
61 - Adds PRAGMA cipher_integrity_check to perform independent verification of page HMACs
62 - Updates baseline to upstream SQLite 3.28.0
63 - Improves PRAGMA cipher_migrate to handle keys containing non-terminating zero bytes
65 ## [4.1.0] - (March 2019 - [4.1.0 changes])
66 - Defer reading salt from header until key derivation is triggered
67 - Clarify usage of sqlite3_rekey for plaintext databases in header
68 - Normalize attach behavior when key is not yet derived
69 - Adds PRAGMA cipher_settings to query current database codec settings
70 - Adds PRAGMA cipher_default_settings to query current default SQLCipher options
71 - PRAGMA cipher_hmac_pgno is now deprecated
72 - PRAGMA cipher_hmac_salt_mask is now deprecated
73 - PRAGMA fast_kdf_iter is now deprecated
74 - Improve sqlcipher_export routine and restore all database flags
75 - Clear codec data buffers if a crypographic provider operation fails
76 - Disable backup API for encrypted databases (this was previously documented as not-working and non-supported, but will now explicitly error out on initialization)
77 - Updates baseline to upstream SQLite 3.27.2
79 ## [4.0.1] - (December 2018 - [4.0.1 changes])
80 - Based on upstream SQLite 3.26.0 (addresses SQLite “Magellan” issue)
81 - Adds PRAGMA cipher_compatibility and cipher_default_compatibility which take automatcially configure appropriate compatibility settings for the specified SQLCipher major version number
82 - Filters attach statements with KEY parameters from readline history
83 - Fixes crash in command line shell with empty input (i.e. ^D)
84 - Fixes warnings when compiled with strict-prototypes
86 ## [4.0.0] - (November 2018 - [4.0.0 changes])
87 ### Changed
88 - Default page size for databases increased to 4096 bytes (up from 1024) *
89 - Default PBKDF2 iterations increased to 256,000 (up from 64,000) *
90 - Default KDF algorithm is now PBKDF2-HMAC-SHA512 (from PBKDF2-HMAC-SHA1) *
91 - Default HMAC algorithm is now HMAC-SHA512 (from HMAC-SHA1) *
92 - PRAGMA cipher is now disabled and no longer supported (after multi-year deprecation) *
93 - PRAGMA rekey_cipher is now disabled and no longer supported *
94 - PRAGMA rekey_kdf_iter is now disabled and no longer supported *
95 - By default all memory allocated internally by SQLite before the memory is wiped before it is freed 
96 - PRAGMA cipher_memory_security: allows full memory wiping to be disabled for performance when the feature is not required
97 - PRAGMA cipher_kdf_algorithm, cipher_default_kdf_algorithm to control KDF algorithm selection between PBKDF2-HMAC-SHA1, PBKDF2-HMAC-SHA256 and PBKDF2-HMAC-SHA512
98 - PRAGMA cipher_hmac_algorithm, cipher_default_hmac_algorithm to control HMAC algorithm selection between HMAC-SHA1, HMAC-SHA256 and PBKDF2-HMAC-SHA512
99 - Based on upstream SQLite 3.25.2
100 - When compiled with readline support, PRAGMA key and rekey lines will no longer be
101   saved to history
102 - Adds second optional parameter to sqlcipher_export to specify source database to
103   support bidirectional exports
104 - Fixes compatibility with LibreSSL 2.7.0+
105 - Fixes compatibility with OpenSSL 1.1.x
106 - Simplified and improved performance for PRAGMA cipher_migrate when migrating older database versions
107 - Refactoring of SQLCipher tests into separate files by test type
108 - PRAGMA cipher_plaintext_header_size and cipher_default_plaintext_header_size: allocates a portion of the database header which will not be encrypted to allow identification as a SQLite database
109 - PRAGMA cipher_salt: retrieve or set the salt value for the database
110 - Adds Podspec for using tagged versions of SQLCipher
111 - Define SQLCIPHER_PROFILE_USE_FOPEN for WinXP support
112 - Improved error handling for cryptographic providers
113 - Improved memory handling for PRAGMA commands that return values
114 - Improved version reporting to assist with identification of distribution
115 - Major rewrite and simplification of internal codec and pager extension
116 - Fixes compilation with --disable-amalgamation
117 - Removes sqlcipher.xcodeproj build support
119 ## [3.4.2] - (December 2017 - [3.4.2 changes])
120 ### Added
121 - Added support for building with LibreSSL
123 ### Changed
124 - Merge upstream SQLite 3.20.1
125 - Text strings for `SQLITE_ERROR` and `SQLITE_NOTADB` changed to match upstream SQLite
126 - Remove static modifier for codec password functions
127 - Page alignment for `mlock`
128 - Fix segfault in `sqlcipher_cipher_ctx_cmp` during rekey operation
129 - Fix `sqlcipher_export` and `cipher_migrate` when tracing API in use
130 - Validate codec page size when setting
131 - Guard OpenSSL initialization and cleanup routines
132 - Allow additional linker options to be passed via command line for Windows platforms
134 ## [3.4.1] - (December 2016 - [3.4.1 changes])
135 ### Added
136 - Added support for OpenSSL 1.1.0
138 ### Changed
139 - Merged upstream SQLite 3.15.2
141 ## [3.4.0] - (April 2016 - [3.4.0 changes])
142 ### Added
143 - Added `PRAGMA cipher_provider_version`
145 ### Changed
146 - Merged upstream SQLite 3.11.0
148 ### Deprecated
149 - Deprecated `PRAGMA cipher` command
151 ## [3.3.1] - (July 2015 - [3.3.1 changes])
152 ### Changed
153 - Merge upstream SQLite 3.8.10.2
154 - Fixed segfault when provided an invalid cipher name
155 - Check for codec context when performing `PRAGMA cipher_store_pass`
156 - Remove extraneous null check in `PRAGMA cipher_migrate`
158 ## [3.3.0] - (March 2015 - [3.3.0 changes])
159 ### Added
160 - Added FIPS API calls within the OpenSSL crypto provider
161 - `PRAGMA cipher_default_page_size` - support for attaching non-default page sizes
163 ### Changed
164 - Merged upstream SQLite 3.8.8.3
166 ## [3.2.0] - (September 2014 - [3.2.0 changes])
167 ### Added
168 - Added `PRAGMA cipher_store_pass`
170 ### Changed
171 - Merged upstream SQLite 3.8.6
172 - Renmed README to README.md
174 ## [3.1.0] - (April 2014 - [3.1.0 changes])
175 ### Added
176 - Added `PRAGMA cipher_profile`
178 ### Changed
179 - Merged upstream SQLite 3.8.4.3
181 ## [3.0.1] - (December 2013 - [3.0.1 changes])
182 ### Added
183 - Added `PRAGMA cipher_add_random` to source external entropy
185 ### Changed
186 - Fix `PRAGMA cipher_migrate` to handle passphrases longer than 64 characters & raw keys
187 - Improvements to the libtomcrypt provider
189 ## [3.0.0] - (November 2013 - [3.0.0 changes])
190 ### Added
191 - Added `PRAGMA cipher_migrate` to migrate older database file formats
193 ### Changed
194 - Merged upstream SQLite 3.8.0.2
195 - Remove usage of VirtualLock/Unlock on WinRT and Windows Phone
196 - Ignore HMAC read during Btree file copy
197 - Fix lib naming for pkg-config
198 - Use _v2 version of `sqlite3_key` and `sqlite3_rekey`
199 - Update xcodeproj file
201 ### Security
202 - Change KDF iteration length from 4,000 to 64,000
204 [unreleased]: https://github.com/sqlcipher/sqlcipher/compare/v4.5.1...prerelease
205 [4.5.1]: https://github.com/sqlcipher/sqlcipher/tree/v4.5.1
206 [4.5.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.5.0...v4.5.1
207 [4.5.0]: https://github.com/sqlcipher/sqlcipher/tree/v4.5.0
208 [4.5.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.4.3...v4.5.0
209 [4.4.3]: https://github.com/sqlcipher/sqlcipher/tree/v4.4.3
210 [4.4.3 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.4.2...v4.4.3
211 [4.4.2]: https://github.com/sqlcipher/sqlcipher/tree/v4.4.2
212 [4.4.2 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.4.1...v4.4.2
213 [4.4.1]: https://github.com/sqlcipher/sqlcipher/tree/v4.4.1
214 [4.4.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.4.0...v4.4.1
215 [4.4.0]: https://github.com/sqlcipher/sqlcipher/tree/v4.4.0
216 [4.4.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.3.0...v4.4.0
217 [4.3.0]: https://github.com/sqlcipher/sqlcipher/tree/v4.3.0
218 [4.3.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.2.0...v4.3.0
219 [4.2.0]: https://github.com/sqlcipher/sqlcipher/tree/v4.2.0
220 [4.2.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.1.0...v4.2.0
221 [4.1.0]: https://github.com/sqlcipher/sqlcipher/tree/v4.1.0
222 [4.1.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.0.1...v4.1.0
223 [4.0.1]: https://github.com/sqlcipher/sqlcipher/tree/v4.0.1
224 [4.0.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v4.0.0...v4.0.1
225 [4.0.0]: https://github.com/sqlcipher/sqlcipher/tree/v4.0.0
226 [4.0.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.4.2...v4.0.0
227 [3.4.2]: https://github.com/sqlcipher/sqlcipher/tree/v3.4.2
228 [3.4.2 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.4.1...v3.4.2
229 [3.4.1]: https://github.com/sqlcipher/sqlcipher/tree/v3.4.1
230 [3.4.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.4.0...v3.4.1
231 [3.4.0]: https://github.com/sqlcipher/sqlcipher/tree/v3.4.0
232 [3.4.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.3.1...v3.4.0
233 [3.3.1]: https://github.com/sqlcipher/sqlcipher/tree/v3.3.1
234 [3.3.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.3.0...v3.3.1
235 [3.3.0]: https://github.com/sqlcipher/sqlcipher/tree/v3.3.0
236 [3.3.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.2.0...v3.3.0
237 [3.2.0]: https://github.com/sqlcipher/sqlcipher/tree/v3.2.0
238 [3.2.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.1.0...v3.2.0
239 [3.1.0]: https://github.com/sqlcipher/sqlcipher/tree/v3.1.0
240 [3.1.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.0.1...v3.1.0
241 [3.0.1]: https://github.com/sqlcipher/sqlcipher/tree/v3.0.1
242 [3.0.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v3.0.0...v3.0.1
243 [3.0.0]: https://github.com/sqlcipher/sqlcipher/tree/v3.0.0
244 [3.0.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v2.2.0...v3.0.0
245 [2.2.0]: https://github.com/sqlcipher/sqlcipher/tree/v2.2.0
246 [2.2.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v2.1.1...v2.2.0
247 [2.1.1]: https://github.com/sqlcipher/sqlcipher/tree/v2.1.1
248 [2.1.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v2.1.0...v2.1.1
249 [2.1.0]: https://github.com/sqlcipher/sqlcipher/tree/v2.1.0
250 [2.1.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v2.0.6...v2.1.0
251 [2.0.6]: https://github.com/sqlcipher/sqlcipher/tree/v2.0.6
252 [2.0.6 changes]: https://github.com/sqlcipher/sqlcipher/compare/v2.0.5...v2.0.6
253 [2.0.5]: https://github.com/sqlcipher/sqlcipher/tree/v2.0.5
254 [2.0.5 changes]: https://github.com/sqlcipher/sqlcipher/compare/v2.0.3...v2.0.5
255 [2.0.3]: https://github.com/sqlcipher/sqlcipher/tree/v2.0.3
256 [2.0.3 changes]: https://github.com/sqlcipher/sqlcipher/compare/v2.0.0...v2.0.3
257 [2.0.0]: https://github.com/sqlcipher/sqlcipher/tree/v2.0.0
258 [2.0.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.10...v2.0.0
259 [1.1.10]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.10
260 [1.1.10 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.9...v1.1.10
261 [1.1.9]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.9
262 [1.1.9 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.8...v1.1.9
263 [1.1.8]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.8
264 [1.1.8 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.7...v1.1.8
265 [1.1.7]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.7
266 [1.1.7 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.6...v1.1.7
267 [1.1.6]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.6
268 [1.1.6 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.5...v1.1.6
269 [1.1.5]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.5
270 [1.1.5 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.4...v1.1.5
271 [1.1.4]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.4
272 [1.1.4 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.3...v1.1.4
273 [1.1.3]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.3
274 [1.1.3 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.2...v1.1.3
275 [1.1.2]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.2
276 [1.1.2 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.1...v1.1.1
277 [1.1.1]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.1
278 [1.1.1 changes]: https://github.com/sqlcipher/sqlcipher/compare/v1.1.0...v1.1.1
279 [1.1.0]: https://github.com/sqlcipher/sqlcipher/tree/v1.1.0
280 [1.1.0 changes]: https://github.com/sqlcipher/sqlcipher/compare/617ed01...v1.1.0