Sophie

Sophie

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

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

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


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


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


\subsection{Detailed Description}
R\-I\-P\-E\-M\-D-\/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}!ripemd160\-Digest@{ripemd160\-Digest}}
\index{ripemd160\-Digest@{ripemd160\-Digest}!ripemd160.h@{ripemd160.\-h}}
\subsubsection[{ripemd160\-Digest}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd160\-Digest (
\begin{DoxyParamCaption}
\item[{{\bf ripemd160\-Param} $\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}!ripemd160\-Process@{ripemd160\-Process}}
\index{ripemd160\-Process@{ripemd160\-Process}!ripemd160.h@{ripemd160.\-h}}
\subsubsection[{ripemd160\-Process}]{\setlength{\rightskip}{0pt plus 5cm}void ripemd160\-Process (
\begin{DoxyParamCaption}
\item[{{\bf ripemd160\-Param} $\ast$}]{mp}
\end{DoxyParamCaption}
)}}\label{ripemd160_8h_a75f4f07b1ec33ddf996f14e26272e8c0}


This function performs the core of the R\-I\-P\-E\-M\-D-\/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}!ripemd160\-Reset@{ripemd160\-Reset}}
\index{ripemd160\-Reset@{ripemd160\-Reset}!ripemd160.h@{ripemd160.\-h}}
\subsubsection[{ripemd160\-Reset}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd160\-Reset (
\begin{DoxyParamCaption}
\item[{{\bf ripemd160\-Param} $\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}!ripemd160\-Update@{ripemd160\-Update}}
\index{ripemd160\-Update@{ripemd160\-Update}!ripemd160.h@{ripemd160.\-h}}
\subsubsection[{ripemd160\-Update}]{\setlength{\rightskip}{0pt plus 5cm}int ripemd160\-Update (
\begin{DoxyParamCaption}
\item[{{\bf ripemd160\-Param} $\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}ripemd160}}\label{ripemd160_8h_a83f39dba5832ab9a641a1074eacf1a8b}


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