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

Output

When you build and run the KeyFromHMACSecretBinary.cpp code, you should get the following output.

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>h2y7yFQ=</SignatureValue>
  <Object Id="object">Hello, World!</Object>
</Signature>

The data referenced in the signature object was verified successfully.