0

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

Community
  • 1
  • 1
ritcoder
  • 3,274
  • 10
  • 42
  • 62
  • Found an example [here](http://www.java2s.com/Open-Source/Java-Document/Security/Bouncy-Castle/org/bouncycastle/openpgp/examples/SignedFileProcessor.java.htm). It is in java but I dont think it will be so different. I'm checking it out. If there are any other examples, I'll be happy to look at them. – ritcoder Aug 31 '11 at 16:38

1 Answers1

1

The Bouncy Castle C# project contains an equivalent example.

Peter Dettman
  • 3,867
  • 20
  • 34