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