Finish tikz for cryptographie

This commit is contained in:
flyingscorpio@pinebookpro 2022-01-24 15:34:45 +01:00
parent cc4994a43b
commit 0f8315b5f5

View file

@ -378,13 +378,25 @@
\begin{center}
\begin{tikzpicture}
\node (emetteur) at (0,0) {émetteur};
\node [rectangle,draw,thick] (chiff) at (8,0) {fonction de chiffrement};
\node [rectangle,draw,thick] (dechiff) at (14,0) {fonction de déchiffrement};
\node (src) at (0,0) {émetteur};
\node (kc) at (5,1.5) {$k_c$};
\node [rectangle,draw,thick] (chiff) at (5,0) {\parbox{2.5cm}{\centering fonction de \\ chiffrement}};
\draw [-latex] (kc) -- (chiff);
\node (kd) at (10,1.5) {$k_d$};
\node [rectangle,draw,thick] (dechiff) at (10,0) {\parbox{2.5cm}{\centering fonction de \\ déchiffrement}};
\draw [-latex] (kd) -- (dechiff);
\node (dst) at (15,0) {destinataire};
\draw [-latex] (src) -- (chiff) node[above,midway]{\parbox{2cm}{\centering$m$ \\ message \\ en clair}};
\draw [-latex]
(emetteur) -- (chiff)
node[above,midway]{$m$, message en clair}
(chiff) -- (dechiff)
node[above,midway]{\parbox{2cm}{\centering$c$ \\ message \\ chiffré}}
node[below,midway]{\parbox{2cm}{\centering canal \\ public}}
;
\draw [-latex] (dechiff) -- (dst) node[above,midway]{\parbox{2cm}{\centering$m$ \\ message \\ en clair}};
\end{tikzpicture}
\end{center}