Sophie

Sophie

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

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

\hypertarget{ripemd320_8h}{
\section{include/beecrypt/ripemd320.h File Reference}
\label{ripemd320_8h}\index{include/beecrypt/ripemd320.h@{include/beecrypt/ripemd320.h}}
}


RIPEMD-\/320 hash function, headers.  


{\ttfamily \#include \char`\"{}beecrypt/beecrypt.h\char`\"{}}\par
Include dependency graph for ripemd320.h:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{ripemd320_8h__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structripemd320Param}{ripemd320Param}
\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{ripemd320_8h_ae51aaac33d89e6fedce19e00014c981f}{ripemd320Process} (\hyperlink{structripemd320Param}{ripemd320Param} $\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{ripemd320_8h_a221af1765fee7be4e1507440daf7b7a8}{ripemd320Reset} (\hyperlink{structripemd320Param}{ripemd320Param} $\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{ripemd320_8h_a945b5298715f78b4c4af2e4f836a4db5}{ripemd320Update} (\hyperlink{structripemd320Param}{ripemd320Param} $\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{ripemd320_8h_aacef808b3e00aabc3b7db08fc5608af7}{ripemd320Digest} (\hyperlink{structripemd320Param}{ripemd320Param} $\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{ripemd320_8h_aa5d6cba020959397ae0e05180945a3e5}{ripemd320}
\begin{DoxyCompactList}\small\item\em Holds the full API description of the RIPEMD-\/160 algorithm. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


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


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{ripemd320_8h_a221af1765fee7be4e1507440daf7b7a8}{
\index{ripemd320.h@{ripemd320.h}!ripemd320Reset@{ripemd320Reset}}
\index{ripemd320Reset@{ripemd320Reset}!ripemd320.h@{ripemd320.h}}
\subsubsection[{ripemd320Reset}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd320Reset (
\begin{DoxyParamCaption}
\item[{{\bf ripemd320Param} $\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}!ripemd320Update@{ripemd320Update}}
\index{ripemd320Update@{ripemd320Update}!ripemd320.h@{ripemd320.h}}
\subsubsection[{ripemd320Update}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd320Update (
\begin{DoxyParamCaption}
\item[{{\bf ripemd320Param} $\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}{\bf ripemd320}}}
\label{ripemd320_8h_aa5d6cba020959397ae0e05180945a3e5}


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