Commit graph

415 commits

Author SHA1 Message Date
Lysann Tranvouez
4e27e861c7 add PassGetHexSubkeyIDsJSON helper for passforios 2026-03-10 21:39:35 +01:00
Mingshen Sun
41389bb5b0 Fix cache issue 2024-12-14 14:46:50 -08:00
Mingshen Sun
81fdf286c5 Update gocrypto 2024-12-14 12:07:16 -08:00
Mingshen Sun
4340541fe0 Patch for passforios
- Add passforios helper function
- Update go-crypto branch
2024-12-14 12:00:57 -08:00
Lukas Burkhalter
4c05fbeec7
chore: Prepare release 2.8.1 (#317) 2024-11-26 11:55:49 +01:00
Lukas Burkhalter
113e32660b
chore: Prepare release v2.8.0 (#309) 2024-11-07 17:00:51 +01:00
Lukas Burkhalter
a3608a3d8d
Add SHA3 to allowed signature hashes (#304) 2024-10-29 11:39:45 +01:00
Lukas Burkhalter
5ec8559b90
chore: Prepare pre-release v2.8.0-beta.0 (#302) 2024-10-01 16:55:59 +02:00
Lukas Burkhalter
1136c7d026
feat: Add SHA256 fingerprint getter (#299)
* feat: Add SHA256 fingerprint getter to key
2024-09-26 12:03:48 +02:00
Lukas Burkhalter
dec9c18fc6
ci: Update github workflow actions (#298)
- update actions/download-artifact to v4
- update actions/checkout to v4
- update actions/upload-artifact to v4
2024-09-20 10:33:44 +02:00
Lukas Burkhalter
4e8fad59d6
CI: Update v2 branch CI to be on par with v3 (#286)
* ci: Update CI to be on par with v3

* ci: Update gosop branch for GopenPGP-v2
2024-08-27 13:15:12 +02:00
Lukas Burkhalter
2a07a34fb8
Prepare pre-release v2.8.0-alpha.1 (#276) 2024-04-09 15:00:04 +02:00
Aron Wussler
0d1ce13767
Add parsing and serializing interfaces for keyrings (#275)
* Add parsing and serializing interfaces for keyrings

* Make error check more compact
2024-04-08 11:38:52 +02:00
Lukas Burkhalter
453e81905b
Add support for the crypto refresh in v2 (#265)
This commit adds support for the OpenPGP crypto-refresh.
- Updates go-crypto dependency to v1.1.0-alpha.1
- Adapts the session key logic to handle PKESK/SKESK v6 packets without an algorithm attached
- Updates the min go version to 1.17 as requires by  go-crypto v1.1.0-alpha.1
- Update the cricl dependency to 1.3.7 matching go-crypto
Not supported:
- crypto-refresh intended recipients
- v6 key generation
2024-02-28 13:51:52 +01:00
Lukas Burkhalter
c6a3058e2e
Prepare release 2.7.5 with packet API (#269)
Adds the following API functions:
- API to get signature key IDs for mobile:
	func (msg *PGPMessage) GetHexSignatureKeyIDsJson() []byte

- API to get encryption key IDs for mobile:
	func (msg *PGPMessage) GetHexEncryptionKeyIDsJson() []byte

- API to get the number of key packets in a PGP message:
	func (msg *PGPSplitMessage) GetNumberOfKeyPackets() (int, error)

- API in package `helper` to encrypt a PGP message to an additional key:
	func EncryptPGPMessageToAdditionalKey(messageToModify *crypto.PGPSplitMessage, keyRing *crypto.KeyRing, additionalKey *crypto.KeyRing) error
2024-02-07 08:09:26 +01:00
Lukas Burkhalter
02a4599829
Prepare release 2.7.4 (#256) 2023-10-27 14:28:29 +02:00
Lukas Burkhalter
da4cecfea5
Update session key decryption to not allow SED packets (#255) 2023-10-27 12:10:17 +02:00
Lukas Burkhalter
0eace5479a
Release version 2.7.3 (#252) 2023-08-28 15:46:06 +02:00
Lukas Burkhalter
987923f9d8
Add quick check for session key decryption (#249)
This commit adds the function QuickCheckDecrypt to the helper package.
The function allows to check with high probability if a session key can decrypt a data packet given its 24-byte prefix.
It only works for SEIPDv1 data packets that uses AES as a cipher.
2023-08-28 10:31:40 +02:00
Aron Wussler
b97d994962
Release version 2.7.2 (#247) 2023-07-17 14:42:41 +02:00
Lukas Burkhalter
ca02a218b8
Ensure DecryptSessionKey returns an error for a missing key packet (#245) 2023-06-20 14:47:57 +02:00
Daniel Huigens
cf8b8d4a80 Update go-crypto 2023-06-19 18:20:45 +02:00
marinthiercelin
d37f4eba9e
Merge pull request #237 from ProtonMail/feat/signature-context-mobile-helpers
Add mobile helpers to verify signature contexts and prepare v2.7.1
2023-04-21 16:46:55 +02:00
M. Thiercelin
2cf7a8caee
Add mobile helpers to verify signature contexts. 2023-04-21 10:57:23 +02:00
Aron Wussler
753a3fedff
Merge pull request #234 from ProtonMail/release-2.7.0
Prepare release of gopenpgp v2.7.0
2023-04-20 15:55:40 +02:00
M. Thiercelin
300603d28e
Prepare release of gopenpgp v2.7.0 2023-04-14 10:18:03 +02:00
marinthiercelin
5aebf6a366
Merge pull request #233 from DmitriyMV/fix-verify-retry
Reset origText in verifySignature before the retry
2023-04-14 10:02:36 +02:00
Dmitriy Matrenichev
158eba9411
Reset origText in verifySignature before the retry
This is partial fix for #231

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
2023-04-13 10:45:56 -04:00
marinthiercelin
27783985cd
Merge pull request #230 from ProtonMail/feat/embedded-signature-context
Add API for signature context on embedded signatures
2023-04-11 09:20:29 +02:00
M. Thiercelin
97323a4c2b
Add signature context for embedded signatures 2023-04-06 12:28:12 +02:00
marinthiercelin
49211b24ff
Merge pull request #226 from ProtonMail/feat/signature-context-streaming
Add API to sign stream with context
2023-04-06 12:21:13 +02:00
M. Thiercelin
c55b9d203c
Add API to sign stream with context 2023-04-06 11:45:50 +02:00
marinthiercelin
45070ef1ae
Merge pull request #227 from ProtonMail/fix/signature-context-error-status
Add SIGNATURE_BAD_CONTEXT status to verification error.
2023-04-06 11:39:03 +02:00
M. Thiercelin
257c381604
Add SIGNATURE_BAD_CONTEXT status to verification error.
Add a special status for verification errors that are
caused by the signature context.
2023-04-06 10:34:04 +02:00
marinthiercelin
ad18d59548
Merge pull request #224 from ProtonMail/fix/join-signature-errors
Wrap the cause of signature verification errors.
2023-04-06 10:32:10 +02:00
M. Thiercelin
e9fca4d62f
Wrap the cause of signature verification errors.
Instead of swallowing the cause of verification errors,
we use error wrapping to communicate the cause to the caller.
2023-04-05 13:50:55 +02:00
marinthiercelin
58dbea76e7
Merge pull request #229 from ProtonMail/marinthiercelin-patch-1
Use released version of interop test suite docker.
2023-04-05 13:40:23 +02:00
marinthiercelin
c03cd1624b
Use released version of interop test suite docker.
Instead of pointing to a branch of the test suite docker image, we can use  the image corresponding to a specific release.
2023-04-03 11:31:01 +02:00
marinthiercelin
95b06670e4
Merge pull request #215 from ProtonMail/feature/interop-test-suite
Add interoperability test suite to CI
2023-03-22 14:33:27 +01:00
M. Thiercelin
b7193f64e4 Add interoperability test suite to CI 2023-03-22 14:10:57 +01:00
marinthiercelin
503727334c
Merge pull request #228 from ProtonMail/release-2.6.1
Update go-crypto, go-mime and prepare v2.6.1 release
2023-03-22 14:10:29 +01:00
M. Thiercelin
524e1b89a9
Update go-crypto, go-mime and prepare v2.6.1 release 2023-03-22 13:23:35 +01:00
marinthiercelin
62f2ca828e
Merge pull request #223 from ProtonMail/release-2.5.3
Prepare release of v2.6.0
2023-03-15 10:45:30 +01:00
M. Thiercelin
8cff537619
Prepare release of v2.6.0 2023-03-15 09:43:16 +01:00
marinthiercelin
766f9d568a
Merge pull request #222 from ProtonMail/fix/upgrade-dependencies
Upgrade dependencies
2023-03-15 09:08:30 +01:00
M. Thiercelin
d3fa075f06
Upgrade dependencies
Upgrade golang.org/x/crypto to v0.7.0
2023-03-13 13:23:47 +01:00
marinthiercelin
5718d2a524
Merge pull request #217 from ProtonMail/feat/signature-notation-data
Add API to add context to detached signatures
2023-03-13 12:25:30 +01:00
M. Thiercelin
1ec90e34ea
Add API to add contexts to detached signatures.
Using the notation data packets of signatures, we add a way to
set a context to detached signatures.
We also add a way to enforce that signatures have the right context
during verification.
2023-03-13 11:48:31 +01:00
marinthiercelin
3152e50f92
Merge pull request #218 from ProtonMail/fix/gomobile-build-ci
Fix the build pipeline for iOS and Android
2023-03-13 11:37:53 +01:00
M. Thiercelin
10f6e3fa07
Fix the build pipeline for iOS and Android
Use the latest version of gomobile instead of the fork of protonmail.
Use go get gomobile in the build script instead of adding it to the
go.mod by default.
Fix the script to work with latest gomobile
2023-03-13 11:13:45 +01:00