Skip to content

Decryption error reasons that should be handled #704

Description

@martgil

Description:
the ios version currently throws a generic alert box when the message can't be decrypted that says:
"Could not open message".

There are many reasons that cause the decryption error of an encrypted message needs to be handled.
Here are some of them:

  1. Current key cannot open the message - often happens when the user is using the wrong private key or the sender uses an old public key to encrypt the message.

wrong key

2. Missing MDC integrity checks

no_mdc_error

3. Modified MDC hash.

modified_mdc

4. Message with the wrong checksum.

wrong checksum

5. Unexpected end-of-steam (partially/incomplete PGP message).

unexpected end-of-steam

6. Check if for a bogus PGP message that starts with `-----BEGIN PGP MESSAGE -----`.

Reference:
can be found under the "decrypt error" label
https://gpgtools.tenderapp.com/kb/faq/modification-detection-code-mdc-errors

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions