Forgive me in advance if this is the wrong avenue to request information
about the OpenPGP library in C#. I'll be sure to take correction.
I have successfully encrypted PDF documents with BC's OpenPGP using the
examples in BouncyCastle source code. I pass a PDF document as a byte[]
and return the encrypted data. This is saved to disk (only for testing)
and decrypted using GnuPG windows solution. I'm doing this as the
counter party uses GnuPG.
When I use BC's OpenPGP to sign the encrypted message and save to disk,
I can use GnuPG to validate the signature, but the message no longer
decrypts.
I'm looking for ways to troubleshoot why signing would work, but corrupt
the encrypted message or if there's any known incompatibilities between
BC and GnuPG.
I can share my source code and answer any questions or work up a sandbox
project if that helps anyone else.
Thanks greatly,
Chris