3 XML Security Library example: Simple encryption template file for encrypt1 example.
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#">
15 <X509IssuerName>CN=Test Issuer</X509IssuerName>
16 <X509SerialNumber>123450001</X509SerialNumber>
30 Hello, World! the Following is a Signature
31 <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
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>
40 <SignatureValue> </SignatureValue>
44 <X509IssuerName>CN=Test Issuer</X509IssuerName>
45 <X509SerialNumber>123450005</X509SerialNumber>
51 <SignData id="target" refNum="1">Signed Data</SignData>