Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132934 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
4
\usepackage{tikz}
5
\usetikzlibrary{calc}
6
7
\begin{document}
8
\begin{preview}
9
\tikzstyle{vertex}=[draw,fill=black!15,circle,minimum size=20pt,inner sep=0pt]
10
\tikzstyle{encrypt}=[draw,fill=black!15,rectangle,minimum size=20pt,inner sep=0pt]
11
\begin{tikzpicture}
12
\draw[fill=black!15] (-0.4,-1) -- (1,-1) -- (1,1) -- (-0.4,1) --cycle;
13
\draw[fill=black!35] (-0.35,0) -- (0.95,-0) -- (0.95,0.9) -- (-0.35,0.9) --cycle;
14
\draw[fill=black!15] (3.5,-1) -- (5.5,-1) -- (5.5,1) -- (3.5,1) --cycle;
15
\node (A) at (0.25,-0.5) {$\mathcal{A}$};
16
\node[text width=2cm] (E) at (4.7,0) {Challenger\\$Enc(k, \cdot)$};
17
\node[text width=1.5cm] (O) at (0.5,0.5) {\scriptsize{Orakel\\$Enc(k, \cdot)$}};
18
19
20
\draw[->,thick] (1,0.7) -- node[sloped, above=-0.1cm] {$\scriptstyle M^{(0)}$} (3.5,0.7);
21
\draw[->,thick] (1,0.4) -- node[sloped, above=-0.1cm] {$\scriptstyle M^{(1)}$} (3.5,0.4);
22
\draw[<-,thick] (1,0.0) -- node[sloped, above=-0.1cm] {$\scriptstyle C^* = Enc(k, M^{(b)})$} (3.5,0.0);
23
24
\draw[->,thick] (0,-1) |- node[sloped, above=0.19cm,right=0.3cm] {rate $b$} (2,-2);
25
\draw[<-,very thick] (-0.5,-2) -- node[sloped, above=-0.05cm] {Zeit} (-0.5,1.5);
26
\end{tikzpicture}
27
\end{preview}
28
\end{document}
29
30