Browse Source

chore(windows): update SQLCipher to 4.5.0

reviewable/pr6422/r2
Maxim Biro 4 years ago committed by Anthony Bilinski
parent
commit
bc7497a01c
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 3
      src/persistence/db/rawdatabase.cpp
  2. 4
      windows/cross-compile/build.sh

3
src/persistence/db/rawdatabase.cpp

@ -271,7 +271,8 @@ bool RawDatabase::setCipherParameters(SqlCipherParams params, const QString& dat @@ -271,7 +271,8 @@ bool RawDatabase::setCipherParameters(SqlCipherParams params, const QString& dat
const QString default4_xParams{"PRAGMA database.cipher_page_size = 4096;"
"PRAGMA database.kdf_iter = 256000;"
"PRAGMA database.cipher_hmac_algorithm = HMAC_SHA512;"
"PRAGMA database.cipher_kdf_algorithm = PBKDF2_HMAC_SHA512;"};
"PRAGMA database.cipher_kdf_algorithm = PBKDF2_HMAC_SHA512;"
"PRAGMA database.cipher_memory_security = ON;"}; // got disabled by default in 4.5.0, so manually enable it
QString defaultParams;
switch(params) {

4
windows/cross-compile/build.sh

@ -391,8 +391,8 @@ set -u @@ -391,8 +391,8 @@ set -u
# SQLCipher
SQLCIPHER_PREFIX_DIR="$DEP_DIR/libsqlcipher"
SQLCIPHER_VERSION=v4.4.0
SQLCIPHER_HASH="0924b2ae1079717954498bda78a30de20ce2a6083076b16214a711567821d148"
SQLCIPHER_VERSION=v4.5.0
SQLCIPHER_HASH="20c46a855c47d5a0a159fdcaa8491ec7bdbaa706a734ee52bc76188b929afb14"
SQLCIPHER_FILENAME="$SQLCIPHER_VERSION.tar.gz"
if [ ! -f "$SQLCIPHER_PREFIX_DIR/done" ]
then

Loading…
Cancel
Save