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
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