Commit Graph

72 Commits

Author SHA1 Message Date
Siddarth Kumar abfb97b5f3
fix: android builds of statusgo for ndk r26b
Fix android builds of statusgo for ndk r26b

This PR fixes a build error which was generated after we upgraded our Android NDK from `25.2.9519653` to `26.1.10909125`

The following functions need to be compiled with target for both as `aes` and `crypto` :
- `aesce_encrypt_block`
- `aesce_decrypt_block`
- `aes_sub_word`
- `mbedtls_aesce_inverse_key`

ref : https://clang.llvm.org/docs/AttributeReference.html#target
2024-09-20 16:48:32 +05:30
Siddarth Kumar 848aa0a939
chore: explicitly set targets for compilation
The following functions need to target both as aes and crypto :
- aesce_encrypt_block
- aesce_decrypt_block
- aes_sub_word
- mbedtls_aesce_inverse_key
2024-09-18 08:24:30 +05:30
Alex Jbanca 2d907f4ca4
chore(upgradeSQLCipher): Scanning NULL BLOB value should return nil
Fixing failing tests: TestSyncDeviceSuite/TestPairingSyncDeviceClientAsReceiver; TestSyncDeviceSuite/TestPairingSyncDeviceClientAsSender

Considering the following configuration:
1. Table with BLOB column has 1 NULL value
2. Query the value
3. Rows.Scan(&dest sql.NullString)

Expected: dest.Valid == false; dest.String == nil
Actual: dest.Valid == true; dest.String == ""
2023-06-06 15:26:21 +03:00
Alex Jbanca 17828ba1d9
chore(upgradeSQLCipher): Upgrading to sqlcipher v4.5.4 2023-05-31 16:52:39 +03:00
Lukáš Tinkl c8821f42c4
[tomcrypt] replace AES implementation with mbedtls
HW accelerated versions provided for x86_64 and arm64, with compile time
guards and runtime detection

needed for https://github.com/status-im/status-desktop/issues/10726

(cherry picked from commit 71eb4d24d5)
2023-05-31 15:50:48 +03:00
Lukáš Tinkl 45b0a2e1c6
[tomcrypt] replace AES implementation with mbedtls
HW accelerated versions provided for x86_64 and arm64, with compile time
guards and runtime detection

needed for https://github.com/status-im/status-desktop/issues/10726

(cherry picked from commit 97fb545043)
2023-05-25 06:52:48 +03:00
Lukáš Tinkl 16cfded319
chore(compatibilityMode): Enable DB open in sqlcipher 3 compatibility mode 2023-05-24 19:08:34 +03:00
Lukáš Tinkl 1b0aff9ce3
performance(sqlcipher): provide optimized versions of `sha1_compress`
- on ARM, use Neon/ACLE extensions (a 3x-4x perf improvement)
- on x64 use a plain C implementation from nayuki (a 2x-3x perf gain)

Unfortunately, we can't use the dedicated `SHA1` extension on x64 as this
became widely available only recently (esp. on AMD CPUs)

