\hypertarget{ripemd256_8h}{\section{include/beecrypt/ripemd256.h File Reference} \label{ripemd256_8h}\index{include/beecrypt/ripemd256.\-h@{include/beecrypt/ripemd256.\-h}} } R\-I\-P\-E\-M\-D-\/256 hash function, headers. {\ttfamily \#include \char`\"{}beecrypt/beecrypt.\-h\char`\"{}}\\* Include dependency graph for ripemd256.\-h\-: \nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{ripemd256_8h__incl} \end{center} \end{figure} \subsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \hyperlink{structripemd256Param}{ripemd256\-Param} \begin{DoxyCompactList}\small\item\em Holds all the parameters necessary for the R\-I\-P\-E\-M\-D-\/128 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Functions} \begin{DoxyCompactItemize} \item void \hyperlink{ripemd256_8h_a787dd8aaf773176870176b1888209aad}{ripemd256\-Process} (\hyperlink{structripemd256Param}{ripemd256\-Param} $\ast$mp) \begin{DoxyCompactList}\small\item\em This function performs the core of the R\-I\-P\-E\-M\-D-\/128 hash algorithm; it processes a block of 64 bytes. \end{DoxyCompactList}\item int \hyperlink{ripemd256_8h_af3b4af794e7288323fe87bc31ccd5b77}{ripemd256\-Reset} (\hyperlink{structripemd256Param}{ripemd256\-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{ripemd256_8h_a582caee5c8c667df95f71217b151b3da}{ripemd256\-Update} (\hyperlink{structripemd256Param}{ripemd256\-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{ripemd256_8h_ac52ed23a3638e8500d2e67e2dfa9e8b0}{ripemd256\-Digest} (\hyperlink{structripemd256Param}{ripemd256\-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{ripemd256_8h_ab84bd1e7205ff58cecf4b5a5d2fc13c4}{ripemd256} \begin{DoxyCompactList}\small\item\em Holds the full A\-P\-I description of the R\-I\-P\-E\-M\-D-\/128 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Detailed Description} R\-I\-P\-E\-M\-D-\/256 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{ripemd256_8h_ac52ed23a3638e8500d2e67e2dfa9e8b0}{\index{ripemd256.\-h@{ripemd256.\-h}!ripemd256\-Digest@{ripemd256\-Digest}} \index{ripemd256\-Digest@{ripemd256\-Digest}!ripemd256.h@{ripemd256.\-h}} \subsubsection[{ripemd256\-Digest}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd256\-Digest ( \begin{DoxyParamCaption} \item[{{\bf ripemd256\-Param} $\ast$}]{mp, } \item[{{\bf byte} $\ast$}]{digest} \end{DoxyParamCaption} )}}\label{ripemd256_8h_ac52ed23a3638e8500d2e67e2dfa9e8b0} 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{ripemd256_8h_a787dd8aaf773176870176b1888209aad}{\index{ripemd256.\-h@{ripemd256.\-h}!ripemd256\-Process@{ripemd256\-Process}} \index{ripemd256\-Process@{ripemd256\-Process}!ripemd256.h@{ripemd256.\-h}} \subsubsection[{ripemd256\-Process}]{\setlength{\rightskip}{0pt plus 5cm}void ripemd256\-Process ( \begin{DoxyParamCaption} \item[{{\bf ripemd256\-Param} $\ast$}]{mp} \end{DoxyParamCaption} )}}\label{ripemd256_8h_a787dd8aaf773176870176b1888209aad} This function performs the core of the R\-I\-P\-E\-M\-D-\/128 hash algorithm; it processes a block of 64 bytes. \begin{DoxyParams}{Parameters} {\em mp} & The hash function's parameter block. \\ \hline \end{DoxyParams} \hypertarget{ripemd256_8h_af3b4af794e7288323fe87bc31ccd5b77}{\index{ripemd256.\-h@{ripemd256.\-h}!ripemd256\-Reset@{ripemd256\-Reset}} \index{ripemd256\-Reset@{ripemd256\-Reset}!ripemd256.h@{ripemd256.\-h}} \subsubsection[{ripemd256\-Reset}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd256\-Reset ( \begin{DoxyParamCaption} \item[{{\bf ripemd256\-Param} $\ast$}]{mp} \end{DoxyParamCaption} )}}\label{ripemd256_8h_af3b4af794e7288323fe87bc31ccd5b77} 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{ripemd256_8h_a582caee5c8c667df95f71217b151b3da}{\index{ripemd256.\-h@{ripemd256.\-h}!ripemd256\-Update@{ripemd256\-Update}} \index{ripemd256\-Update@{ripemd256\-Update}!ripemd256.h@{ripemd256.\-h}} \subsubsection[{ripemd256\-Update}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd256\-Update ( \begin{DoxyParamCaption} \item[{{\bf ripemd256\-Param} $\ast$}]{mp, } \item[{const {\bf byte} $\ast$}]{data, } \item[{size\-\_\-t}]{size} \end{DoxyParamCaption} )}}\label{ripemd256_8h_a582caee5c8c667df95f71217b151b3da} 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{ripemd256_8h_ab84bd1e7205ff58cecf4b5a5d2fc13c4}{\index{ripemd256.\-h@{ripemd256.\-h}!ripemd256@{ripemd256}} \index{ripemd256@{ripemd256}!ripemd256.h@{ripemd256.\-h}} \subsubsection[{ripemd256}]{\setlength{\rightskip}{0pt plus 5cm}ripemd256}}\label{ripemd256_8h_ab84bd1e7205ff58cecf4b5a5d2fc13c4} Holds the full A\-P\-I description of the R\-I\-P\-E\-M\-D-\/128 algorithm.