Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - Digital Signatures

Output

When you build and run the signature example, you should get output similar to the following. Some of your KeyInfo values will be different if you used a different key for signing the document.

Input signature template:

<?xml version="1.0"?>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:SignedInfo>
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n
-20010315"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>

    <ds:Reference URI="#objData">
      <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
      <ds:DigestValue/>
    </ds:Reference>
  </ds:SignedInfo>
  <ds:SignatureValue/>
  <ds:Object Id="objData">Hello, World!</ds:Object>
</ds:Signature>

The data referenced in the signature template was signed successfully.
Resultant signature:

<?xml version="1.0"?>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:SignedInfo>
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n
-20010315"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>

    <ds:Reference URI="#objData">
      <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
      <ds:DigestValue>+cFiIGIjF2PrUbAra+vbkOD4ICs=</ds:DigestValue>
    </ds:Reference>
  </ds:SignedInfo>
  <ds:SignatureValue>
    AwnP8vztsLoCfXPCp0UfAavtFCxKok+3al6dU8lUCPB5dbzZWupT+0tb8YPmkBoX8oBEOPJQ
    R5LgyJM0BFnakl2pq+8PhYxsRz5/UVUK8n6X++4QAAXfStkSS+gkSCOuslad6swu9SINIVvv
    gQmohaVaWAmKX/zOsfyvfXormrI=
  </ds:SignatureValue>
  <ds:Object Id="objData">Hello, World!</ds:Object>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
      <KeyValue>
        <RSAKeyValue>
          <Modulus>
            pjLYA6wZ0Sw83nZiCnYmWRhuerStQG0kvL2lqzpKcwZFvHCxs21qucXWX9pW0UtNl1yG
HiLL
            aHBY0KAhu9Fd6Fo1S+I+w/pQ6ZNfMmx7rh8yNgER9rcJXzPQeHlxHDz3vqomPpuFiWzD
Hm/Q
            iko8WkPajD9SNh79QTb/usLhjjE=
          </Modulus>
          <Exponent>AQAB</Exponent>
        </RSAKeyValue>
      </KeyValue>
    </KeyInfo>
</ds:Signature>