summaryrefslogtreecommitdiff
path: root/tests/merlin-exc-c14n-one/exc-signature.tmpl
blob: 7b635ae0cfd276cffb5ff977acb4d4edc630e33e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<Foo xmlns:bar="urn:bar" xmlns="urn:foo" xml:space="preserve">
  <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
    <dsig:SignedInfo>
      <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
      <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1" />
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue></dsig:DigestValue>
      </dsig:Reference>
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
            <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="bar #default" />
          </dsig:Transform>
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue></dsig:DigestValue>
      </dsig:Reference>
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments" />
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue></dsig:DigestValue>
      </dsig:Reference>
      <dsig:Reference URI="#xpointer(id('to-be-signed'))">
        <dsig:Transforms>
          <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments">
            <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="bar #default" />
          </dsig:Transform>
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue></dsig:DigestValue>
      </dsig:Reference>
    </dsig:SignedInfo>
    <dsig:SignatureValue>
    </dsig:SignatureValue>
    <dsig:KeyInfo>
      <dsig:KeyValue>
      </dsig:KeyValue>
    </dsig:KeyInfo>
    <dsig:Object Id="to-be-signed">
      <bar:Baz>
        <!--  comment -->
      </bar:Baz>
    </dsig:Object>
  </dsig:Signature>
</Foo>