Skip to content

Instantly share code, notes, and snippets.

@yukinying
Created January 19, 2017 06:22
Show Gist options
  • Save yukinying/5488cb0efe9b4042cee1f72e89c4b934 to your computer and use it in GitHub Desktop.
Save yukinying/5488cb0efe9b4042cee1f72e89c4b934 to your computer and use it in GitHub Desktop.
\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