\hypertarget{ripemd320_8h}{\section{include/beecrypt/ripemd320.h File Reference} \label{ripemd320_8h}\index{include/beecrypt/ripemd320.\-h@{include/beecrypt/ripemd320.\-h}} } R\-I\-P\-E\-M\-D-\/320 hash function, headers. {\ttfamily \#include \char`\"{}beecrypt/beecrypt.\-h\char`\"{}}\\* Include dependency graph for ripemd320.\-h\-: \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{ripemd320_8h__incl} \end{center} \end{figure} \subsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \hyperlink{structripemd320Param}{ripemd320\-Param} \begin{DoxyCompactList}\small\item\em Holds all the parameters necessary for the R\-I\-P\-E\-M\-D-\/160 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Functions} \begin{DoxyCompactItemize} \item void \hyperlink{ripemd320_8h_ae51aaac33d89e6fedce19e00014c981f}{ripemd320\-Process} (\hyperlink{structripemd320Param}{ripemd320\-Param} $\ast$mp) \begin{DoxyCompactList}\small\item\em This function performs the core of the R\-I\-P\-E\-M\-D-\/160 hash algorithm; it processes a block of 64 bytes. \end{DoxyCompactList}\item int \hyperlink{ripemd320_8h_a221af1765fee7be4e1507440daf7b7a8}{ripemd320\-Reset} (\hyperlink{structripemd320Param}{ripemd320\-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{ripemd320_8h_a945b5298715f78b4c4af2e4f836a4db5}{ripemd320\-Update} (\hyperlink{structripemd320Param}{ripemd320\-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{ripemd320_8h_aacef808b3e00aabc3b7db08fc5608af7}{ripemd320\-Digest} (\hyperlink{structripemd320Param}{ripemd320\-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{ripemd320_8h_aa5d6cba020959397ae0e05180945a3e5}{ripemd320} \begin{DoxyCompactList}\small\item\em Holds the full A\-P\-I description of the R\-I\-P\-E\-M\-D-\/160 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Detailed Description} R\-I\-P\-E\-M\-D-\/320 hash function, headers. \begin{DoxyAuthor}{Author} Jeff Johnson \href{mailto:jbj@rpm5.org}{\tt jbj@rpm5.\-org} Bob Deblier \href{mailto:bob.deblier@telenet.be}{\tt bob.\-deblier@telenet.\-be} \end{DoxyAuthor} \subsection{Function Documentation} \hypertarget{ripemd320_8h_aacef808b3e00aabc3b7db08fc5608af7}{\index{ripemd320.\-h@{ripemd320.\-h}!ripemd320\-Digest@{ripemd320\-Digest}} \index{ripemd320\-Digest@{ripemd320\-Digest}!ripemd320.h@{ripemd320.\-h}} \subsubsection[{ripemd320\-Digest}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd320\-Digest ( \begin{DoxyParamCaption} \item[{{\bf ripemd320\-Param} $\ast$}]{mp, } \item[{{\bf byte} $\ast$}]{digest} \end{DoxyParamCaption} )}}\label{ripemd320_8h_aacef808b3e00aabc3b7db08fc5608af7} 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 20-\/byte digest. \\ \hline \end{DoxyParams} \begin{DoxyRetVals}{Return values} {\em 0} & on success. \\ \hline \end{DoxyRetVals} \hypertarget{ripemd320_8h_ae51aaac33d89e6fedce19e00014c981f}{\index{ripemd320.\-h@{ripemd320.\-h}!ripemd320\-Process@{ripemd320\-Process}} \index{ripemd320\-Process@{ripemd320\-Process}!ripemd320.h@{ripemd320.\-h}} \subsubsection[{ripemd320\-Process}]{\setlength{\rightskip}{0pt plus 5cm}void ripemd320\-Process ( \begin{DoxyParamCaption} \item[{{\bf ripemd320\-Param} $\ast$}]{mp} \end{DoxyParamCaption} )}}\label{ripemd320_8h_ae51aaac33d89e6fedce19e00014c981f} This function performs the core of the R\-I\-P\-E\-M\-D-\/160 hash algorithm; it processes a block of 64 bytes. \begin{DoxyParams}{Parameters} {\em mp} & The hash function's parameter block. \\ \hline \end{DoxyParams} \hypertarget{ripemd320_8h_a221af1765fee7be4e1507440daf7b7a8}{\index{ripemd320.\-h@{ripemd320.\-h}!ripemd320\-Reset@{ripemd320\-Reset}} \index{ripemd320\-Reset@{ripemd320\-Reset}!ripemd320.h@{ripemd320.\-h}} \subsubsection[{ripemd320\-Reset}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd320\-Reset ( \begin{DoxyParamCaption} \item[{{\bf ripemd320\-Param} $\ast$}]{mp} \end{DoxyParamCaption} )}}\label{ripemd320_8h_a221af1765fee7be4e1507440daf7b7a8} 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{ripemd320_8h_a945b5298715f78b4c4af2e4f836a4db5}{\index{ripemd320.\-h@{ripemd320.\-h}!ripemd320\-Update@{ripemd320\-Update}} \index{ripemd320\-Update@{ripemd320\-Update}!ripemd320.h@{ripemd320.\-h}} \subsubsection[{ripemd320\-Update}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd320\-Update ( \begin{DoxyParamCaption} \item[{{\bf ripemd320\-Param} $\ast$}]{mp, } \item[{const {\bf byte} $\ast$}]{data, } \item[{size\-\_\-t}]{size} \end{DoxyParamCaption} )}}\label{ripemd320_8h_a945b5298715f78b4c4af2e4f836a4db5} 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{ripemd320_8h_aa5d6cba020959397ae0e05180945a3e5}{\index{ripemd320.\-h@{ripemd320.\-h}!ripemd320@{ripemd320}} \index{ripemd320@{ripemd320}!ripemd320.h@{ripemd320.\-h}} \subsubsection[{ripemd320}]{\setlength{\rightskip}{0pt plus 5cm}ripemd320}}\label{ripemd320_8h_aa5d6cba020959397ae0e05180945a3e5} Holds the full A\-P\-I description of the R\-I\-P\-E\-M\-D-\/160 algorithm.