Commit graph

91 commits

Author SHA1 Message Date
Daniel Huigens
d3a0b14490 Update changelog 2022-12-15 16:16:49 +01:00
Daniel Huigens
d357a230f0 Update changelog 2022-11-18 15:33:44 +01:00
Daniel Huigens
ba2125a681 Update changelog 2022-11-17 18:41:16 +01:00
M. Thiercelin
4971d78a53
Sanitize strings by default on all platforms.
Instead of sanitizing strings only on iOS, we do it on all platforms.
2022-11-03 12:32:20 +01:00
M. Thiercelin
04803505f8
Update changelog 2022-11-03 12:31:40 +01:00
M. Thiercelin
8f70487a58
Update go-mime to latest 2022-10-31 15:07:19 +01:00
Aron Wussler
6a7e485872 Release version 2.4.10 2022-08-23 13:12:55 +02:00
Martin
1791c07702
[codespell] Fix typos (#190) 2022-07-11 10:27:59 +02:00
Aron Wussler
7fa828017a Release version 2.4.8 2022-06-22 16:30:38 +02:00
M. Thiercelin
139e421502
update changelog 2022-06-14 17:45:06 +02:00
Aron Wussler
3780a9e5d4 Release version 2.4.7 2022-04-27 15:10:34 +02:00
Aron Wussler
f5803d148d Do not return error on empty name or email key generation 2022-04-26 10:21:28 +02:00
marinthiercelin
07e32e3c5b Update CHANGELOG.md 2022-04-25 16:00:28 +02:00
Aron Wussler
c9d7390d1f Release version 2.4.6 2022-03-25 14:23:50 +01:00
M. Thiercelin
c9a9f0b799
Update changelog 2022-03-17 10:44:50 +01:00
M. Thiercelin
0e4303d086
Update github.com/ProtonMail/go-mime 2022-03-02 16:40:19 +01:00
Aron Wussler
2a30ff62f4 Release version 2.4.5 2022-03-01 11:42:17 +01:00
Aron Wussler
34904b7f9f Release version 2.4.4 2022-02-28 12:38:18 +01:00
Aron Wussler
cf1cd54aa2 Release version 2.4.3 2022-02-24 21:59:19 +01:00
Aron Wussler
0854a2ba03 Update changelog 2022-02-15 11:49:33 +01:00
Aron Wussler
5c9d4688cb Update go-crypto and prevent AEAD messages 2022-01-13 14:46:53 +01:00
Aron Wussler
f53887d678 Release version 2.4.1 2022-01-10 15:06:03 +01:00
wussler
a514e451c4
Fix typo in CHANGELOG.md 2022-01-10 14:42:46 +01:00
marin thiercelin
1a2e569373
Fix parsing issue of AEAD encrypted messages.
In pgpMessage.SeparateKeyAndData(), the parsing would
ignore AEAD encrypted data packets. Which would result
in a split message with a nil data packet.
We add support for AEAD encrypted data packets.
This also affects `NewPGPSplitMessageFromArmored` and `NewPGPSplitMessage`.
2022-01-10 14:24:08 +01:00
Aron Wussler
dcc575e039 Release version 2.4.0 2021-12-21 18:42:12 +01:00
wussler
d08315adf7
Update CHANGELOG.md 2021-12-21 10:02:39 +01:00
marin thiercelin
6f86adc432
Add keyRing.GetVerifiedSignatureTimestamp()
Add a function to verify a detached signature and access
its creation time.
2021-12-21 10:02:23 +01:00
Aron Wussler
e603011f68 Release version 2.3.1 2021-12-15 11:41:27 +01:00
marin thiercelin
d76ebb94e1
Update the changelog 2021-12-15 11:10:42 +01:00
Aron Wussler
130472d5a5 Release 2.3.0: Update go-crypto, add Key.IsRevoked and fix key.IsExpired 2021-11-15 15:46:42 +01:00
Aron Wussler
a0bc8b1af8 Release 2.2.5 2021-11-11 16:38:43 +01:00
Carlos Quintana
9f25490f61
Lock global gopenpgp fields 2021-10-18 11:40:58 +02:00
Aron Wussler
190a41c146 Release v2.2.4 2021-09-29 16:48:30 +02:00
marin thiercelin
5558d4a177
Fix: use verifyTime in the config time instead of Now()
When decrypting message, we have to use verifyTime in the config
otherwise signatures not valid at verifyTime but valid at Now()
will be seen as valid.
2021-09-23 17:14:19 +02:00
Aron Wussler
64c051f0d9 Generate keys with compression & release 2.2.3 2021-09-21 11:20:36 +02:00
Aron Wussler
af7164439a Release version 2.2.2 2021-08-04 12:15:11 +02:00
Aron Wussler
e0531b779c Add NewKeyFromEntity 2021-08-04 12:04:20 +02:00
Aron Wussler
26dd18cf42 Add documentation for messages 2021-08-03 20:55:03 +02:00
Aron Wussler
eb311a801f Add changelog 2021-07-30 14:54:38 +02:00
Aron Wussler
b50a051c7e Deprecate Key#Check() 2021-07-30 11:20:38 +02:00
Aron Wussler
44016a15c4 Release version 2.2.1 2021-07-27 12:55:10 +02:00
marin thiercelin
77df8cba3d
Fix signature status when verifying unsigned message
Return `SIGNATURE_NOT_SIGNED` instead of `SIGNATURE_NO_VERIFIER` when
verifying a messages with no embedded signatures.
2021-07-16 12:17:18 +02:00
marin thiercelin
f4ccc63c40
Add a helper to verify stream signatures explicitly
Adds the helper `VerifySignatureExplit()` to get an explicit `SignatureVerificationError`
when verifying a `PlainMessageReader`. This is needed for mobile apps, that
can't cast an error to a signature error.
2021-07-16 12:16:33 +02:00
wussler
cba6683c62
Release v2.2.0 (#135) 2021-06-30 17:07:52 +02:00
marinthiercelin
c46ed8ed9e
Add a streaming api to KeyRing and SessionKey (#131)
* barebone streaming functionality

* encryption needs to return a writecloser

* added eof check

* workaround for reader problem with copies

* separate mobile wrappers from main api

* add a clone in the read result to avoid memory corruption

* refactor to reuse code, and fix verification

* have to give the verify key at the start of the decryption

* enfore readAll before signature verification

* streaming api for SessionKey

* add split message stream apis

* name interface params

* fix streaming api so it's supported by go-mobile

* hide internal writeCloser

* fix nil access

* added detached sigs methods

* started unit testing

* unit testing and fixed a bug where key and data packets where inverted

* remove unecessary error wrapping

* figured out closing order and error handling

* add GC calls to mobile writer and reader

* remove debugging values and arrays

* writer with builtin sha256

* unit testing the mobile helpers

* comments and linting

* Typo in error

Co-authored-by: wussler <aron@wussler.it>

* Add GetKeyPacket doc

Co-authored-by: wussler <aron@wussler.it>

* Add rfc reference in comments

Co-authored-by: wussler <aron@wussler.it>

* small improvements

* add compatibility tests with normal methods

* remove unecessary copies in the tests

* update go-crypto to the merged changes commit

* update comments of core internal functions

* remove unused nolint comment

* group message metadata in a struct

* fix comments

* change default values for metadata

* change the mobile reader wrapper to fit the behavior of java

* remove gc calls in the wrappers to avoid performance penalties

* bring back the former Go2MobileReader to be used for ios

* Update crypto/keyring_streaming.go

Co-authored-by: wussler <aron@wussler.it>

* return an error when verifying an embedded sig with no keyring

* Update crypto/sessionkey_streaming.go

Co-authored-by: wussler <aron@wussler.it>

* linter error

* update changelog

* update changelog

Co-authored-by: wussler <aron@wussler.it>
2021-06-30 16:49:30 +02:00
wussler
039f757e93
Remove monotonic clock (#133) 2021-06-16 14:06:07 +02:00
wussler
0e109ca7ce
Release version 2.1.9 (#132) 2021-05-12 10:08:19 +02:00
Daniel Huigens
9126511a96
Update go-crypto (#129)
* Update go-crypto

* Edit changelog

Co-authored-by: Aron Wussler <aron@wussler.it>
2021-04-28 18:33:14 +02:00
Aron Wussler
38a773b9aa Release version 2.1.8 2021-04-27 17:40:13 +02:00
wussler
c19faed5da
Add methods for embedded signatures using session keys (#128)
* Add methods to sign when using session keys

* Add mobile helpers for explicit decryption

* Add functions to CHANGELOG

* Fix linter
2021-04-27 17:38:25 +02:00