Skip to content

Commit 7aab546

Browse files
committed
Prepare release of version 2.2.1
- update readme, CHANGELOG - adjust signature of sqlite3mcExtractRawKey
1 parent 72ad7b3 commit 7aab546

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.2.1] - 2025-07-09
11+
1012
### Added
1113

12-
- Added plaintext header option to some ciphers (issue [#209](../../issues/209))
14+
- Added plaintext header option to some ciphers (issue [#209](../../issues/209))
1315
This option, added to ciphers _chacha20_, _ascon128_, and _aegis_, keeps the database header partially unencrypted and works in the same way as for the cipher scheme _sqlcipher_.
1416

1517
### Changed
1618

17-
- Simplified and unified raw key and salt specification
19+
- Simplified and unified raw key and salt specification
1820
- raw keys (and optionally salt) can be given in both formats, _SQLCipher_ or _sqleet_, for all cipher schemes supporting raw key specification (_chacha20_, _sqlcipher_, _ascon128_, _aegis_)
1921
- the cipher salt can now also be specified via "pragma cipher_salt" - pragma takes precedence over URI parameter
20-
- the "cipher" URI parameter is no longer mandatory for the default cipher scheme
22+
- the "cipher" URI parameter is no longer mandatory for the **default** cipher scheme
2123

2224
## [2.2.0] - 2025-07-01
2325

@@ -652,7 +654,8 @@ The following ciphers are supported:
652654
- AES 256 Bit CBC - SHA1/SHA256/SHA512 HMAC ([SQLCipher](https://www.zetetic.net/sqlcipher/), database versions 1, 2, 3, and 4)
653655
- RC4 - No HMAC ([System.Data.SQLite](http://system.data.sqlite.org))
654656

655-
[Unreleased]: ../../compare/v2.2.0...HEAD
657+
[Unreleased]: ../../compare/v2.2.1...HEAD
658+
[2.2.1]: ../../compare/v2.2.0...v2.2.1
656659
[2.2.0]: ../../compare/v2.1.3...v2.2.0
657660
[2.1.3]: ../../compare/v2.1.2...v2.1.3
658661
[2.1.2]: ../../compare/v2.1.1...v2.1.2

autoconf/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
July 1, 2025
1+
July 9, 2025
22
============
33

44
This package contains an experimental variant for "SQLite3 Multiple

autoconf/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.0
1+
2.2.1

readme.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ The code was mainly developed under Windows, but was tested under Linux as well.
1010

1111
## Version information
1212

13-
* 2.2.0 - *July 2025*
13+
* 2.2.1 - *July 2025*
1414
- Based on SQLite version 3.50.2
15-
- Removed dependency on security framework for Apple platforms
16-
- Regenerated build files using premake5 5.0.0-beta7
17-
- Added some patches for the SQLite shell source to handle extension inclusion
18-
- Added source code amalgamation release package including "configure" based on _autosetup_
15+
- Added plaintext header option to some ciphers (_chacha20_, _ascon128_, and _aegis_) (issue #209)
16+
- Simplified and unified raw key and salt specification
1917

2018
For further version information please consult the [CHANGELOG](CHANGELOG.md).
2119

src/cipher_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ SQLITE_PRIVATE void sqlite3mcConvertHex2Bin(const unsigned char* hex, int len, u
197197

198198
SQLITE_PRIVATE int sqlite3mcExtractRawKey(const char* password, int passwordLength,
199199
int keyOnly, int keyLength, int saltLength,
200-
char* key, char* salt);
200+
unsigned char* key, unsigned char* salt);
201201

202202
SQLITE_PRIVATE int sqlite3mcConfigureFromUri(sqlite3* db, const char *zDbName, int configDefault);
203203

src/cipher_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ sqlite3mcFileControlPragma(sqlite3* db, const char* zDbName, int op, void* pArg)
951951
{
952952
/* Save given cipher salt */
953953
if (sqlite3Strlen30(pragmaValue) >= 2 * KEYSALT_LENGTH &&
954-
sqlite3mcIsHexKey(pragmaValue, 2 * KEYSALT_LENGTH))
954+
sqlite3mcIsHexKey((unsigned char*) pragmaValue, 2 * KEYSALT_LENGTH))
955955
{
956956
char* cipherSalt = sqlite3_mprintf("%s", pragmaValue);
957957
if (sqlite3_set_clientdata(db, "sqlite3mc_cipher_salt", cipherSalt, sqlite3_free) != SQLITE_OK)

src/codec_algos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ sqlite3mcConvertHex2Bin(const unsigned char* hex, int len, unsigned char* bin)
237237
SQLITE_PRIVATE int
238238
sqlite3mcExtractRawKey(const char* password, int passwordLength,
239239
int keyOnly, int keyLength, int saltLength,
240-
char* key, char* salt)
240+
unsigned char* key, unsigned char* salt)
241241
{
242242
/* Bypass key derivation if the key string starts with "raw:" */
243243
int bypass = 0;

0 commit comments

Comments
 (0)