Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > e8773dc1178a3ee82e29ab36424dc729 > files > 1164

libbeecrypt-devel-4.2.1-6.mga1.i586.rpm

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


RIPEMD-\/1128 hash function, headers.  


{\ttfamily \#include \char`\"{}beecrypt/beecrypt.h\char`\"{}}\par
Include dependency graph for ripemd128.h:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{ripemd128_8h__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structripemd128Param}{ripemd128Param}
\begin{DoxyCompactList}\small\item\em Holds all the parameters necessary for the RIPEMD-\/128 algorithm. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{ripemd128_8h_aa695b4fffd72e3c2063d369dc9b096bb}{ripemd128Process} (\hyperlink{structripemd128Param}{ripemd128Param} $\ast$mp)
\begin{DoxyCompactList}\small\item\em This function performs the core of the RIPEMD-\/128 hash algorithm; it processes a block of 64 bytes. \item\end{DoxyCompactList}\item 
int \hyperlink{ripemd128_8h_a5c704a8d8af681d6866396bef70f15d5}{ripemd128Reset} (\hyperlink{structripemd128Param}{ripemd128Param} $\ast$mp)
\begin{DoxyCompactList}\small\item\em This function resets the parameter block so that it's ready for a new hash. \item\end{DoxyCompactList}\item 
int \hyperlink{ripemd128_8h_aa20a4dc7b90f9672532964ee7c5a15dd}{ripemd128Update} (\hyperlink{structripemd128Param}{ripemd128Param} $\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. \item\end{DoxyCompactList}\item 
int \hyperlink{ripemd128_8h_a8c4968e05ab7bf29f0cbddb94b8a61f6}{ripemd128Digest} (\hyperlink{structripemd128Param}{ripemd128Param} $\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\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{structhashFunction}{hashFunction} \hyperlink{ripemd128_8h_a9e22762ec5918d8b89cd59e8844cae29}{ripemd128}
\begin{DoxyCompactList}\small\item\em Holds the full API description of the RIPEMD-\/128 algorithm. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
RIPEMD-\/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}!ripemd128Digest@{ripemd128Digest}}
\index{ripemd128Digest@{ripemd128Digest}!ripemd128.h@{ripemd128.h}}
\subsubsection[{ripemd128Digest}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd128Digest (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128Param} $\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}!ripemd128Process@{ripemd128Process}}
\index{ripemd128Process@{ripemd128Process}!ripemd128.h@{ripemd128.h}}
\subsubsection[{ripemd128Process}]{\setlength{\rightskip}{0pt plus 5cm}void ripemd128Process (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128Param} $\ast$}]{mp}
\end{DoxyParamCaption}
)}}
\label{ripemd128_8h_aa695b4fffd72e3c2063d369dc9b096bb}


This function performs the core of the RIPEMD-\/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}!ripemd128Reset@{ripemd128Reset}}
\index{ripemd128Reset@{ripemd128Reset}!ripemd128.h@{ripemd128.h}}
\subsubsection[{ripemd128Reset}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd128Reset (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128Param} $\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}!ripemd128Update@{ripemd128Update}}
\index{ripemd128Update@{ripemd128Update}!ripemd128.h@{ripemd128.h}}
\subsubsection[{ripemd128Update}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd128Update (
\begin{DoxyParamCaption}
\item[{{\bf ripemd128Param} $\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}{\bf ripemd128}}}
\label{ripemd128_8h_a9e22762ec5918d8b89cd59e8844cae29}


Holds the full API description of the RIPEMD-\/128 algorithm.