Git init
[external/xmlsec1.git] / tests / aleksey-xmldsig-01 / xpointer-hmac.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE test [
3 <!ATTLIST ToBeSigned Id ID #IMPLIED>
4 ]>
5 <Document xmlns:xenc="http://www.example.org/xenc" xmlns:dsig="http://www.example.org/dsig">
6   <ToBeSigned Id="foo">
7     <Secrets>Test</Secrets>
8   </ToBeSigned>
9   <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
10     <SignedInfo>
11       <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
12       <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
13       <Reference URI="">
14         <Transforms>
15           <Transform Algorithm="http://www.w3.org/2001/04/xmldsig-more/xptr">
16             <XPointer xmlns="http://www.w3.org/2001/04/xmldsig-more/xptr">
17                     xpointer(id(&quot;foo&quot;))
18             </XPointer>
19           </Transform>
20         </Transforms>
21         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
22         <DigestValue>faszbFrqwUNeZH5QrXPPobn+zso=</DigestValue>
23       </Reference>
24     </SignedInfo>
25     <SignatureValue>BTB6iZWZjOIG0JjGjpYbihO3Igg=</SignatureValue>
26     <Object Id="object">some text</Object>
27   </Signature>
28 </Document>