merge the formfield patch from ooo-build
[ooovba.git] / xmlsecurity / tools / examples / enc-2.xml
blobe56d2300ab511d27cc52c9efae4c461045aa5429
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   The encrypted data is <Data>Hello, World!</Data>
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!
31         <EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Element">
32         <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"></EncryptionMethod>
33         <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
34             <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
35           <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
36           <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
37           <X509Data>
38             <X509IssuerSerial>
39                 <X509IssuerName>CN=Test Issuer</X509IssuerName>
40                 <X509SerialNumber>123450001</X509SerialNumber>
41             </X509IssuerSerial>
42           </X509Data>
43           </KeyInfo>   
44           <CipherData>
45                 <CipherValue/>
46           </CipherData>
47             </EncryptedKey>
48         </KeyInfo>   
49         <CipherData>
50           <CipherValue></CipherValue>
51         </CipherData>
52         </EncryptedData>
53                 <Data>
54           This is an embeded encryption!
55         </Data>         
56       </Data>  
57 </Envelope>