Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > d1d38291248b5ff58339d3d2ddb22ecd > files > 353

lib64beecrypt-devel-4.2.1-13.mga4.x86_64.rpm

<!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.5"/>
<title>BeeCrypt: include/beecrypt/dhies.h 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="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">BeeCrypt
   &#160;<span id="projectnumber">4.2.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</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>
    </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 id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_7519372152c32ce484a8cde0fb6b8cd0.html">beecrypt</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">dhies.h File Reference<div class="ingroups"><a class="el" href="group__DL__m.html">Discrete Logarithm Primitives</a> &#124; <a class="el" href="group__DL__dh__m.html">Discrete Logarithm Primitives: Diffie-Hellman</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>DHIES (formerly known as DHAES or DHES) encryption scheme.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="beecrypt_8h_source.html">beecrypt/beecrypt.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="dldp_8h_source.html">beecrypt/dldp.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for dhies.h:</div>
<div class="dyncontent">
<div class="center"><img src="dhies_8h__incl.png" border="0" usemap="#include_2beecrypt_2dhies_8h" alt=""/></div>
<map name="include_2beecrypt_2dhies_8h" id="include_2beecrypt_2dhies_8h">
<area shape="rect" id="node2" href="beecrypt_8h.html" title="BeeCrypt API, headers. " alt="" coords="491,229,628,256"/><area shape="rect" id="node20" href="dldp_8h.html" title="Discrete Logarithm domain parameters, headers. " alt="" coords="606,80,716,107"/><area shape="rect" id="node3" href="api_8h.html" title="BeeCrypt API, portability headers. " alt="" coords="444,453,548,480"/><area shape="rect" id="node15" href="memchunk_8h.html" title="beecrypt/memchunk.h" alt="" coords="421,304,571,331"/><area shape="rect" id="node16" href="mpnumber_8h.html" title="Multi&#45;precision numbers, headers. " alt="" coords="595,304,743,331"/><area shape="rect" id="node4" href="gnu_8h.html" title="beecrypt/gnu.h" alt="" coords="442,528,549,555"/><area shape="rect" id="node17" href="mp_8h.html" title="Multi&#45;precision integer routines. " alt="" coords="589,379,693,405"/><area shape="rect" id="node18" href="mpopt_8h.html" title="Multi&#45;precision integer optimization definitions. " alt="" coords="580,453,703,480"/><area shape="rect" id="node21" href="mpbarrett_8h.html" title="Multi&#45;precision integer routines using Barrett modular reduction, headers. " alt="" coords="598,155,740,181"/></map>
</div>
</div>
<p><a href="dhies_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdhies__pParameters.html">dhies_pParameters</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdhies__pContext.html">dhies_pContext</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a28cc2c3cfccc99fee986772f189a4aaf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dhies_8h.html#a28cc2c3cfccc99fee986772f189a4aaf">dhies_pUsable</a> (const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *)</td></tr>
<tr class="separator:a28cc2c3cfccc99fee986772f189a4aaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80c7fc4283f3f3c9d9315deec3a6e3af"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dhies_8h.html#a80c7fc4283f3f3c9d9315deec3a6e3af">dhies_pContextInit</a> (<a class="el" href="structdhies__pContext.html">dhies_pContext</a> *, const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *)</td></tr>
<tr class="separator:a80c7fc4283f3f3c9d9315deec3a6e3af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67d0f4f538fc04834ee5ed36b699d2df"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dhies_8h.html#a67d0f4f538fc04834ee5ed36b699d2df">dhies_pContextInitDecrypt</a> (<a class="el" href="structdhies__pContext.html">dhies_pContext</a> *, const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *, const <a class="el" href="structmpnumber.html">mpnumber</a> *)</td></tr>
<tr class="separator:a67d0f4f538fc04834ee5ed36b699d2df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a897bef73ab35ca2aa56e1b168fdadded"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dhies_8h.html#a897bef73ab35ca2aa56e1b168fdadded">dhies_pContextInitEncrypt</a> (<a class="el" href="structdhies__pContext.html">dhies_pContext</a> *, const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *, const <a class="el" href="structmpnumber.html">mpnumber</a> *)</td></tr>
<tr class="separator:a897bef73ab35ca2aa56e1b168fdadded"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a812329806f62ee9c8d1ae3a4d77a62cd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dhies_8h.html#a812329806f62ee9c8d1ae3a4d77a62cd">dhies_pContextFree</a> (<a class="el" href="structdhies__pContext.html">dhies_pContext</a> *)</td></tr>
<tr class="separator:a812329806f62ee9c8d1ae3a4d77a62cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4c99c0674cffed68b9ae304a60f3e36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmemchunk.html">memchunk</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dhies_8h.html#ae4c99c0674cffed68b9ae304a60f3e36">dhies_pContextEncrypt</a> (<a class="el" href="structdhies__pContext.html">dhies_pContext</a> *, <a class="el" href="structmpnumber.html">mpnumber</a> *, <a class="el" href="structmpnumber.html">mpnumber</a> *, const <a class="el" href="structmemchunk.html">memchunk</a> *, <a class="el" href="structrandomGeneratorContext.html">randomGeneratorContext</a> *)</td></tr>
<tr class="separator:ae4c99c0674cffed68b9ae304a60f3e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c56de01d62afa426ed65216e52e4f95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmemchunk.html">memchunk</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dhies_8h.html#a7c56de01d62afa426ed65216e52e4f95">dhies_pContextDecrypt</a> (<a class="el" href="structdhies__pContext.html">dhies_pContext</a> *, const <a class="el" href="structmpnumber.html">mpnumber</a> *, const <a class="el" href="structmpnumber.html">mpnumber</a> *, const <a class="el" href="structmemchunk.html">memchunk</a> *)</td></tr>
<tr class="separator:a7c56de01d62afa426ed65216e52e4f95"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>DHIES (formerly known as DHAES or DHES) encryption scheme. </p>
<p>This code implements the encryption scheme from the paper:</p>
<p>"DHIES: An Encryption Scheme Based on the Diffie-Hellman Problem" Michel Abdalla, Mihir Bellare, Phillip Rogaway September 18, 2001</p>
<dl class="section author"><dt>Author</dt><dd>Bob Deblier <a href="#" onclick="location.href='mai'+'lto:'+'bob'+'.d'+'ebl'+'ie'+'r@t'+'el'+'ene'+'t.'+'be'; return false;">bob.d<span style="display: none;">.nosp@m.</span>ebli<span style="display: none;">.nosp@m.</span>er@te<span style="display: none;">.nosp@m.</span>lene<span style="display: none;">.nosp@m.</span>t.be</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a7c56de01d62afa426ed65216e52e4f95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structmemchunk.html">memchunk</a>* dhies_pContextDecrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdhies__pContext.html">dhies_pContext</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmpnumber.html">mpnumber</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmpnumber.html">mpnumber</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmemchunk.html">memchunk</a> *&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae4c99c0674cffed68b9ae304a60f3e36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structmemchunk.html">memchunk</a>* dhies_pContextEncrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdhies__pContext.html">dhies_pContext</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmpnumber.html">mpnumber</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmpnumber.html">mpnumber</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmemchunk.html">memchunk</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structrandomGeneratorContext.html">randomGeneratorContext</a> *&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a812329806f62ee9c8d1ae3a4d77a62cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dhies_pContextFree </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdhies__pContext.html">dhies_pContext</a> *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a80c7fc4283f3f3c9d9315deec3a6e3af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dhies_pContextInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdhies__pContext.html">dhies_pContext</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a67d0f4f538fc04834ee5ed36b699d2df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dhies_pContextInitDecrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdhies__pContext.html">dhies_pContext</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmpnumber.html">mpnumber</a> *&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a897bef73ab35ca2aa56e1b168fdadded"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dhies_pContextInitEncrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdhies__pContext.html">dhies_pContext</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmpnumber.html">mpnumber</a> *&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a28cc2c3cfccc99fee986772f189a4aaf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dhies_pUsable </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structdhies__pParameters.html">dhies_pParameters</a> *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Sep 27 2013 02:36:25 for BeeCrypt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>