aboutsummaryrefslogtreecommitdiffstats
path: root/vorlesungen/slides/a/aes/bytes.tex
blob: e873e9a3bc713f0ba440ce9ef9533cc30b4192cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%
% bytes.tex -- slide template
%
% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
%
\bgroup
\begin{frame}[t]
\setlength{\abovedisplayskip}{5pt}
\setlength{\belowdisplayskip}{5pt}
\frametitle{Bytes}
\vspace{-20pt}
\begin{columns}[t,onlytextwidth]
\begin{column}{0.48\textwidth}
\begin{block}{Endlicher Körper}
1 Byte = 8 bits: $\mathbb{F}_{2^8}$
mit Minimalpolynom:
\[
m(X) = X^8+X^4+X^3+X+1
\]
\end{block}
\vspace{-10pt}
\uncover<2->{%
\begin{block}{Inverse $a^{-1}$}
Mit dem euklidischen Algorithmus
\[
\begin{aligned}
sa+tm&=1
&&\Rightarrow&
\uncover<3->{
a^{-1} &= s}
\\
&
&&&
\uncover<4->{
\overline{a}
&=
\begin{cases}
a^{-1}&\; a\ne 0\\
0     &\; a =  0
\end{cases}}
\end{aligned}
\]
\end{block}}
\vspace{-10pt}
\uncover<5->{%
\begin{block}{Vektorraum}
$\mathbb{R}_{2^8}$
ist ein $8$-dimensionaler $\mathbb{F}_2$-Vektorraum
\end{block}}
\end{column}
\begin{column}{0.48\textwidth}
\uncover<6->{%
\begin{block}{S-Box}
$S\colon a\mapsto A\overline{a}+q$ mit
\begin{align*}
\only<1-7>{\phantom{\mathstrut^{-1}}A}
\ifthenelse{\boolean{presentation}}{}{\only<8>{A^{-1}}}
&=\only<1-7>{\begin{pmatrix}
1&0&0&0&1&1&1&1\\
1&1&0&0&0&1&1&1\\
1&1&1&0&0&0&1&1\\
1&1&1&1&0&0&0&1\\
1&1&1&1&1&0&0&0\\
0&1&1&1&1&1&0&0\\
0&0&1&1&1&1&1&0\\
0&0&0&1&1&1&1&1
\end{pmatrix}}
\ifthenelse{\boolean{presentation}}{}{
\only<8->{
\begin{pmatrix}
0&0&1&0&0&1&0&1\\
1&0&0&1&0&0&1&0\\
0&1&0&0&1&0&0&1\\
1&0&1&0&0&1&0&0\\
0&1&0&1&0&0&1&0\\
0&0&1&0&1&0&0&1\\
1&0&0&1&0&1&0&0\\
0&1&0&0&1&0&1&0
\end{pmatrix}}
}
\\
q&=X^7+X^6+X+1
\end{align*}
\end{block}}
\vspace{-10pt}
\uncover<7->{%
\begin{block}{Inverse $S$-Box}
\vspace{-10pt}
\[
S^{-1}(b) = \overline{A^{-1}(b-q)}
\]
\end{block}}
\end{column}
\end{columns}
\end{frame}
\egroup