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

Output

When you build and run the KeyFromHMACSecret code, you should get output similar to the following.

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

<?xml version="1.0"?>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
  <SignedInfo>
    <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20
010315"/>
    <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1">
      <HMACOutputLength>40</HMACOutputLength>
    </SignatureMethod>
    <Reference URI="#object">
      <DigestMethod 
          Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
      <DigestValue>gr9ao1nOSq6zgOFaaiCjYGHxB50=</DigestValue>
    </Reference>
  </SignedInfo>
  <SignatureValue>w5op7/I=</SignatureValue>
  <Object Id="object">Hello, World!</Object>
</Signature>

The data referenced in the signature object was verified successfully.