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