Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workarounds for decrypting Research in Motion messages #383

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

drxzcl
Copy link

@drxzcl drxzcl commented Dec 9, 2021

While writing a script to decrypt a number of older encrypted emails encrypted using Research in Motion 1.0 PGP software, I ran into a number of issues.

The main one is that I ran into a bunch of unsupported packets, including Opaque, SKEData and Trust. I added code to ignore them and ended up with the expected plaintext. I'm not sure what a proper solution would look like.

To other issue I ran into is that some the key files that I have seem to start with a non-primary key. The key parsing code tries to append it to the last key doing keys[next(reversed(keys))] |= pgpobj, but since keys is empty this fails with an uncaught StopIteration. I worked around it by just treating it as a primary key if keys is empty. I'm not sure what one is supposed to do in this case though.

I'm not suggesting this PR is merged as-is, I'm putting this forward to document and report these issues, and offering a workaround that worked for my particular use case.

@J-M0
Copy link
Collaborator

J-M0 commented Dec 20, 2021

Thanks for the PR/report @drxzcl! Would it be possible for you to share some example messages and keys that triggered your errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants