Commit graph

385 commits

Author SHA1 Message Date
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
Daniel Huigens
d3a0b14490 Update changelog 2022-12-15 16:16:49 +01:00
Daniel Huigens
bb3363278f Update go-crypto 2022-12-15 16:15:22 +01:00
Daniel Huigens
964d37ee65
Merge pull request #200 from ProtonMail/dont-trim-trailing-spaces
Don't trim trailing spaces from non-clearsigned text messages
2022-11-18 15:46:13 +01:00
Daniel Huigens
d357a230f0 Update changelog 2022-11-18 15:33:44 +01:00
M. Thiercelin
2b9d76708a Size checks not needed in linebreaks unit tests 2022-11-18 15:33:31 +01:00
M. Thiercelin
76b77258e3 Add tests for encrypring text with non canonical line ends 2022-11-18 15:33:31 +01:00
Daniel Huigens
b189309152 Don't trim trailing spaces from non-clearsigned text messages 2022-11-18 15:33:31 +01:00
Daniel Huigens
9b9463553c
Merge pull request #199 from ProtonMail/detached-sign-type-text
Detached sign text messages with signature type text
2022-11-18 15:32:50 +01:00
Daniel Huigens
ba2125a681 Update changelog 2022-11-17 18:41:16 +01:00
M. Thiercelin
bae54f7e83 Check signature types in unit tests 2022-11-17 17:28:55 +00:00
Daniel Huigens
b90e70daa4 Detached sign text messages with signature type text 2022-11-16 14:21:39 +01:00
marinthiercelin
7cedddc40d
Merge pull request #197 from ProtonMail/fix/non-utf8-strings
Sanitize non utf8 strings before returning them to iOS apps
2022-11-03 13:24:20 +01:00