Skip to content

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

Compare
Choose a tag to compare
@wussler wussler released this 27 Jul 12:35
dc08a38

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)