blob: b8a37dc718c506dcad8740b9d52bc936b8f0ba13 [file] [log] [blame]
<html xmlns:sec="http://www.xml-sicherheit.de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../format.css">
</head>
<body>
<h1>Beispiel - Verschlüsselt</h1>
<p>Die folgenden Beispiele zeigen die zwei <a href="encryption_syntax_cipherdata.html">Verschlüsselungsvarianten</a> im von oben bekanntem <a href="sample.html">Beispiel XML-Dokument</a>. Zur übersichtlicheren Darstellung wurden alle Beispiele nachträglich formatiert.
</p>
<h2 id="envelopingEncryption">Enveloping Encryption</h2>
<div class="code"><pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
Id="enveloping-sample" Type="http://www.w3.org/2001/04/xmlenc#Element"&gt;
&lt;xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/&gt;
&lt;ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
&lt;xenc:EncryptedKey&gt;
&lt;xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-aes128"/&gt;
&lt;xenc:CipherData&gt;
&lt;xenc:CipherValue&gt;rojIk5KAKQLdxwsvNzKL1slqdrAbvhQa&lt;/xenc:CipherValue&gt;
&lt;/xenc:CipherData&gt;
&lt;/xenc:EncryptedKey&gt;
&lt;/ds:KeyInfo&gt;
&lt;xenc:CipherData&gt;
&lt;xenc:CipherValue&gt;
IxZg5/ybM3tKnRK7krng3YE+GmosiCY7u1ZJB3s7LoTDf4KvGnSTh+CUQ50g5lz2SnRFgUj4PpxG
4EBX6MOPWG7Idx+JlzOx0+PCnVLU7JNIYi8MXGKtmj3yxtFr6Lx9kT6lPPqoorhWm/jaQqsdRhMc
XbLQLRMfY2ZqckcLpd7w55K8iMu5P8w1l4RRV4tw0XLI3TDj++204NFiBzyd5joVyDfCibuP+UX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8KO7
&lt;/xenc:CipherValue&gt;
&lt;/xenc:CipherData&gt;
&lt;/xenc:EncryptedData&gt;
</pre></div>
<h2 id="detachedEncryption">Detached Encryption</h2>
<div class="code"><pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
Id="detached-sample" Type="http://www.w3.org/2001/04/xmlenc#Element"&gt;
&lt;xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/&gt;
&lt;ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
&lt;xenc:EncryptedKey&gt;
&lt;xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-tripledes"/&gt;
&lt;xenc:CipherData&gt;
&lt;xenc:CipherValue&gt;8PSWTVBjn4m5Q0fDV2Q4c6FZ2BigxoCi&lt;/xenc:CipherValue&gt;
&lt;/xenc:CipherData&gt;
&lt;/xenc:EncryptedKey&gt;
&lt;/ds:KeyInfo&gt;
&lt;xenc:CipherData&gt;
&lt;xenc:CipherReference URI="invoice.xml"/&gt;
&lt;/xenc:CipherData&gt;
&lt;/xenc:EncryptedData&gt;
</pre></div>
<p>Das Beispiel <a href="sample_signed.html">signiert</a> (<a href="sample_signed.html#envelopedSignature">enveloped</a>, <a href="sample_signed.html#envelopingSignature">enveloping</a>, <a href="sample_signed.html#detachedSignature">detached</a>) oder im <a href="sample.html">Original</a>.
</p>
</body>
</html>