title: Reading a digital signature from a file, c#, then verifying it
body: <p>I've been looking around, and see that visual studio c++ has some "native" tools to remove a digital signatures.</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms680214%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/ms680214(v=vs.85).aspx</a></p>
  
  <p>Of course I am doing this with documents, specifically for pdf files so I don't know how that function would work since it seems intended for images.</p>
  
  <p>If it can remove it, could it also read it and return the signature? Right now I am using c# and wanted to have the program actually capture the digital signature so it can be verified, but one step at a time. Everything I read about System.Security.Cryptography.X509Certificates seems to indicate that it can only do any of its functions once the files are assigned X509Certificates related classes.</p>
  
  <p>I've also never imported c++ code into c#, but I know it is possible. 
  <a href="http://social.msdn.microsoft.com/Forums/en-US/f18d1d1c-0d14-4ff2-8244-337f58818ef9/how-to-use-c-code-in-c?forum=vssmartdevicesvbcs" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/f18d1d1c-0d14-4ff2-8244-337f58818ef9/how-to-use-c-code-in-c?forum=vssmartdevicesvbcs</a></p>