diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02607.html | 323 |
1 files changed, 323 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02607.html b/docs/doxygen/nel/a02607.html new file mode 100644 index 00000000..74fc55c0 --- /dev/null +++ b/docs/doxygen/nel/a02607.html @@ -0,0 +1,323 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: CHashKey struct Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>CHashKey Struct Reference</h1><code>#include <<a class="el" href="a06367.html">sha1.h</a>></code> +<p> +<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html#CHashKeya0">CHashKey</a> (const std::string &str)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html#CHashKeya1">CHashKey</a> (const unsigned char Message_Digest[20])</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html#CHashKeya2">CHashKey</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html#CHashKeya3">operator==</a> (const <a class="el" href="a02607.html">CHashKey</a> &<a class="el" href="a04223.html#a576">v</a>) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html#CHashKeya4">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &stream)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html#CHashKeya5">toString</a> () const </td></tr> + +<tr><td colspan=2><br><h2>Data Fields</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html#CHashKeyo0">HashKeyString</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="CHashKeya2" doxytag="CHashKey::CHashKey" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CHashKey::CHashKey </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06367.html#l00043">43</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +<div class="fragment"><pre>00043 { } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CHashKeya1" doxytag="CHashKey::CHashKey" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CHashKey::CHashKey </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const unsigned char </td> + <td class="mdname1" valign="top" nowrap> <em>Message_Digest</em>[20] </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06367.html#l00045">45</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +References <a class="el" href="a06367.html#l00109">HashKeyString</a>, and <a class="el" href="a05981.html#l00104">sint</a>. +<p> +<div class="fragment"><pre>00046 { +00047 <a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a> = <span class="stringliteral">""</span>; +00048 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i = 0; i < 20 ; ++i) +00049 { +00050 <a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a> += Message_Digest[i]; +00051 } +00052 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CHashKeya0" doxytag="CHashKey::CHashKey" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CHashKey::CHashKey </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06367.html#l00055">55</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +References <a class="el" href="a06367.html#l00109">HashKeyString</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00056 { +00057 <span class="keywordflow">if</span> (str.size() == 20) +00058 { +00059 <a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a> = str; +00060 } +00061 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (str.size() == 40) +00062 { +00063 <a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a> = <span class="stringliteral">""</span>; +00064 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i = 0; i < str.size(); i+=2) +00065 { +00066 <a class="code" href="a04558.html#a7">uint8</a> val; +00067 <span class="keywordflow">if</span> (isdigit(str[i+0])) +00068 val = str[i+0]-<span class="charliteral">'0'</span>; +00069 <span class="keywordflow">else</span> +00070 val = 10+tolower(str[i+0])-<span class="charliteral">'a'</span>; +00071 val *= 16; +00072 <span class="keywordflow">if</span> (isdigit(str[i+1])) +00073 val += str[i+1]-<span class="charliteral">'0'</span>; +00074 <span class="keywordflow">else</span> +00075 val += 10+tolower(str[i+1])-<span class="charliteral">'a'</span>; +00076 +00077 <a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a> += val; +00078 } +00079 } +00080 <span class="keywordflow">else</span> +00081 { +00082 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"SHA: Bad hash key format"</span>); +00083 } +00084 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="CHashKeya3" doxytag="CHashKey::operator==" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool CHashKey::operator== </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02607.html">CHashKey</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>v</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06367.html#l00103">103</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +References <a class="el" href="a06367.html#l00109">HashKeyString</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00104 { +00105 <span class="keywordflow">return</span> <a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a> == <a class="code" href="a04223.html#a576">v</a>.HashKeyString; +00106 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CHashKeya4" doxytag="CHashKey::serial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CHashKey::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>stream</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06367.html#l00098">98</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +References <a class="el" href="a06367.html#l00109">HashKeyString</a>, and <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +<div class="fragment"><pre>00099 { +00100 stream.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (HashKeyString); +00101 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CHashKeya5" doxytag="CHashKey::toString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string CHashKey::toString </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06367.html#l00087">87</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +References <a class="el" href="a06367.html#l00109">HashKeyString</a>, <a class="el" href="a06229.html#l02652">NLMISC::toString()</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00088 { +00089 std::string str; +00090 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> i = 0; i < <a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a>.size(); i++) +00091 { +00092 str += <a class="code" href="a05378.html#a244">NLMISC::toString</a>(<span class="stringliteral">"%02X"</span>, (<a class="code" href="a04558.html#a7">uint8</a>)(HashKeyString[i])); +00093 } +00094 <span class="keywordflow">return</span> str; +00095 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="CHashKeyo0" doxytag="CHashKey::HashKeyString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string <a class="el" href="a02607.html#CHashKeyo0">CHashKey::HashKeyString</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06367.html#l00109">109</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +Referenced by <a class="el" href="a06367.html#l00045">CHashKey()</a>, <a class="el" href="a06367.html#l00112">operator<()</a>, <a class="el" href="a06367.html#l00103">operator==()</a>, <a class="el" href="a06367.html#l00098">serial()</a>, and <a class="el" href="a06367.html#l00087">toString()</a>. </td> + </tr> +</table> +<hr>The documentation for this struct was generated from the following file:<ul> +<li><a class="el" href="a06367.html">sha1.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:43:53 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |