<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki-de.moshellshocker.dns64.de/index.php?action=history&amp;feed=atom&amp;title=Optimal_Asymmetric_Encryption_Padding</id>
	<title>Optimal Asymmetric Encryption Padding - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-de.moshellshocker.dns64.de/index.php?action=history&amp;feed=atom&amp;title=Optimal_Asymmetric_Encryption_Padding"/>
	<link rel="alternate" type="text/html" href="https://wiki-de.moshellshocker.dns64.de/index.php?title=Optimal_Asymmetric_Encryption_Padding&amp;action=history"/>
	<updated>2026-05-17T19:32:58Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Wikipedia (Deutsch) – Lokale Kopie</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki-de.moshellshocker.dns64.de/index.php?title=Optimal_Asymmetric_Encryption_Padding&amp;diff=2669501&amp;oldid=prev</id>
		<title>imported&gt;PerfektesChaos: tk kl</title>
		<link rel="alternate" type="text/html" href="https://wiki-de.moshellshocker.dns64.de/index.php?title=Optimal_Asymmetric_Encryption_Padding&amp;diff=2669501&amp;oldid=prev"/>
		<updated>2023-06-29T15:49:55Z</updated>

		<summary type="html">&lt;p&gt;tk kl&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Optimal Asymmetric Encryption Padding&amp;#039;&amp;#039;&amp;#039;, auf Deutsch etwa &amp;#039;&amp;#039;Optimales asymmetrisches Verschlüsselungs-Padding&amp;#039;&amp;#039;, oft auch abgekürzt als &amp;#039;&amp;#039;&amp;#039;OAEP&amp;#039;&amp;#039;&amp;#039;, ist ein [[Kryptographie|kryptographisches]] [[Padding (Informatik)|Paddingverfahren]]. Es ist eine spezielle Form eines [[Feistelchiffre|Feistelnetzwerks]], mit welchem im [[Zufallsorakel]]-Modell aus einer beliebigen [[Einwegfunktion#Einwegfunktionen mit Falltür (Trapdoor-Einwegfunktionen)|Falltürpermutation]] ein gegen [[Ciphertext Indistinguishability#Definition von IND-CPA|Gewählter-Klartext-Angriffe]] semantisch sicheres Verschlüsselungsverfahren gebaut werden kann. Wenn OAEP mit der Falltürpermutation RSA verwendet wird, ist das nun RSA-OAEP genannte Verfahren sogar sicher gegen Gewähltes-Chiffrat-Angriffe ([[IND-CCA]]). Das Verfahren wurde 1994 von [[Mihir Bellare]] und [[Phillip Rogaway]] veröffentlicht.&amp;lt;ref name=&amp;quot;BR&amp;quot;&amp;gt;{{Literatur |Autor=[[Mihir Bellare]], [[Phillip Rogaway]] |Titel=Optimal Asymmetric Encryption – How to encrypt with RSA |Sammelwerk=EUROCRYPT 94 |Reihe=Lecture Notes in Computer Science |Band=950 |Verlag=Springer |Datum=1994 |Seiten=92–111 |Online=http://cseweb.ucsd.edu/~mihir/papers/oae.pdf |Format=PDF |KBytes= |Abruf=}} {{Webarchiv |url=http://cseweb.ucsd.edu/~mihir/papers/oae.pdf |text=Optimal Asymmetric Encryption – How to encrypt with RSA. |wayback=20181105145454 |archiv-bot=2022-12-24 02:56:06 InternetArchiveBot}} cseweb.ucsd.edu&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Verfahren (Grundvariante) ==&lt;br /&gt;
