netsukuku/df/dee/crypto_8c.html

557 lines
43 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>The Netsukuku Project: src/crypto.c File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">The Netsukuku Project
&#160;<span id="projectnumber">0.0.9</span>
</div>
<div id="projectbrief">An Alternative routing method</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
<li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../files.html"><span>File&#160;List</span></a></li>
<li><a href="../../globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('df/dee/crypto_8c.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">crypto.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;openssl/bio.h&gt;</code><br/>
<code>#include &lt;openssl/evp.h&gt;</code><br/>
<code>#include &lt;openssl/crypto.h&gt;</code><br/>
<code>#include &lt;openssl/md5.h&gt;</code><br/>
<code>#include &lt;openssl/x509.h&gt;</code><br/>
<code>#include &lt;openssl/err.h&gt;</code><br/>
<code>#include &lt;openssl/rand.h&gt;</code><br/>
<code>#include &lt;openssl/rsa.h&gt;</code><br/>
<code>#include &lt;openssl/pem.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="../../da/da0/crypto_8h_source.html">crypto.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="../../d7/d7f/log_8h_source.html">log.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="../../d8/de3/xmalloc_8h_source.html">xmalloc.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for crypto.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/dc2/crypto_8c__incl.png" border="0" usemap="#src_2crypto_8c" alt=""/></div>
<map name="src_2crypto_8c" id="src_2crypto_8c">
<area shape="rect" id="node21" href="../../da/da0/crypto_8h.html" title="crypto.h" alt="" coords="549,83,619,112"/><area shape="rect" id="node33" href="../../d7/d7f/log_8h.html" title="log.h" alt="" coords="999,83,1049,112"/><area shape="rect" id="node37" href="../../d8/de3/xmalloc_8h.html" title="xmalloc.h" alt="" coords="1073,83,1151,112"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a71df7824b72ad8eebb88baa68f633ee2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a71df7824b72ad8eebb88baa68f633ee2">init_crypto</a> (void)</td></tr>
<tr class="separator:a71df7824b72ad8eebb88baa68f633ee2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7374e38adddf8ce3003d7af415f8f87c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a7374e38adddf8ce3003d7af415f8f87c">free_crypto</a> (void)</td></tr>
<tr class="separator:a7374e38adddf8ce3003d7af415f8f87c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95c10cbc9648b4770fb5cb553c3f9b03"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a95c10cbc9648b4770fb5cb553c3f9b03">ssl_strerr</a> (void)</td></tr>
<tr class="separator:a95c10cbc9648b4770fb5cb553c3f9b03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5d06ec90be823dd3a0edbc8be0317a0"><td class="memItemLeft" align="right" valign="top">RSA *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#ab5d06ec90be823dd3a0edbc8be0317a0">genrsa</a> (int key_bits, u_char **pub, u_int *pub_len, u_char **priv, u_int *priv_len)</td></tr>
<tr class="separator:ab5d06ec90be823dd3a0edbc8be0317a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d41a9be93383c2fa34625895e83b028"><td class="memItemLeft" align="right" valign="top">RSA *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a6d41a9be93383c2fa34625895e83b028">get_rsa_pub</a> (const u_char **pub_key, long length)</td></tr>
<tr class="separator:a6d41a9be93383c2fa34625895e83b028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a083ef5b48a25edd59ca31d084819e68c"><td class="memItemLeft" align="right" valign="top">RSA *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a083ef5b48a25edd59ca31d084819e68c">get_rsa_priv</a> (const u_char **priv_key, long length)</td></tr>
<tr class="separator:a083ef5b48a25edd59ca31d084819e68c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8ae48562aa988a87f931029e885aa37"><td class="memItemLeft" align="right" valign="top">u_char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#ae8ae48562aa988a87f931029e885aa37">hash_sha1</a> (u_char *msg, u_int m_len, u_char *hash)</td></tr>
<tr class="separator:ae8ae48562aa988a87f931029e885aa37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a88d82c39856dc9a5785b2270477ace"><td class="memItemLeft" align="right" valign="top">u_char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a2a88d82c39856dc9a5785b2270477ace">hash_md5</a> (u_char *msg, u_int m_len, u_char *hash)</td></tr>
<tr class="separator:a2a88d82c39856dc9a5785b2270477ace"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f27e858e8e263eed9dafecbfc6e0d46"><td class="memItemLeft" align="right" valign="top">u_char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a3f27e858e8e263eed9dafecbfc6e0d46">rsa_sign</a> (u_char *msg, u_int m_len, RSA *priv, u_int *siglen)</td></tr>
<tr class="separator:a3f27e858e8e263eed9dafecbfc6e0d46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1485a2eb818dac9656d344ae00249022"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/crypto_8c.html#a1485a2eb818dac9656d344ae00249022">verify_sign</a> (u_char *msg, u_int m_len, u_char *signature, u_int siglen, RSA *pub)</td></tr>
<tr class="separator:a1485a2eb818dac9656d344ae00249022"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a7374e38adddf8ce3003d7af415f8f87c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void free_crypto </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab5d06ec90be823dd3a0edbc8be0317a0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">RSA* genrsa </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key_bits</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_char **&#160;</td>
<td class="paramname"><em>pub</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int *&#160;</td>
<td class="paramname"><em>pub_len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_char **&#160;</td>
<td class="paramname"><em>priv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int *&#160;</td>
<td class="paramname"><em>priv_len</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_cgraph.png" border="0" usemap="#df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_cgraph" alt=""/></div>
<map name="df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_cgraph" id="df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_cgraph">
<area shape="rect" id="node3" href="../../d7/df8/log_8c.html#a983d6ac9e7105eb38445c20ff5e72135" title="debug" alt="" coords="125,5,181,35"/><area shape="rect" id="node7" href="../../d7/df8/log_8c.html#ac33c8a42a58a6379397850b60be22028" title="error" alt="" coords="129,59,177,88"/><area shape="rect" id="node10" href="../../df/dee/crypto_8c.html#a95c10cbc9648b4770fb5cb553c3f9b03" title="ssl_strerr" alt="" coords="116,112,191,141"/><area shape="rect" id="node5" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de" title="print_log" alt="" coords="241,32,311,61"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_icgraph.png" border="0" usemap="#df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_icgraph" id="df/dee/crypto_8c_ab5d06ec90be823dd3a0edbc8be0317a0_icgraph">
<area shape="rect" id="node3" href="../../d7/d74/andna__cache_8h.html#a251759601e094b59de67ebee59725c4c" title="lcl_new_keyring" alt="" coords="115,5,229,35"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#aa7b53282a673cbc82c998a3cf4e5aff2" title="andna_init" alt="" coords="279,5,359,35"/><area shape="rect" id="node7" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="408,5,515,35"/><area shape="rect" id="node9" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="563,5,613,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a083ef5b48a25edd59ca31d084819e68c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">RSA* get_rsa_priv </td>
<td>(</td>
<td class="paramtype">const u_char **&#160;</td>
<td class="paramname"><em>priv_key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a083ef5b48a25edd59ca31d084819e68c_icgraph.png" border="0" usemap="#df/dee/crypto_8c_a083ef5b48a25edd59ca31d084819e68c_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a083ef5b48a25edd59ca31d084819e68c_icgraph" id="df/dee/crypto_8c_a083ef5b48a25edd59ca31d084819e68c_icgraph">
<area shape="rect" id="node3" href="../../d7/d74/andna__cache_8h.html#a1b05831280109c236a1093b623176022" title="unpack_lcl_keyring" alt="" coords="147,5,280,35"/><area shape="rect" id="node5" href="../../d7/d74/andna__cache_8h.html#a9fa8ccc3bb0953672b2b27b28bf0d723" title="load_lcl_keyring" alt="" coords="328,5,443,35"/><area shape="rect" id="node7" href="../../d5/d05/andna_8h.html#afc0f24a5b798975732d4f238dccc42ef" title="andna_load_caches" alt="" coords="492,5,628,35"/><area shape="rect" id="node9" href="../../d5/d05/andna_8h.html#aa7b53282a673cbc82c998a3cf4e5aff2" title="andna_init" alt="" coords="679,5,759,35"/><area shape="rect" id="node11" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="808,5,915,35"/><area shape="rect" id="node13" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="963,5,1013,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a6d41a9be93383c2fa34625895e83b028"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">RSA* get_rsa_pub </td>
<td>(</td>
<td class="paramtype">const u_char **&#160;</td>
<td class="paramname"><em>pub_key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a6d41a9be93383c2fa34625895e83b028_icgraph.png" border="0" usemap="#df/dee/crypto_8c_a6d41a9be93383c2fa34625895e83b028_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a6d41a9be93383c2fa34625895e83b028_icgraph" id="df/dee/crypto_8c_a6d41a9be93383c2fa34625895e83b028_icgraph">
<area shape="rect" id="node3" href="../../d5/d05/andna_8h.html#a5da3518ba270f03f8d087c3c1cb25115" title="andna_recv_reg_rq" alt="" coords="172,5,303,35"/><area shape="rect" id="node11" href="../../d5/d05/andna_8h.html#aaa787887419437e0bca8efae5cd88aaf" title="andna_recv_check_counter" alt="" coords="147,59,328,88"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#aa7b53282a673cbc82c998a3cf4e5aff2" title="andna_init" alt="" coords="377,32,457,61"/><area shape="rect" id="node7" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="507,32,613,61"/><area shape="rect" id="node9" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="661,32,712,61"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a2a88d82c39856dc9a5785b2270477ace"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u_char* hash_md5 </td>
<td>(</td>
<td class="paramtype">u_char *&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int&#160;</td>
<td class="paramname"><em>m_len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_char *&#160;</td>
<td class="paramname"><em>hash</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a2a88d82c39856dc9a5785b2270477ace_icgraph.png" border="0" usemap="#df/dee/crypto_8c_a2a88d82c39856dc9a5785b2270477ace_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a2a88d82c39856dc9a5785b2270477ace_icgraph" id="df/dee/crypto_8c_a2a88d82c39856dc9a5785b2270477ace_icgraph">
<area shape="rect" id="node3" href="../../d4/d18/andna_8c.html#a891984b6fe0f589d0cbe51273e3c42b7" title="andna_hash" alt="" coords="167,111,257,140"/><area shape="rect" id="node57" href="../../d5/d05/andna_8h.html#aa3b87d2348a3a7cdb6e2d95c66fdfb6f" title="andna_resolve_hname" alt="" coords="136,487,288,516"/><area shape="rect" id="node65" href="../../d2/de6/andna__cache_8c.html#a226c42d0738c6be39991cac7dbce175b" title="andna_32bit_hash" alt="" coords="149,427,275,456"/><area shape="rect" id="node78" href="../../d7/d74/andna__cache_8h.html#ae30431f21d44516e3c006ae361578d9c" title="load_snsd" alt="" coords="581,267,661,296"/><area shape="rect" id="node100" href="../../d9/d88/ntkresolv_8h.html#a4aa3684915c89eb76081f2e5e6c6f336" title="opts_set_question" alt="" coords="148,553,276,583"/><area shape="rect" id="node102" href="../../d9/d88/ntkresolv_8h.html#af8db000da6d4c6009e8af4b927f818a5" title="opts_finish" alt="" coords="371,637,456,667"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#a47f535bfa2b7403ded9d8b4a7c19d27d" title="andna_register_hname" alt="" coords="337,136,489,165"/><area shape="rect" id="node47" href="../../d5/d05/andna_8h.html#a278c2e4e68b10357f59f3edbaa9bf7de" title="andna_check_counter" alt="" coords="547,5,696,35"/><area shape="rect" id="node54" href="../../d5/d05/andna_8h.html#aaa787887419437e0bca8efae5cd88aaf" title="andna_recv_check_counter" alt="" coords="752,59,933,88"/><area shape="rect" id="node7" href="../../d4/d18/andna_8c.html#abac5b6d2df2140ec17abb62d9ce8cbbc" title="andna_min_update_retry" alt="" coords="540,213,703,243"/><area shape="rect" id="node9" href="../../d5/d05/andna_8h.html#a22751676386bfd17dd30f88528ee0f12" title="andna_update_hnames" alt="" coords="765,213,920,243"/><area shape="rect" id="node42" href="../../d5/d05/andna_8h.html#ac5e2e3a07b8b99edbc9501aae6e5b1ff" title="andna_maintain_hnames\l_active" alt="" coords="1196,107,1361,154"/><area shape="rect" id="node11" href="../../d4/d3b/netsukuku_8c.html#a678f7ec6e159e6bee076921c8d709847" title="reload_hostname_thread" alt="" coords="983,267,1145,296"/><area shape="rect" id="node17" href="../../d2/d42/rehook_8h.html#ae6ae2d4b03e5a8cc1891cbf553ebb913" title="rehook" alt="" coords="1033,213,1095,243"/><area shape="rect" id="node13" href="../../d4/d3b/netsukuku_8c.html#a207b25374e65f083a666cdfaca49bb99" title="sighup_handler" alt="" coords="1411,267,1520,296"/><area shape="rect" id="node15" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="2405,84,2456,113"/><area shape="rect" id="node19" href="../../df/dba/rehook_8c.html#aeb32663f186f840edf41bb43d1f82459" title="new_rehook_thread" alt="" coords="1212,213,1345,243"/><area shape="rect" id="node21" href="../../d2/d42/rehook_8h.html#acd9ab3b97734c31a06ae3dcf475a1b39" title="new_rehook" alt="" coords="1420,213,1511,243"/><area shape="rect" id="node23" href="../../d6/d62/tracer_8c.html#a8bab813b90267e0e25592821248d7158" title="tracer_check_node_collision" alt="" coords="1568,213,1755,243"/><area shape="rect" id="node25" href="../../da/db5/tracer_8h.html#a12c03f2eaa97e2c644dcdd892e0fa758" title="tracer_store_pkt" alt="" coords="1804,161,1919,191"/><area shape="rect" id="node27" href="../../d8/da0/qspn_8h.html#ab70abece99b6ae77b078ec100c35912a" title="qspn_close" alt="" coords="1980,161,2068,191"/><area shape="rect" id="node34" href="../../d8/da0/qspn_8h.html#a6df687dad6a64c0807fbfc105cf244c5" title="qspn_open" alt="" coords="1981,215,2067,244"/><area shape="rect" id="node37" href="../../da/db5/tracer_8h.html#ab53c5821a9d4215b3d5ba16fd95e8297" title="tracer_pkt_recv" alt="" coords="1968,108,2080,137"/><area shape="rect" id="node29" href="../../d8/da0/qspn_8h.html#a6c5c062e24ec079201aea53899af3e28" title="qspn_init" alt="" coords="2128,136,2203,165"/><area shape="rect" id="node31" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="2251,84,2357,113"/><area shape="rect" id="node44" href="../../d5/d05/andna_8h.html#ae8a0abdfc416da1b04dafe5c30fb14c3" title="andna_main" alt=
</div>
</p>
</div>
</div>
<a class="anchor" id="ae8ae48562aa988a87f931029e885aa37"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u_char* hash_sha1 </td>
<td>(</td>
<td class="paramtype">u_char *&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int&#160;</td>
<td class="paramname"><em>m_len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_char *&#160;</td>
<td class="paramname"><em>hash</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_ae8ae48562aa988a87f931029e885aa37_icgraph.png" border="0" usemap="#df/dee/crypto_8c_ae8ae48562aa988a87f931029e885aa37_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_ae8ae48562aa988a87f931029e885aa37_icgraph" id="df/dee/crypto_8c_ae8ae48562aa988a87f931029e885aa37_icgraph">
<area shape="rect" id="node3" href="../../da/da0/crypto_8h.html#a3f27e858e8e263eed9dafecbfc6e0d46" title="rsa_sign" alt="" coords="147,113,216,143"/><area shape="rect" id="node47" href="../../da/da0/crypto_8h.html#a1485a2eb818dac9656d344ae00249022" title="verify_sign" alt="" coords="139,59,224,88"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#a47f535bfa2b7403ded9d8b4a7c19d27d" title="andna_register_hname" alt="" coords="287,115,439,144"/><area shape="rect" id="node7" href="../../d4/d18/andna_8c.html#abac5b6d2df2140ec17abb62d9ce8cbbc" title="andna_min_update_retry" alt="" coords="503,167,665,196"/><area shape="rect" id="node9" href="../../d5/d05/andna_8h.html#a22751676386bfd17dd30f88528ee0f12" title="andna_update_hnames" alt="" coords="721,167,876,196"/><area shape="rect" id="node42" href="../../d5/d05/andna_8h.html#ac5e2e3a07b8b99edbc9501aae6e5b1ff" title="andna_maintain_hnames\l_active" alt="" coords="716,55,881,102"/><area shape="rect" id="node11" href="../../d4/d3b/netsukuku_8c.html#a678f7ec6e159e6bee076921c8d709847" title="reload_hostname_thread" alt="" coords="932,243,1095,272"/><area shape="rect" id="node17" href="../../d2/d42/rehook_8h.html#ae6ae2d4b03e5a8cc1891cbf553ebb913" title="rehook" alt="" coords="983,167,1044,196"/><area shape="rect" id="node13" href="../../d4/d3b/netsukuku_8c.html#a207b25374e65f083a666cdfaca49bb99" title="sighup_handler" alt="" coords="1328,260,1437,289"/><area shape="rect" id="node15" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="2323,120,2373,149"/><area shape="rect" id="node19" href="../../df/dba/rehook_8c.html#aeb32663f186f840edf41bb43d1f82459" title="new_rehook_thread" alt="" coords="1145,167,1279,196"/><area shape="rect" id="node21" href="../../d2/d42/rehook_8h.html#acd9ab3b97734c31a06ae3dcf475a1b39" title="new_rehook" alt="" coords="1337,167,1428,196"/><area shape="rect" id="node23" href="../../d6/d62/tracer_8c.html#a8bab813b90267e0e25592821248d7158" title="tracer_check_node_collision" alt="" coords="1485,137,1672,167"/><area shape="rect" id="node25" href="../../da/db5/tracer_8h.html#a12c03f2eaa97e2c644dcdd892e0fa758" title="tracer_store_pkt" alt="" coords="1721,160,1836,189"/><area shape="rect" id="node27" href="../../d8/da0/qspn_8h.html#ab70abece99b6ae77b078ec100c35912a" title="qspn_close" alt="" coords="1897,213,1985,243"/><area shape="rect" id="node34" href="../../d8/da0/qspn_8h.html#a6df687dad6a64c0807fbfc105cf244c5" title="qspn_open" alt="" coords="1899,107,1984,136"/><area shape="rect" id="node37" href="../../da/db5/tracer_8h.html#ab53c5821a9d4215b3d5ba16fd95e8297" title="tracer_pkt_recv" alt="" coords="1885,160,1997,189"/><area shape="rect" id="node29" href="../../d8/da0/qspn_8h.html#a6c5c062e24ec079201aea53899af3e28" title="qspn_init" alt="" coords="2045,147,2120,176"/><area shape="rect" id="node31" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="2168,120,2275,149"/><area shape="rect" id="node44" href="../../d5/d05/andna_8h.html#ae8a0abdfc416da1b04dafe5c30fb14c3" title="andna_main" alt="" coords="1167,57,1257,87"/><area shape="rect" id="node49" href="../../d5/d05/andna_8h.html#a5da3518ba270f03f8d087c3c1cb25115" title="andna_recv_reg_rq" alt="" coords="297,59,428,88"/><area shape="rect" id="node54" href="../../d5/d05/andna_8h.html#aaa787887419437e0bca8efae5cd88aaf" title="andna_recv_check_counter" alt="" coords="272,5,453,35"/><area shape="rect" id="node51" href="../../d5/d05/andna_8h.html#aa7b53282a673cbc82c998a3cf4e5aff2" title="andna_init" alt="" coords="544,5,624,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a71df7824b72ad8eebb88baa68f633ee2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void init_crypto </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a3f27e858e8e263eed9dafecbfc6e0d46"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u_char* rsa_sign </td>
<td>(</td>
<td class="paramtype">u_char *&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int&#160;</td>
<td class="paramname"><em>m_len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">RSA *&#160;</td>
<td class="paramname"><em>priv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int *&#160;</td>
<td class="paramname"><em>siglen</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_cgraph.png" border="0" usemap="#df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_cgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_cgraph" id="df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_cgraph">
<area shape="rect" id="node3" href="../../d2/dab/xmalloc_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="135,32,201,61"/><area shape="rect" id="node11" href="../../df/dee/crypto_8c.html#ae8ae48562aa988a87f931029e885aa37" title="hash_sha1" alt="" coords="125,85,211,115"/><area shape="rect" id="node5" href="../../d7/df8/log_8c.html#a677da14e8c4326bde43622f233f1ead3" title="fatal" alt="" coords="260,32,305,61"/><area shape="rect" id="node7" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de" title="print_log" alt="" coords="371,5,440,35"/><area shape="rect" id="node9" href="../../d7/df8/log_8c.html#a32f684e2d9d47ca24806b88e58498931" title="close_log_file" alt="" coords="355,59,456,88"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_icgraph.png" border="0" usemap="#df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_icgraph" id="df/dee/crypto_8c_a3f27e858e8e263eed9dafecbfc6e0d46_icgraph">
<area shape="rect" id="node3" href="../../d5/d05/andna_8h.html#a47f535bfa2b7403ded9d8b4a7c19d27d" title="andna_register_hname" alt="" coords="127,156,279,185"/><area shape="rect" id="node5" href="../../d4/d18/andna_8c.html#abac5b6d2df2140ec17abb62d9ce8cbbc" title="andna_min_update_retry" alt="" coords="329,104,492,133"/><area shape="rect" id="node7" href="../../d5/d05/andna_8h.html#a22751676386bfd17dd30f88528ee0f12" title="andna_update_hnames" alt="" coords="548,104,703,133"/><area shape="rect" id="node40" href="../../d5/d05/andna_8h.html#ac5e2e3a07b8b99edbc9501aae6e5b1ff" title="andna_maintain_hnames\l_active" alt="" coords="543,199,708,246"/><area shape="rect" id="node9" href="../../d4/d3b/netsukuku_8c.html#a678f7ec6e159e6bee076921c8d709847" title="reload_hostname_thread" alt="" coords="759,25,921,55"/><area shape="rect" id="node15" href="../../d2/d42/rehook_8h.html#ae6ae2d4b03e5a8cc1891cbf553ebb913" title="rehook" alt="" coords="809,104,871,133"/><area shape="rect" id="node11" href="../../d4/d3b/netsukuku_8c.html#a207b25374e65f083a666cdfaca49bb99" title="sighup_handler" alt="" coords="1155,5,1264,35"/><area shape="rect" id="node13" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="2149,107,2200,136"/><area shape="rect" id="node17" href="../../df/dba/rehook_8c.html#aeb32663f186f840edf41bb43d1f82459" title="new_rehook_thread" alt="" coords="972,104,1105,133"/><area shape="rect" id="node19" href="../../d2/d42/rehook_8h.html#acd9ab3b97734c31a06ae3dcf475a1b39" title="new_rehook" alt="" coords="1164,104,1255,133"/><area shape="rect" id="node21" href="../../d6/d62/tracer_8c.html#a8bab813b90267e0e25592821248d7158" title="tracer_check_node_collision" alt="" coords="1312,55,1499,84"/><area shape="rect" id="node23" href="../../da/db5/tracer_8h.html#a12c03f2eaa97e2c644dcdd892e0fa758" title="tracer_store_pkt" alt="" coords="1548,107,1663,136"/><area shape="rect" id="node25" href="../../d8/da0/qspn_8h.html#ab70abece99b6ae77b078ec100c35912a" title="qspn_close" alt="" coords="1724,53,1812,83"/><area shape="rect" id="node32" href="../../d8/da0/qspn_8h.html#a6df687dad6a64c0807fbfc105cf244c5" title="qspn_open" alt="" coords="1725,107,1811,136"/><area shape="rect" id="node35" href="../../da/db5/tracer_8h.html#ab53c5821a9d4215b3d5ba16fd95e8297" title="tracer_pkt_recv" alt="" coords="1712,160,1824,189"/><area shape="rect" id="node27" href="../../d8/da0/qspn_8h.html#a6c5c062e24ec079201aea53899af3e28" title="qspn_init" alt="" coords="1872,107,1947,136"/><area shape="rect" id="node29" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="1995,107,2101,136"/><area shape="rect" id="node42" href="../../d5/d05/andna_8h.html#ae8a0abdfc416da1b04dafe5c30fb14c3" title="andna_main" alt="" coords="993,212,1084,241"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a95c10cbc9648b4770fb5cb553c3f9b03"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* ssl_strerr </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a95c10cbc9648b4770fb5cb553c3f9b03_icgraph.png" border="0" usemap="#df/dee/crypto_8c_a95c10cbc9648b4770fb5cb553c3f9b03_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a95c10cbc9648b4770fb5cb553c3f9b03_icgraph" id="df/dee/crypto_8c_a95c10cbc9648b4770fb5cb553c3f9b03_icgraph">
<area shape="rect" id="node3" href="../../d7/d74/andna__cache_8h.html#a1b05831280109c236a1093b623176022" title="unpack_lcl_keyring" alt="" coords="131,7,264,36"/><area shape="rect" id="node15" href="../../da/da0/crypto_8h.html#ab5d06ec90be823dd3a0edbc8be0317a0" title="genrsa" alt="" coords="339,59,400,88"/><area shape="rect" id="node5" href="../../d7/d74/andna__cache_8h.html#a9fa8ccc3bb0953672b2b27b28bf0d723" title="load_lcl_keyring" alt="" coords="312,5,427,35"/><area shape="rect" id="node7" href="../../d5/d05/andna_8h.html#afc0f24a5b798975732d4f238dccc42ef" title="andna_load_caches" alt="" coords="476,5,612,35"/><area shape="rect" id="node9" href="../../d5/d05/andna_8h.html#aa7b53282a673cbc82c998a3cf4e5aff2" title="andna_init" alt="" coords="663,32,743,61"/><area shape="rect" id="node11" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="792,32,899,61"/><area shape="rect" id="node13" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="947,32,997,61"/><area shape="rect" id="node17" href="../../d7/d74/andna__cache_8h.html#a251759601e094b59de67ebee59725c4c" title="lcl_new_keyring" alt="" coords="487,59,601,88"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a1485a2eb818dac9656d344ae00249022"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int verify_sign </td>
<td>(</td>
<td class="paramtype">u_char *&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int&#160;</td>
<td class="paramname"><em>m_len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_char *&#160;</td>
<td class="paramname"><em>signature</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u_int&#160;</td>
<td class="paramname"><em>siglen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">RSA *&#160;</td>
<td class="paramname"><em>pub</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_cgraph.png" border="0" usemap="#df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_cgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_cgraph" id="df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_cgraph">
<area shape="rect" id="node3" href="../../df/dee/crypto_8c.html#ae8ae48562aa988a87f931029e885aa37" title="hash_sha1" alt="" coords="139,5,224,35"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_icgraph.png" border="0" usemap="#df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_icgraph" alt=""/></div>
<map name="df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_icgraph" id="df/dee/crypto_8c_a1485a2eb818dac9656d344ae00249022_icgraph">
<area shape="rect" id="node3" href="../../d5/d05/andna_8h.html#a5da3518ba270f03f8d087c3c1cb25115" title="andna_recv_reg_rq" alt="" coords="164,5,295,35"/><area shape="rect" id="node11" href="../../d5/d05/andna_8h.html#aaa787887419437e0bca8efae5cd88aaf" title="andna_recv_check_counter" alt="" coords="139,59,320,88"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#aa7b53282a673cbc82c998a3cf4e5aff2" title="andna_init" alt="" coords="369,32,449,61"/><area shape="rect" id="node7" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="499,32,605,61"/><area shape="rect" id="node9" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="653,32,704,61"/></map>
</div>
</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../df/dee/crypto_8c.html">crypto.c</a></li>
<li class="footer">Generated on Wed Feb 19 2014 14:19:10 for The Netsukuku Project by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>