\hypertarget{sha1_8cpp}{\section{trunk/bwapi/\-Util/\-Source/\-Util/sha1.cpp \-File \-Reference}
\label{sha1_8cpp}\index{trunk/bwapi/\-Util/\-Source/\-Util/sha1.\-cpp@{trunk/bwapi/\-Util/\-Source/\-Util/sha1.\-cpp}}
}
{\ttfamily \#include \char`\"{}sha1.\-h\char`\"{}}\*
{\ttfamily \#include $<$string.\-h$>$}\*
\-Include dependency graph for sha1.\-cpp\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=258pt]{sha1_8cpp__incl}
\end{center}
\end{figure}
\subsection*{\-Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{namespacesha1}{sha1}
\end{DoxyCompactItemize}
\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{sha1_8cpp_a8d3c3518d793541417a4845125da1ae1}{a}~result\mbox{[}0\mbox{]}
\item 
\#define \hyperlink{sha1_8cpp_ab2d05693952610f937e5acb3c4a8fa1b}{b}~result\mbox{[}1\mbox{]}
\item 
\#define \hyperlink{sha1_8cpp_aafc737ea9ef91f59cf9acd287fb8d085}{c}~result\mbox{[}2\mbox{]}
\item 
\#define \hyperlink{sha1_8cpp_a2530554172d8629149ec56816eeaa947}{d}~result\mbox{[}3\mbox{]}
\item 
\#define \hyperlink{sha1_8cpp_a270b1ecf56619755ce62f6970dfabc91}{e}~result\mbox{[}4\mbox{]}
\item 
\#define \hyperlink{sha1_8cpp_a643474b699b71c9be970d6c42996e64c}{sha1macro}(func, val)
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{namespacesha1_abb69d305f33f32fb4973249c5bf53d4d}{sha1\-::calc} (const void $\ast$src, const \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} bytelength, unsigned char $\ast$hash)
\item 
void \hyperlink{namespacesha1_a202566439d7a3b0898079733b93c72dc}{sha1\-::to\-Hex\-String} (const unsigned char $\ast$hash, char $\ast$hexstring)
\end{DoxyCompactItemize}


\subsection{\-Define \-Documentation}
\hypertarget{sha1_8cpp_a8d3c3518d793541417a4845125da1ae1}{\index{sha1.\-cpp@{sha1.\-cpp}!a@{a}}
\index{a@{a}!sha1.cpp@{sha1.\-cpp}}
\subsubsection[{a}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf a}~result\mbox{[}0\mbox{]}}}\label{sha1_8cpp_a8d3c3518d793541417a4845125da1ae1}
\hypertarget{sha1_8cpp_ab2d05693952610f937e5acb3c4a8fa1b}{\index{sha1.\-cpp@{sha1.\-cpp}!b@{b}}
\index{b@{b}!sha1.cpp@{sha1.\-cpp}}
\subsubsection[{b}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf b}~result\mbox{[}1\mbox{]}}}\label{sha1_8cpp_ab2d05693952610f937e5acb3c4a8fa1b}
\hypertarget{sha1_8cpp_aafc737ea9ef91f59cf9acd287fb8d085}{\index{sha1.\-cpp@{sha1.\-cpp}!c@{c}}
\index{c@{c}!sha1.cpp@{sha1.\-cpp}}
\subsubsection[{c}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf c}~result\mbox{[}2\mbox{]}}}\label{sha1_8cpp_aafc737ea9ef91f59cf9acd287fb8d085}
\hypertarget{sha1_8cpp_a2530554172d8629149ec56816eeaa947}{\index{sha1.\-cpp@{sha1.\-cpp}!d@{d}}
\index{d@{d}!sha1.cpp@{sha1.\-cpp}}
\subsubsection[{d}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf d}~result\mbox{[}3\mbox{]}}}\label{sha1_8cpp_a2530554172d8629149ec56816eeaa947}
\hypertarget{sha1_8cpp_a270b1ecf56619755ce62f6970dfabc91}{\index{sha1.\-cpp@{sha1.\-cpp}!e@{e}}
\index{e@{e}!sha1.cpp@{sha1.\-cpp}}
\subsubsection[{e}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf e}~result\mbox{[}4\mbox{]}}}\label{sha1_8cpp_a270b1ecf56619755ce62f6970dfabc91}
\hypertarget{sha1_8cpp_a643474b699b71c9be970d6c42996e64c}{\index{sha1.\-cpp@{sha1.\-cpp}!sha1macro@{sha1macro}}
\index{sha1macro@{sha1macro}!sha1.cpp@{sha1.\-cpp}}
\subsubsection[{sha1macro}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf sha1macro}(
\begin{DoxyParamCaption}
\item[{}]{func, }
\item[{}]{val}
\end{DoxyParamCaption}
)}}\label{sha1_8cpp_a643474b699b71c9be970d6c42996e64c}
{\bfseries \-Value\-:}
\begin{DoxyCode}
{const unsigned int t = rol(a, 5)+(func)+e+val+w[j]; \
                                e = d; d = c; \
                                c = rol(b, 30); \
                                b = a; a = t;}
\end{DoxyCode}
