xref: /AOO42X/main/xmlsecurity/tools/examples/enc-1.xml (revision b5ffe9b538c2ae169395e094ada5be59c5565375)
1<?xml version="1.0"?>
2<!--
3XML 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></CipherValue>
27    </CipherData>
28  </EncryptedData>
29  <Data> Hello, World! </Data>
30</Envelope>
31
32