Created
January 19, 2017 06:22
-
-
Save yukinying/5488cb0efe9b4042cee1f72e89c4b934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[tikz,border=3mm]{standalone} | |
\usepackage{pgf-umlsd} | |
\usetikzlibrary{shadows,positioning} | |
\tikzset{every shadow/.style={fill=none,shadow xshift=0pt,shadow yshift=0pt}} | |
\begin{document} | |
\sffamily | |
\small | |
\begin{sequencediagram} | |
\newinst{A}{Alice} | |
\newinst[6]{B}{Bob} | |
\mess[1]{A}{$g$, $p$, $g^a$ mod $p$}{B} | |
\mess[1]{B}{$g^b$ mod $p$}{A} | |
\end{sequencediagram} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment