Sophie

Sophie

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

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

\hypertarget{ripemd256_8h}{
\section{include/beecrypt/ripemd256.h File Reference}
\label{ripemd256_8h}\index{include/beecrypt/ripemd256.h@{include/beecrypt/ripemd256.h}}
}


RIPEMD-\/256 hash function, headers.  


{\ttfamily \#include \char`\"{}beecrypt/beecrypt.h\char`\"{}}\par
Include dependency graph for ripemd256.h:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{ripemd256_8h__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structripemd256Param}{ripemd256Param}
\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{ripemd256_8h_a787dd8aaf773176870176b1888209aad}{ripemd256Process} (\hyperlink{structripemd256Param}{ripemd256Param} $\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{ripemd256_8h_af3b4af794e7288323fe87bc31ccd5b77}{ripemd256Reset} (\hyperlink{structripemd256Param}{ripemd256Param} $\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{ripemd256_8h_a582caee5c8c667df95f71217b151b3da}{ripemd256Update} (\hyperlink{structripemd256Param}{ripemd256Param} $\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{ripemd256_8h_ac52ed23a3638e8500d2e67e2dfa9e8b0}{ripemd256Digest} (\hyperlink{structripemd256Param}{ripemd256Param} $\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{ripemd256_8h_ab84bd1e7205ff58cecf4b5a5d2fc13c4}{ripemd256}
\begin{DoxyCompactList}\small\item\em Holds the full API description of the RIPEMD-\/128 algorithm. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


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


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


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


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


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


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