merge the formfield patch from ooo-build
[ooovba.git] / xmlsecurity / tools / examples / s-in-e-2.xml
blob29e3e45df7543cdd4888028cee51af98459d9f7b
1 <?xml version="1.0"?>
2 <!-- 
3 XML Security Library example: Simple encryption template file for encrypt1 example. 
4 -->
5 <Envelope xmlns="urn:envelope">
6   a signature in an encryption.
7   <EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Element">
8     <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"></EncryptionMethod>
9     <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
10         <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
11           <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
12           <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
13             <X509Data>
14             <X509IssuerSerial>
15                 <X509IssuerName>CN=Test Issuer</X509IssuerName>
16                 <X509SerialNumber>123450001</X509SerialNumber>
17             </X509IssuerSerial>
18             </X509Data>
19           </KeyInfo>   
20           <CipherData>
21             <CipherValue/>
22           </CipherData>
23         </EncryptedKey>
24     </KeyInfo>   
25     <CipherData>
26       <CipherValue/>
27     </CipherData>
28   </EncryptedData>
29   <Data>
30       Hello, World! the Following is a Signature
31         <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
32             <SignedInfo>
33               <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
34               <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
35               <Reference URI="#target">
36                 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
37                 <DigestValue> </DigestValue>
38               </Reference>
39             </SignedInfo>
40             <SignatureValue> </SignatureValue>
41             <KeyInfo>
42               <X509Data>
43                 <X509IssuerSerial>
44                     <X509IssuerName>CN=Test Issuer</X509IssuerName>
45                     <X509SerialNumber>123450005</X509SerialNumber>
46                 </X509IssuerSerial>
47               </X509Data>
48             </KeyInfo>
49         </Signature>
50   </Data>  
51   <SignData id="target" refNum="1">Signed Data</SignData>
52 </Envelope>