ritcoder
ritcoder

Reputation: 3304

Verify a PgP Encrypted and Signed file with BouncyCastle

I'm signing a document using PgP with the help of the bouncycastle library in c#. How do I verify a signed document to ensure that it is signed by the correct person or to even identify who signed it.

I'm using the code from the question with some little modifications to sign the file. The keys are self generated.

Edit: I'm able to verify a signed file using information from this link. In an encrypted and signed file, I'm however unable to get the PgpSignatureList to use for verification. I'm however able to get the LiteralData and decryption works.

regards

Upvotes: 0

Views: 2382

Answers (1)

Peter Dettman
Peter Dettman

Reputation: 4022

The Bouncy Castle C# project contains an equivalent example.

Upvotes: 1

Related Questions