\hypertarget{dhies_8h}{\section{include/beecrypt/dhies.h File Reference} \label{dhies_8h}\index{include/beecrypt/dhies.\-h@{include/beecrypt/dhies.\-h}} } D\-H\-I\-E\-S (formerly known as D\-H\-A\-E\-S or D\-H\-E\-S) encryption scheme. {\ttfamily \#include \char`\"{}beecrypt/beecrypt.\-h\char`\"{}}\\* {\ttfamily \#include \char`\"{}beecrypt/dldp.\-h\char`\"{}}\\* Include dependency graph for dhies.\-h\-: \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{dhies_8h__incl} \end{center} \end{figure} \subsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \hyperlink{structdhies__pParameters}{dhies\-\_\-p\-Parameters} \item struct \hyperlink{structdhies__pContext}{dhies\-\_\-p\-Context} \end{DoxyCompactItemize} \subsection*{Functions} \begin{DoxyCompactItemize} \item int \hyperlink{dhies_8h_a28cc2c3cfccc99fee986772f189a4aaf}{dhies\-\_\-p\-Usable} (const \hyperlink{structdhies__pParameters}{dhies\-\_\-p\-Parameters} $\ast$) \item int \hyperlink{dhies_8h_a80c7fc4283f3f3c9d9315deec3a6e3af}{dhies\-\_\-p\-Context\-Init} (\hyperlink{structdhies__pContext}{dhies\-\_\-p\-Context} $\ast$, const \hyperlink{structdhies__pParameters}{dhies\-\_\-p\-Parameters} $\ast$) \item int \hyperlink{dhies_8h_a67d0f4f538fc04834ee5ed36b699d2df}{dhies\-\_\-p\-Context\-Init\-Decrypt} (\hyperlink{structdhies__pContext}{dhies\-\_\-p\-Context} $\ast$, const \hyperlink{structdhies__pParameters}{dhies\-\_\-p\-Parameters} $\ast$, const \hyperlink{structmpnumber}{mpnumber} $\ast$) \item int \hyperlink{dhies_8h_a897bef73ab35ca2aa56e1b168fdadded}{dhies\-\_\-p\-Context\-Init\-Encrypt} (\hyperlink{structdhies__pContext}{dhies\-\_\-p\-Context} $\ast$, const \hyperlink{structdhies__pParameters}{dhies\-\_\-p\-Parameters} $\ast$, const \hyperlink{structmpnumber}{mpnumber} $\ast$) \item int \hyperlink{dhies_8h_a812329806f62ee9c8d1ae3a4d77a62cd}{dhies\-\_\-p\-Context\-Free} (\hyperlink{structdhies__pContext}{dhies\-\_\-p\-Context} $\ast$) \item \hyperlink{structmemchunk}{memchunk} $\ast$ \hyperlink{dhies_8h_ae4c99c0674cffed68b9ae304a60f3e36}{dhies\-\_\-p\-Context\-Encrypt} (\hyperlink{structdhies__pContext}{dhies\-\_\-p\-Context} $\ast$, \hyperlink{structmpnumber}{mpnumber} $\ast$, \hyperlink{structmpnumber}{mpnumber} $\ast$, const \hyperlink{structmemchunk}{memchunk} $\ast$, \hyperlink{structrandomGeneratorContext}{random\-Generator\-Context} $\ast$) \item \hyperlink{structmemchunk}{memchunk} $\ast$ \hyperlink{dhies_8h_a7c56de01d62afa426ed65216e52e4f95}{dhies\-\_\-p\-Context\-Decrypt} (\hyperlink{structdhies__pContext}{dhies\-\_\-p\-Context} $\ast$, const \hyperlink{structmpnumber}{mpnumber} $\ast$, const \hyperlink{structmpnumber}{mpnumber} $\ast$, const \hyperlink{structmemchunk}{memchunk} $\ast$) \end{DoxyCompactItemize} \subsection{Detailed Description} D\-H\-I\-E\-S (formerly known as D\-H\-A\-E\-S or D\-H\-E\-S) encryption scheme. This code implements the encryption scheme from the paper\-: \char`\"{}\-D\-H\-I\-E\-S\-: An Encryption Scheme Based on the Diffie-\/\-Hellman Problem\char`\"{} Michel Abdalla, Mihir Bellare, Phillip Rogaway September 18, 2001 \begin{DoxyAuthor}{Author} Bob Deblier \href{mailto:bob.deblier@telenet.be}{\tt bob.\-deblier@telenet.\-be} \end{DoxyAuthor} \subsection{Function Documentation} \hypertarget{dhies_8h_a7c56de01d62afa426ed65216e52e4f95}{\index{dhies.\-h@{dhies.\-h}!dhies\-\_\-p\-Context\-Decrypt@{dhies\-\_\-p\-Context\-Decrypt}} \index{dhies\-\_\-p\-Context\-Decrypt@{dhies\-\_\-p\-Context\-Decrypt}!dhies.h@{dhies.\-h}} \subsubsection[{dhies\-\_\-p\-Context\-Decrypt}]{\setlength{\rightskip}{0pt plus 5cm}{\bf memchunk}$\ast$ dhies\-\_\-p\-Context\-Decrypt ( \begin{DoxyParamCaption} \item[{{\bf dhies\-\_\-p\-Context} $\ast$}]{, } \item[{const {\bf mpnumber} $\ast$}]{, } \item[{const {\bf mpnumber} $\ast$}]{, } \item[{const {\bf memchunk} $\ast$}]{} \end{DoxyParamCaption} )}}\label{dhies_8h_a7c56de01d62afa426ed65216e52e4f95} \hypertarget{dhies_8h_ae4c99c0674cffed68b9ae304a60f3e36}{\index{dhies.\-h@{dhies.\-h}!dhies\-\_\-p\-Context\-Encrypt@{dhies\-\_\-p\-Context\-Encrypt}} \index{dhies\-\_\-p\-Context\-Encrypt@{dhies\-\_\-p\-Context\-Encrypt}!dhies.h@{dhies.\-h}} \subsubsection[{dhies\-\_\-p\-Context\-Encrypt}]{\setlength{\rightskip}{0pt plus 5cm}{\bf memchunk}$\ast$ dhies\-\_\-p\-Context\-Encrypt ( \begin{DoxyParamCaption} \item[{{\bf dhies\-\_\-p\-Context} $\ast$}]{, } \item[{{\bf mpnumber} $\ast$}]{, } \item[{{\bf mpnumber} $\ast$}]{, } \item[{const {\bf memchunk} $\ast$}]{, } \item[{{\bf random\-Generator\-Context} $\ast$}]{} \end{DoxyParamCaption} )}}\label{dhies_8h_ae4c99c0674cffed68b9ae304a60f3e36} \hypertarget{dhies_8h_a812329806f62ee9c8d1ae3a4d77a62cd}{\index{dhies.\-h@{dhies.\-h}!dhies\-\_\-p\-Context\-Free@{dhies\-\_\-p\-Context\-Free}} \index{dhies\-\_\-p\-Context\-Free@{dhies\-\_\-p\-Context\-Free}!dhies.h@{dhies.\-h}} \subsubsection[{dhies\-\_\-p\-Context\-Free}]{\setlength{\rightskip}{0pt plus 5cm}int dhies\-\_\-p\-Context\-Free ( \begin{DoxyParamCaption} \item[{{\bf dhies\-\_\-p\-Context} $\ast$}]{} \end{DoxyParamCaption} )}}\label{dhies_8h_a812329806f62ee9c8d1ae3a4d77a62cd} \hypertarget{dhies_8h_a80c7fc4283f3f3c9d9315deec3a6e3af}{\index{dhies.\-h@{dhies.\-h}!dhies\-\_\-p\-Context\-Init@{dhies\-\_\-p\-Context\-Init}} \index{dhies\-\_\-p\-Context\-Init@{dhies\-\_\-p\-Context\-Init}!dhies.h@{dhies.\-h}} \subsubsection[{dhies\-\_\-p\-Context\-Init}]{\setlength{\rightskip}{0pt plus 5cm}int dhies\-\_\-p\-Context\-Init ( \begin{DoxyParamCaption} \item[{{\bf dhies\-\_\-p\-Context} $\ast$}]{, } \item[{const {\bf dhies\-\_\-p\-Parameters} $\ast$}]{} \end{DoxyParamCaption} )}}\label{dhies_8h_a80c7fc4283f3f3c9d9315deec3a6e3af} \hypertarget{dhies_8h_a67d0f4f538fc04834ee5ed36b699d2df}{\index{dhies.\-h@{dhies.\-h}!dhies\-\_\-p\-Context\-Init\-Decrypt@{dhies\-\_\-p\-Context\-Init\-Decrypt}} \index{dhies\-\_\-p\-Context\-Init\-Decrypt@{dhies\-\_\-p\-Context\-Init\-Decrypt}!dhies.h@{dhies.\-h}} \subsubsection[{dhies\-\_\-p\-Context\-Init\-Decrypt}]{\setlength{\rightskip}{0pt plus 5cm}int dhies\-\_\-p\-Context\-Init\-Decrypt ( \begin{DoxyParamCaption} \item[{{\bf dhies\-\_\-p\-Context} $\ast$}]{, } \item[{const {\bf dhies\-\_\-p\-Parameters} $\ast$}]{, } \item[{const {\bf mpnumber} $\ast$}]{} \end{DoxyParamCaption} )}}\label{dhies_8h_a67d0f4f538fc04834ee5ed36b699d2df} \hypertarget{dhies_8h_a897bef73ab35ca2aa56e1b168fdadded}{\index{dhies.\-h@{dhies.\-h}!dhies\-\_\-p\-Context\-Init\-Encrypt@{dhies\-\_\-p\-Context\-Init\-Encrypt}} \index{dhies\-\_\-p\-Context\-Init\-Encrypt@{dhies\-\_\-p\-Context\-Init\-Encrypt}!dhies.h@{dhies.\-h}} \subsubsection[{dhies\-\_\-p\-Context\-Init\-Encrypt}]{\setlength{\rightskip}{0pt plus 5cm}int dhies\-\_\-p\-Context\-Init\-Encrypt ( \begin{DoxyParamCaption} \item[{{\bf dhies\-\_\-p\-Context} $\ast$}]{, } \item[{const {\bf dhies\-\_\-p\-Parameters} $\ast$}]{, } \item[{const {\bf mpnumber} $\ast$}]{} \end{DoxyParamCaption} )}}\label{dhies_8h_a897bef73ab35ca2aa56e1b168fdadded} \hypertarget{dhies_8h_a28cc2c3cfccc99fee986772f189a4aaf}{\index{dhies.\-h@{dhies.\-h}!dhies\-\_\-p\-Usable@{dhies\-\_\-p\-Usable}} \index{dhies\-\_\-p\-Usable@{dhies\-\_\-p\-Usable}!dhies.h@{dhies.\-h}} \subsubsection[{dhies\-\_\-p\-Usable}]{\setlength{\rightskip}{0pt plus 5cm}int dhies\-\_\-p\-Usable ( \begin{DoxyParamCaption} \item[{const {\bf dhies\-\_\-p\-Parameters} $\ast$}]{} \end{DoxyParamCaption} )}}\label{dhies_8h_a28cc2c3cfccc99fee986772f189a4aaf}