File:Cascade MAC algorithm.svg

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

Original file(SVG file, nominally 406 × 295 pixels, file size: 39 KB)

Captions

Captions

A cascading algorithm to create message authentication codes

Summary[edit]

Description
English: This algorithm is similar to the NMAC construction and uses a block encryption algorithm to create a MAC . In this case, the key is only used for the first encryption while the following steps use the previously generated ciphertext blocks .
Deutsch: Dieser Algorithmus ähnelt der NMAC-Konstruktion und nutzt ein Blockkryptosystem , um einen MAC zu erzeugen. In diesem Fall wird der Schlüssel nur für den ersten Verschlüsselungsschritt genutzt, während die folgenden Schritte die zuvor generierten Chiffretextblöcke als Schlüssel nutzen.
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}]

\node (k) at (2,3) {$k$};
\node (m) at (9,8) {$m$};
\node (t) at (10,-2) {$t$};
\draw (3,-1) rectangle (16,7);
\node (E') at (3.5,6.5) {$E'$};

\foreach \x/\i in {5/0,7/1,9/2,13/{n-1}} {
    \draw (\x-1,5.5) rectangle (\x+1,4.5);
    \node (m\i) at (\x,5) {$m_{\i}$};
    \draw (\x,1.5) rectangle (\x+2,0.5);
    \node (c\i) at (\x+1,1) {$c_{\i}$};
    \node [algo] (E\i) at (\x,3) {$E$};
    \draw [->] (\x,4.5) -- (E\i);
    \draw [->] (\x-1.5,3) -- (E\i);
    \draw [->, rounded corners] (E\i) -| node [above] {$c_{\i}$} (\x+1,1.5);
}

\draw (E2) -- (10.5,3);
\draw (k) -- (3.5,3);
\node at (11,5) {$\cdots$};
\draw [dotted] (10.5,3) -- (11.5,3);
\node at (12,1) {$\cdots$};

\draw [decorate,decoration={brace,amplitude=0.5cm}] (4,5.5) -- (14,5.5);
\draw [decorate,decoration={brace,amplitude=0.5cm}] (15,0.5) -- (5,0.5);
\draw [->] (m) -- (9,6);
\draw [->] (10,0) -- (t);

\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 2024406 × 295 (39 KB)Sn KGS (talk | contribs)Uploaded own work with UploadWizard

The following page uses this file:

Metadata