Resource: signature_template,xml

MSXML 5.0 SDK

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

Resource: signature_template.xml

Use this resource file for the signature example.

This simple signature template references embedded text data held in the <ds:Object Id="#objData"> element. It also specifies how the referenced data is to be signed. Notice that the required <ds:SignatureValue> and <ds:DigestValue> elements are empty.

Signature Template (signature_template.xml)

<?xml version="1.0" encoding="UTF-8"?>
<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/>
    </ds:Reference>
  </ds:SignedInfo>
  <ds:SignatureValue />
  <ds:Object Id="objData">Hello, World!</ds:Object>
</ds:Signature>