jdk/test/com/sun/org/apache/xml/internal/security/signature-enveloping-hmac-sha1-trunclen-0-attack.xml
author mullan
Tue, 23 Jun 2009 13:54:36 -0400
changeset 3462 4477fb399895
permissions -rw-r--r--
6824440: XML Signature HMAC issue Reviewed-by: asaha
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3462
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     2
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     3
  <SignedInfo>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     4
    <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     5
    <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1">
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     6
      <HMACOutputLength>0</HMACOutputLength>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     7
    </SignatureMethod>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     8
    <Reference URI="#object">
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
     9
      <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
    10
      <DigestValue>nz4GS0NbH2SrWlD/4fX313CoTzc=</DigestValue>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
    11
    </Reference>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
    12
  </SignedInfo>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
    13
  <SignatureValue>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
    14
  </SignatureValue>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
    15
  <Object Id="object">some other text</Object>
4477fb399895 6824440: XML Signature HMAC issue
mullan
parents:
diff changeset
    16
</Signature>