(cherry picked from commit cfa6dd9438)
2023-05-23 13:56:48 +03:00
Alex Jbanca f0c26bafb5
chore(cherry-pick): Cherry-picking commit 5d5c005: Fix burn_stack performance issue
performance(sqlcipher): Fix burn_stack performance issue
2023-05-23 13:46:41 +03:00
Frank Braun 25f68adb9f update modules 2020-12-07 17:58:31 +00:00
Frank Braun b218d0044f fix compilation of util directory 2020-12-07 17:57:41 +00:00
Frank Braun 93d36ea9fb upgrade go-sqlite3 to v1.14.5 2020-12-07 17:56:38 +00:00
Frank Braun c7c49f6e45 upgrade libtomcrypt 2020-12-07 17:45:45 +00:00
Frank Braun 72b5deda86 upgrade SQLCipher to 4.4.2 2020-12-07 17:37:20 +00:00
Frank Braun 20debb6b4d use url.QueryEscape() for documentation purposes
Related to issue #15
2020-08-28 18:39:39 +00:00
Frank Braun c35c778656 improve documentation for plain text passwords
Related to issue #15
2020-08-28 18:37:34 +00:00
Frank Braun c9a3a061e2 add test util
Related to issue #15
2020-08-28 18:11:58 +00:00
Frank Braun e09215ab7f disable go vet in tests 2020-08-20 03:22:58 +00:00
Frank Braun 7ceff4fe49 make imported package name explicit 2020-08-20 03:22:35 +00:00
Frank Braun eb39fcd95b fix typo 2020-08-20 03:05:33 +00:00
Frank Braun 13274c6248 update badge 2020-08-20 03:03:20 +00:00
Frank Braun 89d243bc6d add test to .PHONY 2020-08-20 02:50:42 +00:00
Frank Braun c0ffa3b4ce add missing newline 2020-08-20 02:50:22 +00:00
Frank Braun ddac31c587
Merge pull request #14 from klingtnet/replace-travis-with-github-actions
Replace Travis CI with Github Actions
2020-08-20 02:49:20 +00:00
Andreas Linz ffb2c496ae
Replace Travis CI with Github Actions
The motiviation behind this change is that Github Actions is obviously better integrated in Github than Travis CI and that it will be easy to run test against non Linux platforms, e.g. macOS or Windows.
Tests are now run for the three most recent Go versions, i.e. Go 1.13, 1.14 and 1.15 .
A new 'test' target was added to the Makefile.
2020-08-19 19:49:26 +02:00
Frank Braun f52b843737 update README 2020-07-23 04:40:32 +00:00
Frank Braun 93d8e09d7f update github.com/mattn/go-sqlite3 to latest
Related to #8
2020-07-23 04:09:25 +00:00
Frank Braun c295eba9b5 update LICENSE file
The licenses didn't change per se, but reflect changed wordings.
2020-07-23 03:50:16 +00:00
Frank Braun 0281f43053 use new import path for v4 series 2020-07-23 02:33:59 +00:00
Frank Braun 8b29dea77d document date of go-sqlite3 sources 2020-07-23 02:08:16 +00:00
Frank Braun 13d6b38f27 .travis.yml: bump Go version 2020-07-23 02:05:26 +00:00
Frank Braun 78e06c3d61 upgrade SQLCipher to 4.4.0
Also upgrade libtomcrypt to the latest version.

Thanks to André Medeiros for preparing the switch to SQLCipher 4.x
with https://github.com/mutecomm/go-sqlcipher/pull/9
2020-07-23 02:04:21 +00:00
Frank Braun 55dbde1788 mention SQLCipher 3.x releases in README
Related to issue #7
2019-02-27 15:23:16 +00:00
Frank Braun 6c235a2a22 update code from github.com/sqlcipher/sqlcipher
To release v3.4.2.

Related to issue #7
2019-02-27 15:18:15 +00:00
Frank Braun 8416e17111 travis: also download test dependencies 2019-02-27 14:42:48 +00:00
Frank Braun 3aeeb353c7 goimports -w 2019-02-27 14:25:55 +00:00
Frank Braun 0f6a32fd34 bump go version for tests 2019-02-26 22:20:48 +00:00
Frank Braun 7cfed398a7 add Makefile and activate modules 2019-02-26 17:54:51 +00:00
Frank Braun 77b893cedc use github.com/mutecomm/go-sqlcipher for example 2019-02-26 17:53:30 +00:00
Frank Braun f799951b4a remove unnecssary flag
This pulls in the pthreads library on Windows.
It is not necessary to make libtomcrypt thread safe, a mutex is already
applied in sqlcipher.
2017-09-20 22:46:53 +00:00
Frank Braun eee495e76d add ExampleIsEncrypted() 2017-05-09 13:16:13 +00:00
Frank Braun 0fd2b12476 document sqlite3.IsEncrypted() 2017-05-08 21:04:03 +00:00
Frank Braun 81d39a96e8 add IsEncrypted() and tests to check encryption 2017-05-08 20:59:16 +00:00
Frank Braun 6bf6f0208d rename SQLCipher specific tests 2017-05-08 19:01:47 +00:00
Frank Braun 1ea89987f6 add missing pragmas 2017-05-08 18:54:00 +00:00
Frank Braun 2fc2f58d75 update code from github.com/mattn/go-sqlite3
Upstream fix to
https://github.com/mattn/go-sqlite3/issues/311
resolves issue #5
2017-04-26 07:12:32 +00:00
Frank Braun 5270fcca18 bump go version for tests 2017-04-24 23:22:57 +00:00
Frank Braun 7fafec4233 update code from github.com/sqlcipher/sqlcipher
To release v3.4.1.

Related to issue #5
2017-04-24 23:16:23 +00:00
Frank Braun 34287a64fb Merge pull request #3 from nkbai/master
build error on windows because of pthread
2016-07-01 14:27:31 +00:00
nkbai fe462c2f29 build error on windows because of pthread 2016-07-01 21:43:08 +08:00