Html程序  |  176行  |  8.23 KB

<!-- HTML header for doxygen 1.8.10-->
<!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.14"/>
<title>Intel&reg; Enhanced Privacy ID SDK: epid/member/tiny/math/pairing.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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="epidstyle.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="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a 
                            onclick="storeLink('index.html')"
                            id="projectlink" 
                            class="index.html" 
                            href="index.html">Intel&reg; Enhanced Privacy ID SDK</a>
&#160;<span id="projectnumber">6.0.1</span>
</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('member_2tiny_2math_2pairing_8h.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">pairing.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Definition of pairing math.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aba03ba485b970dd2d3f30b1f74f6ed6f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="member_2tiny_2math_2pairing_8h.html#aba03ba485b970dd2d3f30b1f74f6ed6f">PairingInit</a> (<a class="el" href="struct_pairing_state.html">PairingState</a> *state)</td></tr>
<tr class="memdesc:aba03ba485b970dd2d3f30b1f74f6ed6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes pairing environment.  <a href="#aba03ba485b970dd2d3f30b1f74f6ed6f">More...</a><br /></td></tr>
<tr class="separator:aba03ba485b970dd2d3f30b1f74f6ed6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74dabfd47d20d4086a89e1910ca27fe0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="member_2tiny_2math_2pairing_8h.html#a74dabfd47d20d4086a89e1910ca27fe0">PairingCompute</a> (<a class="el" href="struct_fq12_elem.html">Fq12Elem</a> *d, <a class="el" href="struct_ecc_point_fq.html">EccPointFq</a> const *P, <a class="el" href="struct_ecc_point_fq2.html">EccPointFq2</a> const *Q, <a class="el" href="struct_pairing_state.html">PairingState</a> const *state)</td></tr>
<tr class="memdesc:a74dabfd47d20d4086a89e1910ca27fe0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes a pairing according to the Optimal Ate pairing computation.  <a href="#a74dabfd47d20d4086a89e1910ca27fe0">More...</a><br /></td></tr>
<tr class="separator:a74dabfd47d20d4086a89e1910ca27fe0"><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>Definition of pairing math. </p>
<p>Tiny portable implementations of standard library functions.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a74dabfd47d20d4086a89e1910ca27fe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74dabfd47d20d4086a89e1910ca27fe0">&#9670;&nbsp;</a></span>PairingCompute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PairingCompute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_fq12_elem.html">Fq12Elem</a> *&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_ecc_point_fq.html">EccPointFq</a> const *&#160;</td>
          <td class="paramname"><em>P</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_ecc_point_fq2.html">EccPointFq2</a> const *&#160;</td>
          <td class="paramname"><em>Q</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_pairing_state.html">PairingState</a> const *&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes a pairing according to the Optimal Ate pairing computation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">d</td><td>target, an element in GT. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">P</td><td>an element in G1. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">Q</td><td>an element in G2. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">state</td><td>pairing state information. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aba03ba485b970dd2d3f30b1f74f6ed6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba03ba485b970dd2d3f30b1f74f6ed6f">&#9670;&nbsp;</a></span>PairingInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PairingInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_pairing_state.html">PairingState</a> *&#160;</td>
          <td class="paramname"><em>state</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes pairing environment. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">state</td><td>pairing state information. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_12b90d9c027aaf878a834df729679a56.html">epid</a></li><li class="navelem"><a class="el" href="dir_512d3e62841a8535b716ec4cf8b9e950.html">member</a></li><li class="navelem"><a class="el" href="dir_ea12d375fc1eb79df248c0adf953af4f.html">tiny</a></li><li class="navelem"><a class="el" href="dir_5f2fc2cf41db41de2b55e03ffa7a1d16.html">math</a></li><li class="navelem"><a class="el" href="member_2tiny_2math_2pairing_8h.html">pairing.h</a></li>
    <li class="footer">
      &copy; 2016-2017 Intel Corporation
    </li>
  </ul>
</div>
</body>
</html>