locked
C# XML Digital Signature Vs VC++ Digital Signature RRS feed

  • Question

  • Hi,
     
    If we signed a XML file using C# XML (System.Security.Cryptography.Xml); Will the digital signature same when we create a digital signature using VC++ CryptoAPI for XML file.

    How it will be different even if i used a same XML file data and same private key & public key. What things make the difference?

     
    Thanks
    Prashant

    • Moved by Pak-Ming Cheung Wednesday, November 30, 2011 7:41 AM Move to "Security Expert" for better support (From:XML, System.Xml, MSXML and XmlLite)
    Thursday, July 14, 2011 10:48 AM

All replies

  • There are some existing discussion about this topic available on internet. For example, you may reference: http://stackoverflow.com/questions/6253363/translating-win32-crypto-api-calls-to-c-sharp-with-system-security-cryptography

    Anyway, I will try to move this post to those Crypto experts so that you can be better supported.

    Thanks,
    Ming.
    XML Team, Microsoft.

     


    Pak-Ming Cheung - MSFT
    Wednesday, November 30, 2011 7:41 AM
  • An XML signature created from System.Security.Cryptography.Xml is an XML transform whose result is XML text.

    Microsoft's authenticode code signature can be embedded in the file itself, if the file is in Windows PE format (like exe or dll). You can choose to embed the signature in an additional XML manifest file if you wanted to.

     



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Wednesday, November 30, 2011 5:15 PM