hsaml2-0.1: test/XML/encryption-example.xml
<?xml version="1.0" encoding="UTF-8"?>
<EncryptedData Id="eg1" xmlns="http://www.w3.org/2001/04/xmlenc#"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
<KeySize>256</KeySize>
<OAEPparams>9lWu3Q==</OAEPparams>
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
</EncryptionMethod>
<ds:KeyInfo>
<ds:KeyName>Joseph</ds:KeyName>
<ds:RetrievalMethod URI="http://exmample.org/Reagle/PublicKey"
Type="http://www.w3.org/2001/04/xmlenc#EncryptedKey"/>
<EncryptedKey>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
<CipherData>
<CipherValue>qZk+NkcGgWq6PiVxeFDCbJzQ2J0=</CipherValue>
</CipherData>
<ReferenceList>
<KeyReference URI="http://exmample.org/foo2"/>
<DataReference URI="http://exmample.org/foo1"/>
</ReferenceList>
</EncryptedKey>
<AgreementMethod Algorithm="example:Agreement/Algorithm">
<KA-Nonce>Zm9v</KA-Nonce>
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<OriginatorKeyInfo>
<ds:KeyValue><ds:RSAKeyValue>
<ds:Modulus>cafebabe</ds:Modulus><ds:Exponent>cafebabe</ds:Exponent>
</ds:RSAKeyValue></ds:KeyValue>
</OriginatorKeyInfo>
<RecipientKeyInfo>
<ds:KeyValue><ds:RSAKeyValue>
<ds:Modulus>cafebabe</ds:Modulus><ds:Exponent>cafebabe</ds:Exponent>
</ds:RSAKeyValue></ds:KeyValue>
</RecipientKeyInfo>
</AgreementMethod>
</ds:KeyInfo>
<CipherData>
<CipherReference URI="http://example.org/pgpkeys/reagle.b64">
<Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64"/>
</Transforms>
</CipherReference>
</CipherData>
<EncryptionProperties>
<EncryptionProperty Target="#eg1" Id="ep2">
<p xmlns="http://www.w3.org/1999/xhtml">This XML document tests the schema for ambigous content.</p>
</EncryptionProperty></EncryptionProperties>
</EncryptedData>