I am using the package cryptocode
to typeset protocols in a nice way, but I have a problem with matrices. Here is a MWE which shows the problem:
\documentclass{article}
\usepackage{cryptocode}
\begin{document}
\begin{figure}%[ht]
\begin{center}
\fbox{%
\pseudocode{%
\textbf{Sender} \<\< \textbf{Receiver} \\[][\hline]
\<\< \text{compute } P = \begin{pmatrix}
A \\ B + C
\end{pmatrix} \\
\text{compute } Q = R+S-T \<\< \\
\< \sendmessageright*{Q} \< \\
\< \sendmessageleft*{P} \< \\
}
}
\end{center}
\end{figure}
\end{document}
The result is
and, as you can see, the matrix is not typeset correctly (the alignment is wrong). How can I solve this?