Sophie

Sophie

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

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

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


R\-I\-P\-E\-M\-D-\/1128 hash function, headers.  


{\ttfamily \#include \char`\"{}beecrypt/beecrypt.\-h\char`\"{}}\\*
Include dependency graph for ripemd128.\-h\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{ripemd128_8h__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structripemd128Param}{ripemd128\-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{ripemd128_8h_aa695b4fffd72e3c2063d369dc9b096bb}{ripemd128\-Process} (\hyperlink{structripemd128Param}{ripemd128\-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{ripemd128_8h_a5c704a8d8af681d6866396bef70f15d5}{ripemd128\-Reset} (\hyperlink{structripemd128Param}{ripemd128\-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{ripemd128_8h_aa20a4dc7b90f9672532964ee7c5a15dd}{ripemd128\-Update} (\hyperlink{structripemd128Param}{ripemd128\-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{ripemd128_8h_a8c4968e05ab7bf29f0cbddb94b8a61f6}{ripemd128\-Digest} (\hyperlink{structripemd128Param}{ripemd128\-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{ripemd128_8h_a9e22762ec5918d8b89cd59e8844cae29}{ripemd128}
\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-\/1128 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{ripemd128_8h_a8c4968e05ab7bf29f0cbddb94b8a61f6}{\index{ripemd128.\-h@{ripemd128.\-h}!ripemd128\-Digest@{ripemd128\-Digest}}
\index{ripemd128\-Digest@{ripemd128\-Digest}!ripemd128.h@{ripemd128.\-h}}
\subsubsection[{ripemd128\-Digest}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd128\-Digest (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128\-Param} $\ast$}]{mp, }
\item[{{\bf byte} $\ast$}]{digest}
\end{DoxyParamCaption}
)}}\label{ripemd128_8h_a8c4968e05ab7bf29f0cbddb94b8a61f6}


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{ripemd128_8h_aa695b4fffd72e3c2063d369dc9b096bb}{\index{ripemd128.\-h@{ripemd128.\-h}!ripemd128\-Process@{ripemd128\-Process}}
\index{ripemd128\-Process@{ripemd128\-Process}!ripemd128.h@{ripemd128.\-h}}
\subsubsection[{ripemd128\-Process}]{\setlength{\rightskip}{0pt plus 5cm}void ripemd128\-Process (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128\-Param} $\ast$}]{mp}
\end{DoxyParamCaption}
)}}\label{ripemd128_8h_aa695b4fffd72e3c2063d369dc9b096bb}


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{ripemd128_8h_a5c704a8d8af681d6866396bef70f15d5}{\index{ripemd128.\-h@{ripemd128.\-h}!ripemd128\-Reset@{ripemd128\-Reset}}
\index{ripemd128\-Reset@{ripemd128\-Reset}!ripemd128.h@{ripemd128.\-h}}
\subsubsection[{ripemd128\-Reset}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd128\-Reset (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128\-Param} $\ast$}]{mp}
\end{DoxyParamCaption}
)}}\label{ripemd128_8h_a5c704a8d8af681d6866396bef70f15d5}


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{ripemd128_8h_aa20a4dc7b90f9672532964ee7c5a15dd}{\index{ripemd128.\-h@{ripemd128.\-h}!ripemd128\-Update@{ripemd128\-Update}}
\index{ripemd128\-Update@{ripemd128\-Update}!ripemd128.h@{ripemd128.\-h}}
\subsubsection[{ripemd128\-Update}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd128\-Update (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128\-Param} $\ast$}]{mp, }
\item[{const {\bf byte} $\ast$}]{data, }
\item[{size\-\_\-t}]{size}
\end{DoxyParamCaption}
)}}\label{ripemd128_8h_aa20a4dc7b90f9672532964ee7c5a15dd}


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{ripemd128_8h_a9e22762ec5918d8b89cd59e8844cae29}{\index{ripemd128.\-h@{ripemd128.\-h}!ripemd128@{ripemd128}}
\index{ripemd128@{ripemd128}!ripemd128.h@{ripemd128.\-h}}
\subsubsection[{ripemd128}]{\setlength{\rightskip}{0pt plus 5cm}ripemd128}}\label{ripemd128_8h_a9e22762ec5918d8b89cd59e8844cae29}


Holds the full A\-P\-I description of the R\-I\-P\-E\-M\-D-\/128 algorithm.