Lysann Tranvouez
5c416bfb21
test .gpg-id support
...
mostly using mocks
2026-03-12 09:33:26 +01:00
Lysann Tranvouez
5a92b6fda7
clarify public vs private keys + make prvate key IDs available
2026-03-12 09:32:04 +01:00
Lysann Tranvouez
09b0b150ce
PGPAgent can encrypt with multiple keys
2026-03-11 14:12:24 +01:00
Lysann Tranvouez
e728f26a20
move and rename test functions
2026-03-11 14:11:29 +01:00
Lysann Tranvouez
84eaf4ad7d
PGPInterface can encrypt with multiple keys, PGPAgent can encrypt with all keys
2026-03-11 14:11:07 +01:00
Lysann Tranvouez
8d4f3af475
decryption: GopenPGPInterface tries to identify decryption key from message metadata
...
So the system can have multiple private keys, and the caller doesn't
need to specify a specific one regardless.
Ideally: If there are several matches we could also take into account
which keys have already been unlocked (or passthrases saved in
keychain). Right now it only grabs the first match.
2026-03-11 13:41:59 +01:00
Danny Mösch
1bdf9d684b
Rely on SPM plugins to consume SwiftLint and SwiftFormat
...
Use their latest releases and fix some violations and issues.
# Conflicts:
# .github/workflows/linting.yml
# .github/workflows/testing.yml
2024-11-29 00:18:30 +01:00
Danny Moesch
cdedff0d4d
Use SwiftFormat version 0.49.x and enable some new rules ( #527 )
2021-12-27 17:57:11 -08:00
Danny Mösch
3eb131b65d
Fix file headers ( #494 )
2021-08-27 22:32:31 -07:00
Danny Moesch
93954f3bec
Use ProtonMail's GopenPGP library
...
This allows for a simpler setup and the usage of a recent version of Go. The library provides a build script which creates an XCFramework containing binaries for multiple target architectures. The gnu-dummy.patch is taken from mssun/gopenpgp. The forks are not needed anymore.
2021-06-20 12:30:14 +02:00
Mingshen Sun
011762c4bd
Fix decryption issue when key without passphrase set
2021-01-10 15:01:21 -08:00
Danny Moesch
bf3bb8d168
Use SwiftLint version 0.47.x
2020-11-10 14:03:12 -08:00
Danny Moesch
49c6b25611
Use SwiftFormat version 0.47.x
2020-11-09 10:13:05 -08:00
Danny Moesch
e8389eb262
Enable SwiftLint rule 'identifier_name' and handle all violations
2020-09-20 17:25:50 -07:00
Danny Moesch
7f9f0e43b2
Format code with SwiftFormat automatically in every build
2020-08-25 15:10:13 -07:00
Danny Moesch
e2e3275293
Refactor and rename in test code
2020-04-19 13:42:41 -07:00
Danny Moesch
f643a63fe1
Fix typos
2020-04-19 13:42:41 -07:00
Mingshen Sun
fcc8961e46
Fix fail-safe mechanism for other decryption scenarios
2020-04-18 22:42:25 -07:00
Mingshen Sun
4fdf9767c5
Add test key in different passphrase
2020-04-13 21:23:23 -07:00
Mingshen Sun
eb6e854d92
Change logic of passphrass for multikeys
2020-04-13 21:23:23 -07:00
Mingshen Sun
e9c5b63c4b
Refactor logic of request PGP key passphrase
2020-04-13 21:23:23 -07:00
Mingshen Sun
e62f4714e8
Encryption support for multi keys
2020-04-13 21:23:23 -07:00
Mingshen Sun
b7ee00815c
Partially implement multikeys support (decryption)
2020-04-13 21:23:23 -07:00
Mingshen Sun
7f6e3f1909
Enable RSA4096 subkey and clone
2020-04-12 20:15:49 -07:00
Mingshen Sun
f4f038375b
Support gnu-dummy
2020-04-12 20:15:49 -07:00
Mingshen Sun
84b1c07f64
Update to gopengpg v2.0.0
2020-04-12 20:15:49 -07:00
Danny Moesch
a2edf41d33
Update SwiftyUserDefaults to current version 5.0.0
2020-01-01 19:03:04 -08:00
Danny Moesch
01ac9d38df
Adapt code to changed API of GopenPGP
2019-11-08 14:05:25 -08:00
Danny Moesch
44cb864642
Wrap GopenPGP errors into more understandable app errors
2019-10-20 11:35:52 -07:00
Yishi Lin
af9e35a788
Fix unit test
2019-10-03 14:49:03 +08:00
Yishi Lin
e332b1f3be
Do not forget pgp passphrase on decryption error #296
2019-09-30 02:05:01 +08:00
Yishi Lin
6b00d4911b
Fix a decryption bug
2019-09-30 00:12:54 +08:00
Danny Moesch
2618c6bead
Activate tests for keys with sub-keys
2019-09-18 14:37:44 -07:00
Danny Moesch
73c2607f3c
Add test for issue #303
2019-09-16 15:51:10 -07:00
Danny Moesch
730542d5bb
Separate encryption/decryption logic for different frameworks used
2019-09-15 00:32:18 -07:00
Danny Moesch
e2201ffa52
Add general tests for basic encryption and decryption with Crypto framework
2019-09-15 00:32:18 -07:00