Commit graph

397 commits

Author SHA1 Message Date
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
Daniel Huigens
b4736c8cd3
Merge pull request #214 from ProtonMail/update-go-crypto
Update go crypto, and improve signature verification
2023-03-10 11:37:07 +01:00
Daniel Huigens
ff75643943 Update CHANGELOG 2023-03-01 17:40:52 +01:00
Daniel Huigens
9d05b3e9b6 Use returned signature in GetVerifiedSignatureTimestamp
Instead of parsing the signature packets manually, use the signature
packet returned by VerifyDetachedSignatureAndHash to get the
signature creation time.
2023-02-20 12:53:44 +01:00
Daniel Huigens
379e4814e0 More strictly verify detached signatures
Reject detached signatures from revoked and expired keys.
2023-02-20 12:53:44 +01:00
Daniel Huigens
ba8a846837 Update go-crypto 2023-02-20 12:53:44 +01:00
marinthiercelin
b4e40eb970
Merge pull request #212 from ProtonMail/release-2.5.2
Prepare release of version 2.5.2
2023-01-26 12:43:22 +01:00
M. Thiercelin
6093df57b9
Prepare release of version 2.5.2 2023-01-26 12:24:27 +01:00
Aron Wussler
a896ae4ed4
Merge pull request #211 from ProtonMail/upgrade-go-crypto
Upgrade go crypto and adapt SEIPD
2023-01-26 12:04:56 +01:00
Aron Wussler
47534e9288 Upgrade go crypto and adapt SEIPD 2023-01-25 14:42:41 +01:00
marinthiercelin
2adafdb885
Merge pull request #209 from ProtonMail/release-2.5.1
Release gopengp v2.5.1
2023-01-25 10:30:15 +01:00
M. Thiercelin
b3e7082211
Prepare v2.5.1 2023-01-24 18:17:15 +01:00
marinthiercelin
c9bf4fb36a
Merge pull request #208 from ProtonMail/feat/encrypt_compression_streaming
Add streaming APIs to encrypt with compression
2023-01-24 18:13:01 +01:00
M. Thiercelin
eccc1df619
Add streaming APIs to encrypt with compression 2023-01-24 17:44:07 +01:00
Aron Wussler
ffcaa7f87b
Merge pull request #207 from ProtonMail/clean-dependencies
Clean dependencies
2023-01-09 11:25:44 +01:00
Aron Wussler
0ce389aab2 Clean dependencies 2023-01-09 09:07:53 +01:00
marinthiercelin
e1f4ae067c
Merge pull request #206 from ProtonMail/release-2.5.0
Prepare release of v2.5.0
2022-12-16 10:33:54 +01:00
M. Thiercelin
b0dcd6e808
Prepare release of v2.5.0 2022-12-16 10:23:44 +01:00
marinthiercelin
101172fc6e
Merge pull request #205 from ProtonMail/update-go-crypto
Update go-crypto
2022-12-16 10:16:59 +01:00