Sophie

Sophie

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

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

\hypertarget{ripemd160_8h}{
\section{include/beecrypt/ripemd160.h File Reference}
\label{ripemd160_8h}\index{include/beecrypt/ripemd160.h@{include/beecrypt/ripemd160.h}}
}


RIPEMD-\/160 hash function, headers.  


{\ttfamily \#include \char`\"{}beecrypt/beecrypt.h\char`\"{}}\par
Include dependency graph for ripemd160.h:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{ripemd160_8h__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structripemd160Param}{ripemd160Param}
\begin{DoxyCompactList}\small\item\em Holds all the parameters necessary for the RIPEMD-\/160 algorithm. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{ripemd160_8h_a75f4f07b1ec33ddf996f14e26272e8c0}{ripemd160Process} (\hyperlink{structripemd160Param}{ripemd160Param} $\ast$mp)
\begin{DoxyCompactList}\small\item\em This function performs the core of the RIPEMD-\/160 hash algorithm; it processes a block of 64 bytes. \item\end{DoxyCompactList}\item 
int \hyperlink{ripemd160_8h_a4b1a7f38c2a4a019f698bee476962b3b}{ripemd160Reset} (\hyperlink{structripemd160Param}{ripemd160Param} $\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{ripemd160_8h_a32a0fae84ec3385ba9a0274e7caee817}{ripemd160Update} (\hyperlink{structripemd160Param}{ripemd160Param} $\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{ripemd160_8h_ab222600be4e42e80e4608baf2ed63b1c}{ripemd160Digest} (\hyperlink{structripemd160Param}{ripemd160Param} $\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{ripemd160_8h_a83f39dba5832ab9a641a1074eacf1a8b}{ripemd160}
\begin{DoxyCompactList}\small\item\em Holds the full API description of the RIPEMD-\/160 algorithm. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
RIPEMD-\/160 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{ripemd160_8h_ab222600be4e42e80e4608baf2ed63b1c}{
\index{ripemd160.h@{ripemd160.h}!ripemd160Digest@{ripemd160Digest}}
\index{ripemd160Digest@{ripemd160Digest}!ripemd160.h@{ripemd160.h}}
\subsubsection[{ripemd160Digest}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd160Digest (
\begin{DoxyParamCaption}
\item[{{\bf ripemd160Param} $\ast$}]{mp, }
\item[{{\bf byte} $\ast$}]{digest}
\end{DoxyParamCaption}
)}}
\label{ripemd160_8h_ab222600be4e42e80e4608baf2ed63b1c}


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


This function performs the core of the RIPEMD-\/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{ripemd160_8h_a4b1a7f38c2a4a019f698bee476962b3b}{
\index{ripemd160.h@{ripemd160.h}!ripemd160Reset@{ripemd160Reset}}
\index{ripemd160Reset@{ripemd160Reset}!ripemd160.h@{ripemd160.h}}
\subsubsection[{ripemd160Reset}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd160Reset (
\begin{DoxyParamCaption}
\item[{{\bf ripemd160Param} $\ast$}]{mp}
\end{DoxyParamCaption}
)}}
\label{ripemd160_8h_a4b1a7f38c2a4a019f698bee476962b3b}


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


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


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