blob: 2a255f8a0d6e487f5f9d0f029b29f620dcb9d862 (
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
|
<?xml version="1.0"?>
<!DOCTYPE test [
<!ATTLIST ToBeSigned Id ID #IMPLIED>
]>
<Document xmlns:xenc="http://www.example.org/xenc" xmlns:dsig="http://www.example.org/dsig">
<ToBeSigned Id="foo">
<Secrets>Test</Secrets>
</ToBeSigned>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2001/04/xmldsig-more/xptr">
<XPointer xmlns="http://www.w3.org/2001/04/xmldsig-more/xptr">
xpointer(id("foo"))
</XPointer>
</Transform>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>faszbFrqwUNeZH5QrXPPobn+zso=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>BTB6iZWZjOIG0JjGjpYbihO3Igg=</SignatureValue>
<Object Id="object">some text</Object>
</Signature>
</Document>
|