File:KEM.svg
Page contents not supported in other languages.
Tools
Actions
General
In other projects
Appearance
Size of this PNG preview of this SVG file: 131 × 216 pixels. Other resolutions: 145 × 240 pixels | 291 × 480 pixels | 466 × 768 pixels | 621 × 1,024 pixels | 1,242 × 2,048 pixels.
Original file (SVG file, nominally 131 × 216 pixels, file size: 28 KB)
This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionKEM.svg |
English: Flow diagram of a key encapsulation mechanism |
Date | |
Source | Own work |
Author | Taylor Riastradh Campbell |
Source code
\documentclass{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{xcolor}
% One page per diagram.
\standaloneenv{tikzpicture}
% Colorblind-friendly palette from <https://jfly.uni-koeln.de/color/>.
\definecolor{Vermillion} {cmy}{0, 0.8, 1}
\definecolor{Orange} {cmy}{0, 0.5, 1}
\definecolor{SkyBlue} {cmy}{0.8, 0, 0}
\definecolor{BluishGreen} {cmy}{0.97, 0, 0.75}
\definecolor{Yellow} {cmy}{0.1, 0.5, 0.9}
\definecolor{Blue} {cmy}{1, 0.5, 0}
\definecolor{ReddishPurple} {cmy}{0.1, 0.7, 0}
\begin{document}
\begin{tikzpicture}
\usetikzlibrary{calc}
\usetikzlibrary{shapes}
% Nodes representing data.
\tikzset{publicdatum/.style={
shape=circle,
rounded corners=0.5ex,
minimum height=4ex,
fill=SkyBlue, fill opacity=0.4,
text opacity=1,
}}
\tikzset{secretdatum/.style={
shape=rectangle,
rounded corners=0.5ex,
minimum height=4ex,
fill=Vermillion, fill opacity=0.4,
text opacity=1,
}}
% Nodes representing operations on data.
\tikzset{operation/.style={
shape=trapezium,
trapezium left angle=-65,
trapezium right angle=-65,
minimum height=4ex,
}}
\node (gen) at (1/4, 5) [draw, operation] {$\operatorname{Gen}$};
\coordinate (gen-pk) at ($(gen.south) - (1/4,0)$);
\coordinate (gen-sk) at ($(gen.south) + (1/4,0)$);
\node (pk) at (-2, 3) [draw, publicdatum] {$\mathit{pk}$};
\node (encap) at (-2, 2) [draw, operation]
{$\operatorname{Encap}(\mathit{pk})$};
\coordinate (encap-pk) at (encap.north);
\coordinate (encap-k) at ($(encap.south) - (1/2,0)$);
\coordinate (encap-c) at ($(encap.south) + (1/2,0)$);
\node (k0) at (-2.5, 1) [draw, secretdatum] {$k$};
\node (c) at (-1, 0.5) [draw, publicdatum] {$c$};
\node (sk) at (0.5, 0) [draw, secretdatum] {$\mathit{sk}$};
\node (decap) at (0, -1) [draw, operation]
{$\operatorname{Decap}(\mathit{sk}, c)$};
\coordinate (decap-c) at ($(decap.north) - (1/2,0)$);
\coordinate (decap-sk) at ($(decap.north) + (1/2,0)$);
\coordinate (decap-k) at (decap.south);
\node (k1) at (0, -2) [draw, secretdatum] {$k$};
\draw[->] (gen-pk) |- ($(pk) + (0,1)$) -- (pk);
\draw[->] (gen-sk) -- (sk);
\draw[->] (pk) -- (encap-pk);
\draw[->] (encap-k) -- (k0.north);
\draw[->] (encap-c) |- (c);
\draw[->] (c) -| (decap-c);
\draw[->] (sk) -- (decap-sk);
\draw[->] (decap-k) -- (k1);
\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.
Items portrayed in this file
depicts
some value
21 July 2024
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:57, 21 July 2024 | 131 × 216 (28 KB) | Taylor Riastradh Campbell | Uploaded while editing "Key encapsulation mechanism" on en.wikipedia.org |
File usage
The following page uses this file:
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Width | 131.095 |
---|---|
Height | 215.981 |
Retrieved from "https://en.wikipedia.org/wiki/File:KEM.svg"