File:MAC algorithms.svg
Summary
Description |
English: A MAC cryptosystem uses three algorithms: a random number generator (the die) to generate a secret key , to create a MAC for a message , and to verify the MAC.
Deutsch: Ein MAC-Kryptosystem besteht aus drei Algorithmen: einem Zufallszahlengenerator (symbolisiert durch den Würfel) um einen geheimen Schlüssel zu erzeugen, um zu einem Klartext einen MAC zu erzeugen, und , um den MAC zu verifizieren. |
Date | |
Source | Own work |
Author | Sn KGS |
Diese Abbildung ist, wie viele andere, während einer Kryptographie-Vorlesung für Lehramts-Studierende im Wintersemester 2020/2021 an der Christian-Albrechts-Universität zu Kiel entstanden. Einige dieser Bilder beziehen sich ausschließlich auf Fallbeispiele aus der Vorlesung.
SVG development
Category:Valid SVG created with LaTeX code#MAC%20algorithms.svgThe resulting file was further processed with sed.
Source code
LaTeX code
\documentclass{standalone}
\usepackage{pgffor} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{ifthen} % This image is part of a large %
\usepackage{pgfplots} % collection of diagrams. Some %
\usepackage{libertineRoman} % or all of the used packages %
\usepackage{biolinum} % may not be necessary to com- %
\usepackage{fontawesome5} % pile this specific file but %
\usepackage{epsdice} % vital for others. Sorry for %
\usepackage{mathtools} % any inconvenience. -- Sn KGS %
\usepackage{amsfonts} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\highlight}[1]{\textbf{\textsf{#1}}}
\newcommand{\todo}[1]{\textbf{\color{red}TODO: #1}}
\newcommand{\drawrand}{\ensuremath{\xleftarrow{\mathcal{R}}}}
\usetikzlibrary{decorations.pathreplacing}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
[thick, scale=2,algo/.style={draw, rectangle, minimum height=1cm, minimum width=1cm}]
\node (S) [algo] at (1,1) {$T$};
\node (V) [algo] at (3,1) {$V$};
\node (G) [algo] at (2,-1) {\pgfmathparse{random(1,6)} \epsdice{\pgfmathresult}};
\node (m) at (0,1) {$m$};
\node (k) at (2,0) {$k$};
\node (t) at (2,1) {$t$};
\node (res) at (4,1) {$0/1$};
\draw [->] (m) edge (S);
\draw [->, rounded corners] (k) -| (S);
\draw [->, rounded corners] (k) -| (V);
\draw [->] (G) edge (k);
\draw [->] (S) edge (t);
\draw [->] (m) edge [bend left=45] (V);
\draw [->] (t) edge (V);
\draw [->] (V) edge (res);
\end{tikzpicture}
\end{document}
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.