13.07.2015 Aufrufe

Handouts - Prof. Dr. Christoph Karg - Hochschule Aalen

Handouts - Prof. Dr. Christoph Karg - Hochschule Aalen

Handouts - Prof. Dr. Christoph Karg - Hochschule Aalen

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

Hilfsfunktionen (Forts.)• Abbildung f :f (i,⃗x,⃗y) =⎛ ⎞ ⎛ ⎞ ⎛ ⎞x 0 S(y 1 ) RC(i)⎜x 1⎟⎝x 2⎠ ⊕ ⎜S(y 2 )⎟⎝S(y 3 ) ⎠ ⊕ ⎜ 0⎟⎝ 0 ⎠x 3 S(y 0 ) 0• Abbildung g:g(⃗x,⃗y) =⎛ ⎞ ⎛ ⎞x 0 S(y 0 )⎜x 1⎟⎝x 2⎠ ⊕ ⎜S(y 1 )⎟⎝S(y 2 ) ⎠x 3 S(y 3 )<strong>Prof</strong>. <strong>Dr</strong>. C. <strong>Karg</strong>: Kryptografische Algorithmen 37/40Schlüsselexpansion für n K ≤ 6KeyExpansion(K[n K ], W [n B (n R + 1)])Input: Schlüssel K (4n K Byte) wobei n K ≤ 6Output: Rundenschlüssel (4n B (n R + 1) Byte)1 for j := 0 to n K − 1 do2 W [j] := K[j];3 for (j := n K to n B (n R + 1) − 1) do4 if j mod n K = 0 then5 W [j] := f (j/n K , W [j − n K ], W [j − 1])6 else7 W [j] := W [j − n K ] ⊕ W [j − 1];<strong>Prof</strong>. <strong>Dr</strong>. C. <strong>Karg</strong>: Kryptografische Algorithmen 38/40

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!