diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a04944.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a04944.html | 192 |
1 files changed, 192 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a04944.html b/docs/doxygen/nel/a04944.html new file mode 100644 index 00000000..cbc39c84 --- /dev/null +++ b/docs/doxygen/nel/a04944.html @@ -0,0 +1,192 @@ +<!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: sha1.h File 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>sha1.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> +This is the header file for code which implements the Secure Hashing Algorithm 1 as defined in FIPS PUB 180-1 published April 17, 1995.<p> +Many of the variable names in this code, especially the single character names, were used because those were the names used in the publication.<p> +<dl compact><dt><b>Id</b></dt><dd><a class="el" href="a04944.html">sha1.h</a>,v 1.4 2003/10/20 16:10:17 lecroart Exp </dd></dl> + +<p> +Definition in file <a class="el" href="a06367.html">sha1.h</a>. +<p> +<code>#include <string></code><br> +<code>#include "<a class="el" href="a05587.html">nel/misc/common.h</a>"</code><br> +<code>#include "<a class="el" href="a06462.html">nel/misc/stream.h</a>"</code><br> + +<p> +<a href="a06367.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Data Structures</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="a02607.html">CHashKey</a></td></tr> + +<tr><td colspan=2><br><h2>Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02607.html">CHashKey</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a04944.html#a2">getSHA1</a> (const <a class="el" href="a04558.html#a7">uint8</a> *<a class="el" href="a04223.html#a589">buffer</a>, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02607.html">CHashKey</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a04944.html#a1">getSHA1</a> (const std::string &<a class="el" href="a04560.html#a1">filename</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a04944.html#a0">operator<</a> (const struct <a class="el" href="a02607.html">CHashKey</a> &a, const struct <a class="el" href="a02607.html">CHashKey</a> &b)</td></tr> + +</table> +<hr><h2>Function Documentation</h2> +<a class="anchor" name="a2" doxytag="sha1.h::getSHA1" ></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"> <a class="el" href="a02607.html">CHashKey</a> getSHA1 </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a04558.html#a7">uint8</a> * </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>size</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></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="a06366.html#l00139">139</a> of file <a class="el" href="a06366.html">sha1.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a06366.html#l00357">SHA1Input()</a>, <a class="el" href="a06366.html#l00257">SHA1Reset()</a>, <a class="el" href="a06366.html#l00299">SHA1Result()</a>, <a class="el" href="a05646.html#l00645">size</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a06366.html#l00088">uint8_t</a>. +<p> +<div class="fragment"><pre>00140 { +00141 <a class="code" href="a03895.html">SHA1Context</a> sha; +00142 <span class="keywordtype">int</span> err; +00143 <a class="code" href="a04943.html#a3">uint8_t</a> Message_Digest[20]; +00144 +00145 err = <a class="code" href="a04943.html#a12">SHA1Reset</a>(&sha); +00146 <span class="keywordflow">if</span> (err) +00147 { +00148 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"SHA: SHA1Reset Error %d.\n"</span>, err ); +00149 <span class="keywordflow">return</span> <a class="code" href="a02607.html">CHashKey</a>(); +00150 } +00151 +00152 err = <a class="code" href="a04943.html#a13">SHA1Input</a>(&sha, (<span class="keyword">const</span> <a class="code" href="a04943.html#a3">uint8_t</a>*)buffer, size); +00153 <span class="keywordflow">if</span> (err) +00154 { +00155 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"SHA: SHA1Input Error %d.\n"</span>, err); +00156 <span class="keywordflow">return</span> <a class="code" href="a02607.html">CHashKey</a>(); +00157 } +00158 +00159 err = <a class="code" href="a04943.html#a14">SHA1Result</a>(&sha, Message_Digest); +00160 <span class="keywordflow">if</span> (err) +00161 { +00162 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"SHA: SHA1Result Error %d, could not compute message digest.\n"</span>, err ); +00163 <span class="keywordflow">return</span> <a class="code" href="a02607.html">CHashKey</a>(); +00164 } +00165 +00166 <a class="code" href="a02607.html">CHashKey</a> hk (Message_Digest); +00167 <span class="keywordflow">return</span> hk; +00168 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="a1" doxytag="sha1.h::getSHA1" ></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"> <a class="el" href="a02607.html">CHashKey</a> getSHA1 </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>filename</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="a0" doxytag="sha1.h::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 operator< </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const struct <a class="el" href="a02607.html">CHashKey</a> & </td> + <td class="mdname" nowrap> <em>a</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const struct <a class="el" href="a02607.html">CHashKey</a> & </td> + <td class="mdname" nowrap> <em>b</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><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#l00112">112</a> of file <a class="el" href="a06367.html">sha1.h</a>. +<p> +References <a class="el" href="a06367.html#l00109">CHashKey::HashKeyString</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00113 { +00114 <span class="keywordflow">return</span> a.<a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a><b.<a class="code" href="a02607.html#CHashKeyo0">HashKeyString</a>; +00115 } +</pre></div> </td> + </tr> +</table> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:43:17 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> |