[[Datei:Oaep-diagram-20080305.png|mini|300px|Ablauf der OAEP-Schemas in der CCA-Variante (siehe Abschnitt &amp;#039;&amp;#039;Varianten&amp;#039;&amp;#039;). In der Grundversion des Verfahrens ist &amp;#039;&amp;#039;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;=0&amp;#039;&amp;#039;, d.&amp;amp;nbsp;h., es werden keine Nullen angehängt.&amp;lt;br /&amp;gt;Die Ausgabe &amp;#039;&amp;#039;X, Y&amp;#039;&amp;#039; dient als Eingabewert für die Falltürpermutation &amp;#039;&amp;#039;f&amp;#039;&amp;#039;.]]&lt;br /&gt;
Es sei &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; ein Sicherheitsparameter, und &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; so groß, dass ein Angreifer nur deutlich weniger als &amp;lt;math&amp;gt;2^{k_0}&amp;lt;/math&amp;gt; Rechenschritte ausführen kann.&lt;br /&gt;
&lt;br /&gt;
Weiter seien &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; eine Familie von Falltürpermutationen &amp;lt;math&amp;gt;f:\{0,1\}^n\mapsto\{0,1\}^n&amp;lt;/math&amp;gt; auf Nachrichten mit &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; [[Bit]]s, und &amp;lt;math&amp;gt;k=n-k_0&amp;lt;/math&amp;gt; die Länge der Nachrichten, welche übertragen werden sollen.&lt;br /&gt;
&lt;br /&gt;
Schließlich seien &amp;lt;math&amp;gt;G:\{0,1\}^{k_0}\mapsto\{0,1\}^k&amp;lt;/math&amp;gt; und &amp;lt;math&amp;gt;H:\{0,1\}^k\mapsto\{0,1\}^{k_0}&amp;lt;/math&amp;gt; [[kryptographische Hashfunktion]]en.&lt;br /&gt;
Das Verschlüsselungsverfahren &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt;-OAEP ist nun wie folgt definiert. Die Schlüsselerzeugung besteht in der Wahl von &amp;lt;math&amp;gt;f, f^{-1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Verschlüsselung ===&lt;br /&gt;
Um eine &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;-Bit Nachricht &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; zu verschlüsseln, verfährt man nun wie folgt:&lt;br /&gt;
* Man wählt &amp;lt;math&amp;gt;r\in\{0,1\}^{k_0}&amp;lt;/math&amp;gt; als eine zufällige Folge von &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; Bits.&lt;br /&gt;
* Dann berechnet man&lt;br /&gt;
** &amp;lt;math&amp;gt;X = m\oplus G(r)&amp;lt;/math&amp;gt; und &amp;lt;math&amp;gt;Y=r\oplus H(m\oplus G(r))&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Der Schlüsseltext &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; ist dann gegeben als:&lt;br /&gt;
** &amp;lt;math&amp;gt;c = f(X||Y)&amp;lt;/math&amp;gt;,&amp;lt;br /&amp;gt; wobei &amp;lt;math&amp;gt;||&amp;lt;/math&amp;gt; hier für [[Konkatenation (Listen)|Konkatenation]] steht.&lt;br /&gt;
&lt;br /&gt;
=== Entschlüsselung ===&lt;br /&gt;
Um die Nachricht &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; zu rekonstruieren, führt man die folgenden Schritte aus:&lt;br /&gt;
* Zuerst verwendet man die Falltür, um zu berechnen:&lt;br /&gt;
** &amp;lt;math&amp;gt;Z=(X||Y)=f^{-1}(c)&amp;lt;/math&amp;gt;&lt;br /&gt;
* Nun rekonstruiert man den Zufallswert &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; als&lt;br /&gt;
** &amp;lt;math&amp;gt;r=Y\oplus H(X)&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Schließlich erhält man die Nachricht &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; wieder als&lt;br /&gt;
** &amp;lt;math&amp;gt;m=X\oplus G(r)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Varianten ==&lt;br /&gt;
Durch eine einfache Modifikation des obigen Protokolls kann man auch IND-CCA1 Sicherheit, also Sicherheit gegen [[Ciphertext Indistinguishability#IND-CCA|Gewählte-Schlüsseltext-Angriffe]] erreichen. Dazu reduziert man die Länge der Nachricht &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; auf &amp;lt;math&amp;gt;k-k_1&amp;lt;/math&amp;gt; Bits, und konkateniert sie mit &amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt; Nullen. Beim Entschlüsseln prüft man, ob der rekonstruierte Wert die korrekte Form hat, und bricht ansonsten ab.&lt;br /&gt;
&lt;br /&gt;
[[Victor Shoup]] präsentierte eine Erweiterung des Verfahrens, mit welcher für jede beliebige Falltürpermutation auch IND-CCA2 Sicherheit erreicht werden kann.&amp;lt;ref name=&amp;quot;Shoup&amp;quot;&amp;gt;{{Literatur |Autor=Victor Shoup |Titel=OAEP Reconsidered |Sammelwerk=CRYPTO 2001 |Reihe=Lecture Notes in Computer Science |Band=vol. 2139 |Verlag=Springer |Datum=2001 |Seiten=239–259 |Online=http://www.shoup.net/papers/oaep.pdf}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RSA-OAEP ==&lt;br /&gt;
Der Grund für die Entwicklung von OAEP war die Suche nach einer Möglichkeit, mit [[RSA-Kryptosystem|RSA]] sicher (im Sinn von IND-CCA2-Sicherheit) zu verschlüsseln. Wird bei OAEP als Falltürpermutation RSA verwendet, so wird das Verfahren als RSA-OAEP bezeichnet. Obwohl OAEP im allgemeinen Fall IND-CCA2-Sicherheit nicht erreicht, ist dies für RSA-OAEP im Zufallsorakel-Modell und unter der RSA-Annahme der Fall.&amp;lt;ref name=&amp;quot;FOPS&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Da das Ergebnis des OAEP-Encodings eine Zahl zwischen 0 und &amp;lt;math&amp;gt;2^n&amp;lt;/math&amp;gt; ist, der &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-bit RSA-Modulus &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; aber kleiner als &amp;lt;math&amp;gt;2^n&amp;lt;/math&amp;gt; ist, kann es vorkommen, dass das Ergebnis des OAEP-Encodings einen größeren numerischen Wert hat als der RSA-Modulus. Dies darf aber nicht passieren, da in diesem Fall die Entschlüsselung nicht mehr eindeutig ist. Daher muss in einem solchen Fall das OAEP-Encoding mit neuem Zufall &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; wiederholt werden.&lt;br /&gt;
&lt;br /&gt;
RSA-OAEP wurde in [[Public-Key Cryptography Standards|PKCS&amp;amp;#35;1]] und &amp;lt;nowiki&amp;gt;RFC&amp;amp;nbsp;3447&amp;lt;/nowiki&amp;gt;&amp;lt;ref&amp;gt;{{RFC-Internet |RFC=3447 |Titel=Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1 |Datum=2003-02}}&amp;lt;/ref&amp;gt; standardisiert, wobei die verwendete Hashfunktion ein Parameter des Verfahrens ist, also nicht festgelegt wurde. Unter diesen Umständen, also ohne Zufallsorakel, ist RSA-OAEP unter der [[Phi-Hiding-Annahme]] IND-CPA sicher, falls die verwendete Hashfunktion &amp;#039;&amp;#039;t-wise independent&amp;#039;&amp;#039; ist.&amp;lt;ref name=&amp;quot;KONS&amp;quot; /&amp;gt;&lt;br /&gt;
Bei der Standardisierung wurde allerdings eine Änderung vorgenommen, durch die das Verfahren nicht mehr beweisbar sicher ist: Um das oben angesprochene Wiederholen des OAEP-Encodings zu vermeiden wurde festgelegt, dass das Ergebnis von OAEP um 8&amp;amp;nbsp;Bit kürzer sein muss als der RSA-Modulus; die ersten 8&amp;amp;nbsp;Bit werden mit 0 aufgefüllt. Der Empfänger muss beim Entschlüsseln überprüfen, ob die ersten 8&amp;amp;nbsp;Bit den Wert&amp;amp;nbsp;0 haben, und abbrechen, falls nicht. Falls ein Angreifer unterscheiden kann, ob eine Entschlüsselung aus diesem oder aus einem anderen Grund abgebrochen wurde, gibt es einen Angriff, der ohne den geheimen Schlüssel den kompletten Klartext zurückgewinnt.&amp;lt;ref name=&amp;quot;Manger&amp;quot; /&amp;gt; Dafür benötigt er nur ca. 1000 Anfragen an ein Fehlerorakel, das lediglich ausgibt, ob und aus welchem Grund ein Entschlüsselungsversuch gescheitert ist. Solche Orakel können beispielsweise bei [[Transport Layer Security|TLS/SSL]]-Verbindungen auftreten, dort wurde der Angriff auch in der Praxis durchgeführt.&lt;br /&gt;
&lt;br /&gt;
== Einzelnachweise ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;FOPS&amp;quot;&amp;gt;&lt;br /&gt;
{{Literatur&lt;br /&gt;
 |Autor=Eiichiro Fujisaki, Tatsuaki Okamoto, David Pointcheval, Jacques Stern&lt;br /&gt;
 |Titel=RSA-OAEP is Secure under the RSA Assumption&lt;br /&gt;
 |Sammelwerk=Journal of Cryptology&lt;br /&gt;
 |Band=17&lt;br /&gt;
 |Nummer=2&lt;br /&gt;
 |Verlag=Springer&lt;br /&gt;
 |Datum=2004&lt;br /&gt;
 |Seiten=81–104&lt;br /&gt;
 |Online=http://www.di.ens.fr/users/pointche/Documents/Papers/2004_joc.pdf}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manger&amp;quot;&amp;gt;&lt;br /&gt;
{{Literatur&lt;br /&gt;
 |Autor=James Manger&lt;br /&gt;
 |Titel=A Chosen Ciphertext Attack on RSA Optimal Asymmetric Encryption Padding (OAEP) as Standardized in PKCS #1 v2.0&lt;br /&gt;
 |Sammelwerk=CRYPTO 2001&lt;br /&gt;
 |Reihe=Lecture Notes in Computer Science&lt;br /&gt;
 |Band=2139&lt;br /&gt;
 |Verlag=Springer&lt;br /&gt;
 |Datum=2001&lt;br /&gt;
 |Seiten=260–274&lt;br /&gt;
 |Online=http://archiv.infsec.ethz.ch/education/fs08/secsem/Manger01.pdf&lt;br /&gt;
 |Format=PDF&lt;br /&gt;
 |KBytes=&lt;br /&gt;
 |Abruf=}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;KONS&amp;quot;&amp;gt;&lt;br /&gt;
{{Literatur&lt;br /&gt;
 |Autor=Eike Kiltz, Adam O’Neill, Adam Smith&lt;br /&gt;
 |Titel=Instantiability of RSA-OAEP under Chosen-Plaintext Attack&lt;br /&gt;
 |Sammelwerk=CRYPTO 2010&lt;br /&gt;
 |Reihe=Lecture Notes in Computer Science&lt;br /&gt;
 |Band=6223&lt;br /&gt;
 |Verlag=Springer&lt;br /&gt;
 |Datum=2010&lt;br /&gt;
 |Seiten=295–313&lt;br /&gt;
 |Online=http://eprint.iacr.org/2011/559.pdf&lt;br /&gt;
 |Format=PDF&lt;br /&gt;
 |KBytes=&lt;br /&gt;
 |Abruf=}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Kryptologisches Verfahren]]&lt;/div&gt;</summary>
		<author><name>imported&gt;PerfektesChaos</name></author>
	</entry>
</feed>