Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > d1d38291248b5ff58339d3d2ddb22ecd > files > 1256

lib64beecrypt-devel-4.2.1-13.mga4.x86_64.rpm

\hypertarget{md5_8h}{\section{include/beecrypt/md5.h File Reference}
\label{md5_8h}\index{include/beecrypt/md5.\-h@{include/beecrypt/md5.\-h}}
}


M\-D5 hash function.  


{\ttfamily \#include \char`\"{}beecrypt/beecrypt.\-h\char`\"{}}\\*
Include dependency graph for md5.\-h\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{md5_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=222pt]{md5_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structmd5Param}{md5\-Param}
\begin{DoxyCompactList}\small\item\em Holds all the parameters necessary for the M\-D5 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{md5_8h_a18cd2d06bd4e8bbbeae3bd1e0431b4fc}{md5\-Process} (\hyperlink{structmd5Param}{md5\-Param} $\ast$mp)
\item 
int \hyperlink{md5_8h_aeb03767a38c0a6dfe46e64d6967d64bb}{md5\-Reset} (\hyperlink{structmd5Param}{md5\-Param} $\ast$mp)
\begin{DoxyCompactList}\small\item\em This function resets the parameter block so that it's ready for a new hash. \end{DoxyCompactList}\item 
int \hyperlink{md5_8h_ad63a2d640ca2a7e98c1775c53004bded}{md5\-Update} (\hyperlink{structmd5Param}{md5\-Param} $\ast$mp, const \hyperlink{api_8h_ab8ef12fab634c171394422d0ee8baf94}{byte} $\ast$data, size\-\_\-t size)
\begin{DoxyCompactList}\small\item\em This function should be used to pass successive blocks of data to be hashed. \end{DoxyCompactList}\item 
int \hyperlink{md5_8h_a0886d3137aeecb5596383a3a30aa5ffc}{md5\-Digest} (\hyperlink{structmd5Param}{md5\-Param} $\ast$mp, \hyperlink{api_8h_ab8ef12fab634c171394422d0ee8baf94}{byte} $\ast$digest)
\begin{DoxyCompactList}\small\item\em This function finishes the current hash computation and copies the digest value into {\itshape digest}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{structhashFunction}{hash\-Function} \hyperlink{md5_8h_a3062e1e11c64939824f4f249890f7157}{md5}
\begin{DoxyCompactList}\small\item\em Holds the full A\-P\-I description of the M\-D5 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
M\-D5 hash function. \begin{DoxyAuthor}{Author}
Bob Deblier \href{mailto:bob.deblier@telenet.be}{\tt bob.\-deblier@telenet.\-be} 
\end{DoxyAuthor}


\subsection{Function Documentation}
\hypertarget{md5_8h_a0886d3137aeecb5596383a3a30aa5ffc}{\index{md5.\-h@{md5.\-h}!md5\-Digest@{md5\-Digest}}
\index{md5\-Digest@{md5\-Digest}!md5.h@{md5.\-h}}
\subsubsection[{md5\-Digest}]{\setlength{\rightskip}{0pt plus 5cm}int md5\-Digest (
\begin{DoxyParamCaption}
\item[{{\bf md5\-Param} $\ast$}]{mp, }
\item[{{\bf byte} $\ast$}]{digest}
\end{DoxyParamCaption}
)}}\label{md5_8h_a0886d3137aeecb5596383a3a30aa5ffc}


This function finishes the current hash computation and copies the digest value into {\itshape digest}. 


\begin{DoxyParams}{Parameters}
{\em mp} & The hash function's parameter block. \\
\hline
{\em digest} & The place to store the 16-\/byte digest. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & on success. \\
\hline
\end{DoxyRetVals}
\hypertarget{md5_8h_a18cd2d06bd4e8bbbeae3bd1e0431b4fc}{\index{md5.\-h@{md5.\-h}!md5\-Process@{md5\-Process}}
\index{md5\-Process@{md5\-Process}!md5.h@{md5.\-h}}
\subsubsection[{md5\-Process}]{\setlength{\rightskip}{0pt plus 5cm}void md5\-Process (
\begin{DoxyParamCaption}
\item[{{\bf md5\-Param} $\ast$}]{mp}
\end{DoxyParamCaption}
)}}\label{md5_8h_a18cd2d06bd4e8bbbeae3bd1e0431b4fc}
\hypertarget{md5_8h_aeb03767a38c0a6dfe46e64d6967d64bb}{\index{md5.\-h@{md5.\-h}!md5\-Reset@{md5\-Reset}}
\index{md5\-Reset@{md5\-Reset}!md5.h@{md5.\-h}}
\subsubsection[{md5\-Reset}]{\setlength{\rightskip}{0pt plus 5cm}int md5\-Reset (
\begin{DoxyParamCaption}
\item[{{\bf md5\-Param} $\ast$}]{mp}
\end{DoxyParamCaption}
)}}\label{md5_8h_aeb03767a38c0a6dfe46e64d6967d64bb}


This function resets the parameter block so that it's ready for a new hash. 


\begin{DoxyParams}{Parameters}
{\em mp} & The hash function's parameter block. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & on success. \\
\hline
\end{DoxyRetVals}
\hypertarget{md5_8h_ad63a2d640ca2a7e98c1775c53004bded}{\index{md5.\-h@{md5.\-h}!md5\-Update@{md5\-Update}}
\index{md5\-Update@{md5\-Update}!md5.h@{md5.\-h}}
\subsubsection[{md5\-Update}]{\setlength{\rightskip}{0pt plus 5cm}int md5\-Update (
\begin{DoxyParamCaption}
\item[{{\bf md5\-Param} $\ast$}]{mp, }
\item[{const {\bf byte} $\ast$}]{data, }
\item[{size\-\_\-t}]{size}
\end{DoxyParamCaption}
)}}\label{md5_8h_ad63a2d640ca2a7e98c1775c53004bded}


This function should be used to pass successive blocks of data to be hashed. 


\begin{DoxyParams}{Parameters}
{\em mp} & The hash function's parameter block. \\
\hline
{\em data} & \\
\hline
{\em size} & \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & on success. \\
\hline
\end{DoxyRetVals}


\subsection{Variable Documentation}
\hypertarget{md5_8h_a3062e1e11c64939824f4f249890f7157}{\index{md5.\-h@{md5.\-h}!md5@{md5}}
\index{md5@{md5}!md5.h@{md5.\-h}}
\subsubsection[{md5}]{\setlength{\rightskip}{0pt plus 5cm}md5}}\label{md5_8h_a3062e1e11c64939824f4f249890f7157}


Holds the full A\-P\-I description of the M\-D5 algorithm.