Description
Version used: 6.5.1
I have used the examples from https://www.nuget.org/packages/PgpCore/#readme-body-tab to be see if I can use the functionality that is provided.
I have then created a case where I generate a new key using GenerateKey (https://www.nuget.org/packages/PgpCore/#generate-key) and then encrypt and sign a file using the first example (https://www.nuget.org/packages/PgpCore/#encrypt-and-sign) and finally I try to decrypt and verify the encrypted and signed file using the first example (https://www.nuget.org/packages/PgpCore/#decrypt-and-verify).
If I use gpg to decrypt and verify the encrypted and signed payload then everything works and gpg reports the right signature etc. But when I use the example code then I get this exception:
I have tried to use both keys created using gpg and using PgpCore with the same result.
What is the reason for this error being thrown?