title: verifying digital signature in c#
body: <p>I have a signed "DLL" file that I want to validate his digital signature in run time ("Before I'm loading it")</p>
  
  <p>I have the public key of the certificate embedded in my code,
  Is there a way to get the "message digest" from the digital signature? or another way to validate the file hasn't manipulated?</p>
  
  <p>I don't want to check the "CA" and other attributes of the certificate because a malicious user can create a certificate with the same attributes</p>
  
  <p>*Note I don't want to user SignTool as well :)</p>