diff options
Diffstat (limited to 'doc/html/crypto_8php.html')
-rw-r--r-- | doc/html/crypto_8php.html | 708 |
1 files changed, 708 insertions, 0 deletions
diff --git a/doc/html/crypto_8php.html b/doc/html/crypto_8php.html new file mode 100644 index 000000000..afa019568 --- /dev/null +++ b/doc/html/crypto_8php.html @@ -0,0 +1,708 @@ +<!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.3.1"/> +<title>The Red Project: include/crypto.php 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 id="projectlogo"><img alt="Logo" src="fred-48.png"/></td> + <td style="padding-left: 0.5em;"> + <div id="projectname">The Red Project + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.3.1 --> +<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 Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</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 List</span></a></li> + <li><a href="globals.html"><span>File Members</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('crypto_8php.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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Pages</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.php File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> +Functions</h2></td></tr> +<tr class="memitem:a920e5f222d0020f47556033d8b2b6552"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a920e5f222d0020f47556033d8b2b6552">rsa_sign</a> ($data, $key, $alg= 'sha256')</td></tr> +<tr class="separator:a920e5f222d0020f47556033d8b2b6552"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ab4f21d8f6b8ece0915e7c8bb73379f96"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#ab4f21d8f6b8ece0915e7c8bb73379f96">rsa_verify</a> ($data, $sig, $key, $alg= 'sha256')</td></tr> +<tr class="separator:ab4f21d8f6b8ece0915e7c8bb73379f96"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a630e1574554f34e7c38511585d9e71a2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a630e1574554f34e7c38511585d9e71a2">DerToPem</a> ($Der, $Private=false)</td></tr> +<tr class="separator:a630e1574554f34e7c38511585d9e71a2"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ae5af17db1cb5d7c91d486e1264079839"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#ae5af17db1cb5d7c91d486e1264079839">DerToRsa</a> ($Der)</td></tr> +<tr class="separator:ae5af17db1cb5d7c91d486e1264079839"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a0e941b6b18ff895d1a2448741abf2ef2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a0e941b6b18ff895d1a2448741abf2ef2">pkcs8_encode</a> ($Modulus, $PublicExponent)</td></tr> +<tr class="separator:a0e941b6b18ff895d1a2448741abf2ef2"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a890b443f80f0968fb9eabd93fc99dbb5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a890b443f80f0968fb9eabd93fc99dbb5">pkcs1_encode</a> ($Modulus, $PublicExponent)</td></tr> +<tr class="separator:a890b443f80f0968fb9eabd93fc99dbb5"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:af8bbdeaf4abed7b40365d301e6013c85"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#af8bbdeaf4abed7b40365d301e6013c85">metopem</a> ($m, $e)</td></tr> +<tr class="separator:af8bbdeaf4abed7b40365d301e6013c85"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a2a3fae7caca27f86d158eeaf69b6f287"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a2a3fae7caca27f86d158eeaf69b6f287">pubrsatome</a> ($key, &$m, &$e)</td></tr> +<tr class="separator:a2a3fae7caca27f86d158eeaf69b6f287"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a7f7e650aaeaa3832580a73eb00966b26"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a7f7e650aaeaa3832580a73eb00966b26">rsatopem</a> ($key)</td></tr> +<tr class="separator:a7f7e650aaeaa3832580a73eb00966b26"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a35bc357c93f4ddc67ef377620b0349e8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a35bc357c93f4ddc67ef377620b0349e8">pemtorsa</a> ($key)</td></tr> +<tr class="separator:a35bc357c93f4ddc67ef377620b0349e8"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a798368843cdd9bb08386b48e53e29e8c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a798368843cdd9bb08386b48e53e29e8c">pemtome</a> ($key, &$m, &$e)</td></tr> +<tr class="separator:a798368843cdd9bb08386b48e53e29e8c"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a573f02517abe4ac9241268263063b2a0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a573f02517abe4ac9241268263063b2a0">metorsa</a> ($m, $e)</td></tr> +<tr class="separator:a573f02517abe4ac9241268263063b2a0"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a9191447cc46f0b4eaba3273e313994d5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a9191447cc46f0b4eaba3273e313994d5">salmon_key</a> ($pubkey)</td></tr> +<tr class="separator:a9191447cc46f0b4eaba3273e313994d5"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a3398666e184faf8e516c8e5d91de86eb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('aes_decrypt')) <br class="typebreak"/> +<a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('aes_encrypt')) </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a3398666e184faf8e516c8e5d91de86eb">pkcs5_pad</a> ($text, $blocksize)</td></tr> +<tr class="separator:a3398666e184faf8e516c8e5d91de86eb"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ac95ac3b1b23b65b04a86613d4206ae85"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#ac95ac3b1b23b65b04a86613d4206ae85">pkcs5_unpad</a> ($text)</td></tr> +<tr class="separator:ac95ac3b1b23b65b04a86613d4206ae85"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a5c61821d205f95f127114159cbffa764"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a5c61821d205f95f127114159cbffa764">AES256CBC_encrypt</a> ($data, $key, $iv)</td></tr> +<tr class="separator:a5c61821d205f95f127114159cbffa764"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ac852ee41392d1358c3a54d54935e0bf9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#ac852ee41392d1358c3a54d54935e0bf9">AES256CBC_decrypt</a> ($data, $key, $iv)</td></tr> +<tr class="separator:ac852ee41392d1358c3a54d54935e0bf9"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a2148d7aac7b30c720f7ebda7e9790286"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#a2148d7aac7b30c720f7ebda7e9790286">aes_encapsulate</a> ($data, $pubkey)</td></tr> +<tr class="separator:a2148d7aac7b30c720f7ebda7e9790286"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aca7c3a574bfb6c6ef1f2403a56823914"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#aca7c3a574bfb6c6ef1f2403a56823914">aes_unencapsulate</a> ($data, $prvkey)</td></tr> +<tr class="separator:aca7c3a574bfb6c6ef1f2403a56823914"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aae0ab70d6a199b29555b1ac3cf250d6a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="crypto_8php.html#aae0ab70d6a199b29555b1ac3cf250d6a">new_keypair</a> ($bits)</td></tr> +<tr class="separator:aae0ab70d6a199b29555b1ac3cf250d6a"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<h2 class="groupheader">Function Documentation</h2> +<a class="anchor" id="ac852ee41392d1358c3a54d54935e0bf9"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">AES256CBC_decrypt </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$iv</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#aca7c3a574bfb6c6ef1f2403a56823914">aes_unencapsulate()</a>.</p> + +</div> +</div> +<a class="anchor" id="a5c61821d205f95f127114159cbffa764"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">AES256CBC_encrypt </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$iv</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a2148d7aac7b30c720f7ebda7e9790286">aes_encapsulate()</a>.</p> + +</div> +</div> +<a class="anchor" id="a2148d7aac7b30c720f7ebda7e9790286"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">aes_encapsulate </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$pubkey</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="post_8php.html#af59e6a1dc22d19d9257b01cd7ccedb75">post_post()</a>, <a class="el" href="zfinger_8php.html#a8139b83a22ef98869adc10aa224027a0">zfinger_init()</a>, <a class="el" href="zot_8php.html#a3862b3161b2c8557dc1a95020179bd81">zot_build_packet()</a>, <a class="el" href="zot_8php.html#a61cdc1ec843663c423ed2d8160ae5aea">zot_fetch()</a>, and <a class="el" href="zot_8php.html#af22a8732e60d30055617a95f77493446">zot_notify()</a>.</p> + +</div> +</div> +<a class="anchor" id="aca7c3a574bfb6c6ef1f2403a56823914"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">aes_unencapsulate </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$prvkey</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="mod_2message_8php.html#a0db7030362a7e9ed9549b341d7b35718">message_post()</a>, <a class="el" href="include_2follow_8php.html#a6553a7650fae55f95660510d90983144">new_contact()</a>, <a class="el" href="post_8php.html#af59e6a1dc22d19d9257b01cd7ccedb75">post_post()</a>, <a class="el" href="probe_8php.html#a1f1db3fa6038e451e737964c94bf5e99">probe_content()</a>, <a class="el" href="zot_8php.html#a22e3f9b97b7969ddbe43ccf0db93a19c">zot_import()</a>, and <a class="el" href="zot_8php.html#a7b23bfb31d4491231e1e73bdc077240d">zot_refresh()</a>.</p> + +</div> +</div> +<a class="anchor" id="a630e1574554f34e7c38511585d9e71a2"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">DerToPem </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$Der</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$Private</em> = <code>false</code> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#af8bbdeaf4abed7b40365d301e6013c85">metopem()</a>.</p> + +</div> +</div> +<a class="anchor" id="ae5af17db1cb5d7c91d486e1264079839"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">DerToRsa </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$Der</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a573f02517abe4ac9241268263063b2a0">metorsa()</a>.</p> + +</div> +</div> +<a class="anchor" id="af8bbdeaf4abed7b40365d301e6013c85"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">metopem </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$m</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$e</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a7f7e650aaeaa3832580a73eb00966b26">rsatopem()</a>.</p> + +</div> +</div> +<a class="anchor" id="a573f02517abe4ac9241268263063b2a0"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">metorsa </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$m</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$e</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a35bc357c93f4ddc67ef377620b0349e8">pemtorsa()</a>.</p> + +</div> +</div> +<a class="anchor" id="aae0ab70d6a199b29555b1ac3cf250d6a"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">new_keypair </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$bits</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="identity_8php.html#a345f4c943d84de502ec6e72d2c813945">create_identity()</a>, and <a class="el" href="hostxrd_8php.html#aa37ffc8e7900bc76c4828bd25916db92">hostxrd_init()</a>.</p> + +</div> +</div> +<a class="anchor" id="a798368843cdd9bb08386b48e53e29e8c"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pemtome </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">& </td> + <td class="paramname"><em>$m</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">& </td> + <td class="paramname"><em>$e</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a35bc357c93f4ddc67ef377620b0349e8">pemtorsa()</a>, and <a class="el" href="crypto_8php.html#a9191447cc46f0b4eaba3273e313994d5">salmon_key()</a>.</p> + +</div> +</div> +<a class="anchor" id="a35bc357c93f4ddc67ef377620b0349e8"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pemtorsa </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +</div> +</div> +<a class="anchor" id="a890b443f80f0968fb9eabd93fc99dbb5"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pkcs1_encode </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$Modulus</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$PublicExponent</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a573f02517abe4ac9241268263063b2a0">metorsa()</a>.</p> + +</div> +</div> +<a class="anchor" id="a3398666e184faf8e516c8e5d91de86eb"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('aes_decrypt')) <a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('aes_encrypt')) pkcs5_pad </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$text</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$blocksize</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a5c61821d205f95f127114159cbffa764">AES256CBC_encrypt()</a>.</p> + +</div> +</div> +<a class="anchor" id="ac95ac3b1b23b65b04a86613d4206ae85"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pkcs5_unpad </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$text</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#ac852ee41392d1358c3a54d54935e0bf9">AES256CBC_decrypt()</a>.</p> + +</div> +</div> +<a class="anchor" id="a0e941b6b18ff895d1a2448741abf2ef2"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pkcs8_encode </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$Modulus</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$PublicExponent</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#af8bbdeaf4abed7b40365d301e6013c85">metopem()</a>.</p> + +</div> +</div> +<a class="anchor" id="a2a3fae7caca27f86d158eeaf69b6f287"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pubrsatome </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">& </td> + <td class="paramname"><em>$m</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">& </td> + <td class="paramname"><em>$e</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="crypto_8php.html#a7f7e650aaeaa3832580a73eb00966b26">rsatopem()</a>.</p> + +</div> +</div> +<a class="anchor" id="a920e5f222d0020f47556033d8b2b6552"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">rsa_sign </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$alg</em> = <code>'sha256'</code> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="identity_8php.html#a345f4c943d84de502ec6e72d2c813945">create_identity()</a>, <a class="el" href="import_8php.html#af17fef0410518f7eac205d0ea416eaa2">import_post()</a>, <a class="el" href="magic_8php.html#acea2cc792849ca2d71d4b689f66518bf">magic_init()</a>, <a class="el" href="zot_8php.html#a3862b3161b2c8557dc1a95020179bd81">zot_build_packet()</a>, <a class="el" href="zot_8php.html#a61cdc1ec843663c423ed2d8160ae5aea">zot_fetch()</a>, <a class="el" href="zot_8php.html#af22a8732e60d30055617a95f77493446">zot_notify()</a>, and <a class="el" href="zperms_8php.html#a2f698dcd51150bda3146425f038da628">zperms_init()</a>.</p> + +</div> +</div> +<a class="anchor" id="ab4f21d8f6b8ece0915e7c8bb73379f96"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">rsa_verify </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$sig</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"> </td> + <td class="paramname"><em>$alg</em> = <code>'sha256'</code> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="zot_8php.html#ab0227978011d8601494a7651fa26acf0">import_xchan()</a>, <a class="el" href="post_8php.html#af59e6a1dc22d19d9257b01cd7ccedb75">post_post()</a>, and <a class="el" href="zfinger_8php.html#a8139b83a22ef98869adc10aa224027a0">zfinger_init()</a>.</p> + +</div> +</div> +<a class="anchor" id="a7f7e650aaeaa3832580a73eb00966b26"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">rsatopem </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$key</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +</div> +</div> +<a class="anchor" id="a9191447cc46f0b4eaba3273e313994d5"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">salmon_key </td> + <td>(</td> + <td class="paramtype"> </td> + <td class="paramname"><em>$pubkey</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Referenced by <a class="el" href="hostxrd_8php.html#aa37ffc8e7900bc76c4828bd25916db92">hostxrd_init()</a>, and <a class="el" href="xrd_8php.html#aee3cf087968e4a0ff3a87de16eb23270">xrd_init()</a>.</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="crypto_8php.html">crypto.php</a></li> + <li class="footer">Generated on Tue Feb 26 2013 15:43:20 for The Red Project by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li> + </ul> +</div> +</body> +</html> |