File:MAC attacker.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 173 × 292 pixels, file size: 34 KB)

Captions

Captions

An attacker on a MAC algorithm

Summary[edit]

Description
English: A challenger provides the algorithms of a MAC cryptosystem and generates a secret key for himself. An attacker generates several messages and retrieves the MACs . Finally, the attacker provides a pair of a message and a MAC . If the challenger can validate this MAC, the attacker has been successful.
Deutsch: Ein Herausforderer stellt die Algorithmen eines MAC-Kryptosystems bereit und erzuegt für sich einen Schlüssel . Ein Angreifer erzeugt eine Reihe von Klartexten und erhält die MACs . Schließlich erzeugt der Angreifer ein Paar aus Klartext und MAC . Falls der Herausforderer den MAC verifizieren kann, ist der Angreifer erfolgreich.
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

InfoField
 
The SVG code is valid.
 
This diagram was created with LaTeX.
The resulting file was further processed with sed.

Source code

InfoField

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, algo/.style={draw, rectangle, minimum height=1cm, minimum width=1cm}]

\draw (0,1) rectangle (3,10);
\draw (5,1) rectangle (6,10);

\node (C) at (0.5,9.5) {$C$};
\node (A) at (5.5,9.5) {$A$};
\node (G)  [algo] at (2,9) {\pgfmathparse{random(1,6)} \epsdice{\pgfmathresult}};
\node at (2,4.75) {$\vdots$};
\node at (3.75,4.75) {$\vdots$};
\node (V)  [algo] at (2,2) {$V$};
\node (res) at (2,0) {$0/1$};

\foreach \y/\i in {7.5/0,6/1,3.5/{n-1}} {
    \node (T\i) [algo] at (2,\y) {$T$};
    \draw [->] (5,\y+0.25) -- node [above] {$m_{\i}$} (2.5,\y+0.25);
    \draw [->] (2.5,\y-0.25) -- node [below] {$t_{\i}$} (5,\y-0.25);
    \draw [->, rounded corners] (0.5,\y+0.5) |- (T\i);
}

\draw [->, rounded corners] (G) -| node [right,yshift=-0.5cm] {$k$} (0.5,8) |- (V);
\draw [->] (5,2.25)   -- node [above] {$m^*$} (2.5,2.25);
\draw [->] (5,1.75)   -- node [below] {$t^*$} (2.5,1.75);

\draw [->] (V) -- (res);

\end{tikzpicture}

\end{document}

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:10, 3 January 2024Thumbnail for version as of 12:10, 3 January 2024173 × 292 (34 KB)Sn KGS (talk | contribs)Uploaded own work with UploadWizard

The following page uses this file:

Metadata