Skip to content

Releases: ProtonMail/gopenpgp

v2.2.1: Merge pull request #140 from ProtonMail/release-2.2.1

27 Jul 12:35
dc08a38
Compare
Choose a tag to compare

Changed

  • Changed the returned SignatureVerificationError.Status when trying to verify a message with no embedded signature. It used to return constants.SIGNATURE_NO_VERIFIER and now returns constants.SIGNATURE_NOT_SIGNED.
    This change impacts :
    • func (sk *SessionKey) DecryptAndVerify(...)
    • func (msg *PlainMessageReader) VerifySignature(...)
    • func (keyRing *KeyRing) Decrypt(...)
  • Improved error messages for failures in password protected message decryption

Added

  • Helper to access the SignatureVerificationError explicitly when decrypting streams in mobile apps:
     func VerifySignatureExplicit(
     	reader *crypto.PlainMessageReader,
     ) (signatureVerificationError *crypto.SignatureVerificationError, err error)

Release version 2.2.0

30 Jun 15:08
cba6683
Compare
Choose a tag to compare

Add streaming API

Release version 2.1.10

16 Jun 12:07
039f757
Compare
Choose a tag to compare

Removed time interpolation via monotonic clock that can cause signatures in the future

Release version 2.1.9

12 May 08:09
0e109ca
Compare
Choose a tag to compare

Upgrade the underlying go-crypto forking off from x/crypto, remove duplicate modules.

Release version 2.1.8

27 Apr 15:41
Compare
Choose a tag to compare

Added:

  • Key and KeyRing methods to check if a key/keyring can Encrypt or Verify
(key *Key) CanVerify() bool
(key *Key) CanEncrypt() bool
(keyRing *KeyRing) CanVerify() bool
(keyRing *KeyRing) CanEncrypt() bool
  • SessionKey methods to encrypt/decrypt and simultaneously sign/verify with an asymmetric key (embedded signature)
(sk *SessionKey) EncryptAndSign(message *PlainMessage, signKeyRing *KeyRing) ([]byte, error)
(sk *SessionKey) DecryptAndVerify(dataPacket []byte, verifyKeyRing *KeyRing, verifyTime int64) (*PlainMessage, error)
  • The mobile helper DecryptSessionKeyExplicitVerify to allow using session key decryption + verification operations via gomobile

Release version 2.1.7

30 Mar 10:08
80b9a7a
Compare
Choose a tag to compare

Add ManualAttachmentProcessor for manual memory management in attachments and add support mobile building with go 1.16

Release version 2.1.6

17 Mar 15:55
7b16cf9
Compare
Choose a tag to compare

Update underlying crypto lib, add support for multiple embedded signatures, improve session key handling, and fix headers for public keys

Release version 2.1.5

19 Feb 14:33
72062c4
Compare
Choose a tag to compare

Removed an unnecessary cloning in the attachment processor, to perform better in low memory settings

Release version 2.1.4

08 Jan 17:40
681ceb0
Compare
Choose a tag to compare

Add functions to directly handle encrypted detached signatures

Release version 2.1.3

09 Dec 14:58
a42d48a
Compare
Choose a tag to compare

This version changes the upstream library to use ProtonMail/go-crypto replacing x/crypto and improves the memory management for attachments