Sophie

Sophie

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

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

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


S\-H\-A-\/224 hash function, headers.  


{\ttfamily \#include \char`\"{}beecrypt/beecrypt.\-h\char`\"{}}\\*
Include dependency graph for sha224.\-h\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{sha224_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=234pt]{sha224_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structsha224Param}{sha224\-Param}
\begin{DoxyCompactList}\small\item\em Holds all the parameters necessary for the S\-H\-A-\/224 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{sha224_8h_a1138fa94075756c2a9422cdfb4100f11}{sha224\-Process} (\hyperlink{structsha224Param}{sha224\-Param} $\ast$sp)
\begin{DoxyCompactList}\small\item\em This function performs the core of the S\-H\-A-\/224 hash algorithm; it processes a block of 64 bytes. \end{DoxyCompactList}\item 
int \hyperlink{sha224_8h_af0b8d4bdd5bd80e7147414b11b29b1a1}{sha224\-Reset} (\hyperlink{structsha224Param}{sha224\-Param} $\ast$sp)
\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{sha224_8h_ab812639b90f040f25bb4c04e1d6094dd}{sha224\-Update} (\hyperlink{structsha224Param}{sha224\-Param} $\ast$sp, 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{sha224_8h_a976161ffed4263e047da4e2a780a95b0}{sha224\-Digest} (\hyperlink{structsha224Param}{sha224\-Param} $\ast$sp, \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{sha224_8h_a4350bd4392eb85e0fa9d1fb9f8bf79db}{sha224}
\begin{DoxyCompactList}\small\item\em Holds the full A\-P\-I description of the S\-H\-A-\/224 algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
S\-H\-A-\/224 hash function, headers. \begin{DoxyAuthor}{Author}
Bob Deblier \href{mailto:bob.deblier@telenet.be}{\tt bob.\-deblier@telenet.\-be} 
\end{DoxyAuthor}


\subsection{Function Documentation}
\hypertarget{sha224_8h_a976161ffed4263e047da4e2a780a95b0}{\index{sha224.\-h@{sha224.\-h}!sha224\-Digest@{sha224\-Digest}}
\index{sha224\-Digest@{sha224\-Digest}!sha224.h@{sha224.\-h}}
\subsubsection[{sha224\-Digest}]{\setlength{\rightskip}{0pt plus 5cm}int sha224\-Digest (
\begin{DoxyParamCaption}
\item[{{\bf sha224\-Param} $\ast$}]{sp, }
\item[{{\bf byte} $\ast$}]{digest}
\end{DoxyParamCaption}
)}}\label{sha224_8h_a976161ffed4263e047da4e2a780a95b0}


This function finishes the current hash computation and copies the digest value into {\itshape digest}. 


\begin{DoxyParams}{Parameters}
{\em sp} & The hash function's parameter block. \\
\hline
{\em digest} & The place to store the 32-\/byte digest. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & on success. \\
\hline
\end{DoxyRetVals}
\hypertarget{sha224_8h_a1138fa94075756c2a9422cdfb4100f11}{\index{sha224.\-h@{sha224.\-h}!sha224\-Process@{sha224\-Process}}
\index{sha224\-Process@{sha224\-Process}!sha224.h@{sha224.\-h}}
\subsubsection[{sha224\-Process}]{\setlength{\rightskip}{0pt plus 5cm}void sha224\-Process (
\begin{DoxyParamCaption}
\item[{{\bf sha224\-Param} $\ast$}]{sp}
\end{DoxyParamCaption}
)}}\label{sha224_8h_a1138fa94075756c2a9422cdfb4100f11}


This function performs the core of the S\-H\-A-\/224 hash algorithm; it processes a block of 64 bytes. 


\begin{DoxyParams}{Parameters}
{\em sp} & The hash function's parameter block. \\
\hline
\end{DoxyParams}
\hypertarget{sha224_8h_af0b8d4bdd5bd80e7147414b11b29b1a1}{\index{sha224.\-h@{sha224.\-h}!sha224\-Reset@{sha224\-Reset}}
\index{sha224\-Reset@{sha224\-Reset}!sha224.h@{sha224.\-h}}
\subsubsection[{sha224\-Reset}]{\setlength{\rightskip}{0pt plus 5cm}int sha224\-Reset (
\begin{DoxyParamCaption}
\item[{{\bf sha224\-Param} $\ast$}]{sp}
\end{DoxyParamCaption}
)}}\label{sha224_8h_af0b8d4bdd5bd80e7147414b11b29b1a1}


This function resets the parameter block so that it's ready for a new hash. 


\begin{DoxyParams}{Parameters}
{\em sp} & The hash function's parameter block. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 0} & on success. \\
\hline
\end{DoxyRetVals}
\hypertarget{sha224_8h_ab812639b90f040f25bb4c04e1d6094dd}{\index{sha224.\-h@{sha224.\-h}!sha224\-Update@{sha224\-Update}}
\index{sha224\-Update@{sha224\-Update}!sha224.h@{sha224.\-h}}
\subsubsection[{sha224\-Update}]{\setlength{\rightskip}{0pt plus 5cm}int sha224\-Update (
\begin{DoxyParamCaption}
\item[{{\bf sha224\-Param} $\ast$}]{sp, }
\item[{const {\bf byte} $\ast$}]{data, }
\item[{size\-\_\-t}]{size}
\end{DoxyParamCaption}
)}}\label{sha224_8h_ab812639b90f040f25bb4c04e1d6094dd}


This function should be used to pass successive blocks of data to be hashed. 


\begin{DoxyParams}{Parameters}
{\em sp} & 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{sha224_8h_a4350bd4392eb85e0fa9d1fb9f8bf79db}{\index{sha224.\-h@{sha224.\-h}!sha224@{sha224}}
\index{sha224@{sha224}!sha224.h@{sha224.\-h}}
\subsubsection[{sha224}]{\setlength{\rightskip}{0pt plus 5cm}sha224}}\label{sha224_8h_a4350bd4392eb85e0fa9d1fb9f8bf79db}


Holds the full A\-P\-I description of the S\-H\-A-\/224 algorithm.