IND-CPA-Game.tex 1.0 KB

123456789101112131415161718192021222324
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \usepackage{tikz}
  4. \usetikzlibrary{calc}
  5. \begin{document}
  6. \begin{preview}
  7. \tikzstyle{vertex}=[draw,fill=black!15,circle,minimum size=20pt,inner sep=0pt]
  8. \tikzstyle{encrypt}=[draw,fill=black!15,rectangle,minimum size=20pt,inner sep=0pt]
  9. \begin{tikzpicture}
  10. \node (A)[draw, minimum height=2cm,fill=black!15] at (0,0) {$\mathcal{A}$};
  11. \node (E)[draw, minimum height=2cm,fill=black!15] at (4,0) {$Enc(K, \cdot)$};
  12. \draw[->,thick] (A.north east) -- node[sloped, above=-0.1cm] {$\scriptstyle M^{(1)}$} (E.north west);
  13. \draw[->,thick] (A.60) -- node[sloped, above=-0.1cm] {$\scriptstyle M^{(2)}$} (E.150);
  14. \draw[->,thick] (E.179) -- node[sloped, above=-0.1cm] {$\scriptstyle C^* = Enc(K, M^{(b)})$} (A.east);
  15. \draw[->,thick] (A.south)|- node[sloped, above=0.19cm,right=0.3cm] {rate $b$} (2,-2);
  16. \draw[<-,very thick] (-0.5,-2) -- node[sloped, above=-0.05cm] {Zeit} (-0.5,1.5);
  17. \end{tikzpicture}
  18. \end{preview}
  19. \end{document}