<!-- 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® Enhanced Privacy ID SDK: epid/member/tiny/math/fq2.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&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® Enhanced Privacy ID SDK</a>  <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&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('fq2_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">fq2.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>Definition of Fq2 math. <a href="#details">More...</a></p> <div class="textblock"><code>#include <stdint.h></code><br /> </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:a6c67364f78e6946a7ad3af2c86baf1a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a6c67364f78e6946a7ad3af2c86baf1a5">Fq2Cp</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *in)</td></tr> <tr class="memdesc:a6c67364f78e6946a7ad3af2c86baf1a5"><td class="mdescLeft"> </td><td class="mdescRight">Copy an element's value. <a href="#a6c67364f78e6946a7ad3af2c86baf1a5">More...</a><br /></td></tr> <tr class="separator:a6c67364f78e6946a7ad3af2c86baf1a5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9165c1d2deef46ceb9af238928b2ec5c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a9165c1d2deef46ceb9af238928b2ec5c">Fq2Set</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, uint32_t in)</td></tr> <tr class="memdesc:a9165c1d2deef46ceb9af238928b2ec5c"><td class="mdescLeft"> </td><td class="mdescRight">Set an element's value. <a href="#a9165c1d2deef46ceb9af238928b2ec5c">More...</a><br /></td></tr> <tr class="separator:a9165c1d2deef46ceb9af238928b2ec5c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a59d3d8212ffd5bf75f9b6fd85b896654"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a59d3d8212ffd5bf75f9b6fd85b896654">Fq2Clear</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result)</td></tr> <tr class="memdesc:a59d3d8212ffd5bf75f9b6fd85b896654"><td class="mdescLeft"> </td><td class="mdescRight">Clear an element's value. <a href="#a59d3d8212ffd5bf75f9b6fd85b896654">More...</a><br /></td></tr> <tr class="separator:a59d3d8212ffd5bf75f9b6fd85b896654"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afcaaf75460f36b85386cd1959b904f57"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#afcaaf75460f36b85386cd1959b904f57">Fq2Add</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *left, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *right)</td></tr> <tr class="memdesc:afcaaf75460f36b85386cd1959b904f57"><td class="mdescLeft"> </td><td class="mdescRight">Add two elements of Fq2. <a href="#afcaaf75460f36b85386cd1959b904f57">More...</a><br /></td></tr> <tr class="separator:afcaaf75460f36b85386cd1959b904f57"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acecbff7a5a8cec15e24c47663957c05a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#acecbff7a5a8cec15e24c47663957c05a">Fq2Exp</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *base, <a class="el" href="struct_very_large_int.html">VeryLargeInt</a> const *exp)</td></tr> <tr class="memdesc:acecbff7a5a8cec15e24c47663957c05a"><td class="mdescLeft"> </td><td class="mdescRight">Exponentiate an element of Fq2 by a large integer. <a href="#acecbff7a5a8cec15e24c47663957c05a">More...</a><br /></td></tr> <tr class="separator:acecbff7a5a8cec15e24c47663957c05a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae27a9400b5d8fbd0b720a449c60ad146"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#ae27a9400b5d8fbd0b720a449c60ad146">Fq2Sub</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *left, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *right)</td></tr> <tr class="memdesc:ae27a9400b5d8fbd0b720a449c60ad146"><td class="mdescLeft"> </td><td class="mdescRight">Subtract two elements of Fq2. <a href="#ae27a9400b5d8fbd0b720a449c60ad146">More...</a><br /></td></tr> <tr class="separator:ae27a9400b5d8fbd0b720a449c60ad146"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a876f870f84cd8ab697176dbb42591565"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a876f870f84cd8ab697176dbb42591565">Fq2Mul</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *left, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *right)</td></tr> <tr class="memdesc:a876f870f84cd8ab697176dbb42591565"><td class="mdescLeft"> </td><td class="mdescRight">Multiply two elements of Fq2. <a href="#a876f870f84cd8ab697176dbb42591565">More...</a><br /></td></tr> <tr class="separator:a876f870f84cd8ab697176dbb42591565"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a756666161516fe541b26a4082f69343d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a756666161516fe541b26a4082f69343d">Fq2Inv</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *in)</td></tr> <tr class="memdesc:a756666161516fe541b26a4082f69343d"><td class="mdescLeft"> </td><td class="mdescRight">Invert an element of Fq2. <a href="#a756666161516fe541b26a4082f69343d">More...</a><br /></td></tr> <tr class="separator:a756666161516fe541b26a4082f69343d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5d523d5d6d4159c71f58945af82a7936"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a5d523d5d6d4159c71f58945af82a7936">Fq2Neg</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *in)</td></tr> <tr class="memdesc:a5d523d5d6d4159c71f58945af82a7936"><td class="mdescLeft"> </td><td class="mdescRight">Negate an element of Fq2. <a href="#a5d523d5d6d4159c71f58945af82a7936">More...</a><br /></td></tr> <tr class="separator:a5d523d5d6d4159c71f58945af82a7936"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adc0d02ddec564ca86b0ef53d7ff79864"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#adc0d02ddec564ca86b0ef53d7ff79864">Fq2Conj</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *in)</td></tr> <tr class="memdesc:adc0d02ddec564ca86b0ef53d7ff79864"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the conjugate of an element of Fq2. <a href="#adc0d02ddec564ca86b0ef53d7ff79864">More...</a><br /></td></tr> <tr class="separator:adc0d02ddec564ca86b0ef53d7ff79864"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3c6583dd519a3dd7efb26db5e9a59036"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a3c6583dd519a3dd7efb26db5e9a59036">Fq2Square</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *in)</td></tr> <tr class="memdesc:a3c6583dd519a3dd7efb26db5e9a59036"><td class="mdescLeft"> </td><td class="mdescRight">Square an element of Fq2. <a href="#a3c6583dd519a3dd7efb26db5e9a59036">More...</a><br /></td></tr> <tr class="separator:a3c6583dd519a3dd7efb26db5e9a59036"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af45903d791794faabedb00f760885e8c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#af45903d791794faabedb00f760885e8c">Fq2MulScalar</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *left, <a class="el" href="struct_fq_elem.html">FqElem</a> const *right)</td></tr> <tr class="memdesc:af45903d791794faabedb00f760885e8c"><td class="mdescLeft"> </td><td class="mdescRight">Multiply an element of Fq2 by and element of Fq. <a href="#af45903d791794faabedb00f760885e8c">More...</a><br /></td></tr> <tr class="separator:af45903d791794faabedb00f760885e8c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad94b155025e7a11b9c5b60032fde4491"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#ad94b155025e7a11b9c5b60032fde4491">Fq2CondSet</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *true_val, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *false_val, int truth_val)</td></tr> <tr class="memdesc:ad94b155025e7a11b9c5b60032fde4491"><td class="mdescLeft"> </td><td class="mdescRight">Conditionally Set an element's value to one of two values. <a href="#ad94b155025e7a11b9c5b60032fde4491">More...</a><br /></td></tr> <tr class="separator:ad94b155025e7a11b9c5b60032fde4491"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3dc330cff53539b51183c43085275f97"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a3dc330cff53539b51183c43085275f97">Fq2Eq</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *left, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *right)</td></tr> <tr class="memdesc:a3dc330cff53539b51183c43085275f97"><td class="mdescLeft"> </td><td class="mdescRight">Test if two elements in Fq2 are equal. <a href="#a3dc330cff53539b51183c43085275f97">More...</a><br /></td></tr> <tr class="separator:a3dc330cff53539b51183c43085275f97"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afeeb4e14ddf9f39f860661c599923c58"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#afeeb4e14ddf9f39f860661c599923c58">Fq2MulXi</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> *result, <a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *in)</td></tr> <tr class="memdesc:afeeb4e14ddf9f39f860661c599923c58"><td class="mdescLeft"> </td><td class="mdescRight">Multiply an element of Fq2 by xi. <a href="#afeeb4e14ddf9f39f860661c599923c58">More...</a><br /></td></tr> <tr class="separator:afeeb4e14ddf9f39f860661c599923c58"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a610c9d7c2afa63b1d48da30c684d6e27"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="fq2_8h.html#a610c9d7c2afa63b1d48da30c684d6e27">Fq2IsZero</a> (<a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const *value)</td></tr> <tr class="memdesc:a610c9d7c2afa63b1d48da30c684d6e27"><td class="mdescLeft"> </td><td class="mdescRight">Test if an element is zero. <a href="#a610c9d7c2afa63b1d48da30c684d6e27">More...</a><br /></td></tr> <tr class="separator:a610c9d7c2afa63b1d48da30c684d6e27"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Definition of Fq2 math. </p> </div><h2 class="groupheader">Function Documentation</h2> <a id="afcaaf75460f36b85386cd1959b904f57"></a> <h2 class="memtitle"><span class="permalink"><a href="#afcaaf75460f36b85386cd1959b904f57">◆ </a></span>Fq2Add()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Add </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>right</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Add two elements of Fq2. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>of adding left and right. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">left</td><td>The first operand to be added. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">right</td><td>The second operand to be added. </td></tr> </table> </dd> </dl> </div> </div> <a id="a59d3d8212ffd5bf75f9b6fd85b896654"></a> <h2 class="memtitle"><span class="permalink"><a href="#a59d3d8212ffd5bf75f9b6fd85b896654">◆ </a></span>Fq2Clear()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Clear </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Clear an element's value. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>element to clear. </td></tr> </table> </dd> </dl> </div> </div> <a id="ad94b155025e7a11b9c5b60032fde4491"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad94b155025e7a11b9c5b60032fde4491">◆ </a></span>Fq2CondSet()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2CondSet </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>true_val</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>false_val</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>truth_val</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Conditionally Set an element's value to one of two values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>target. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">true_val</td><td>value to set if condition is true. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">false_val</td><td>value to set if condition is false. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">truth_val</td><td>value of condition. </td></tr> </table> </dd> </dl> </div> </div> <a id="adc0d02ddec564ca86b0ef53d7ff79864"></a> <h2 class="memtitle"><span class="permalink"><a href="#adc0d02ddec564ca86b0ef53d7ff79864">◆ </a></span>Fq2Conj()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Conj </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>in</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Calculate the conjugate of an element of Fq2. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>the conjugate of the element. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>the element. </td></tr> </table> </dd> </dl> </div> </div> <a id="a6c67364f78e6946a7ad3af2c86baf1a5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6c67364f78e6946a7ad3af2c86baf1a5">◆ </a></span>Fq2Cp()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Cp </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>in</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Copy an element's value. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>copy target. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>copy source. </td></tr> </table> </dd> </dl> </div> </div> <a id="a3dc330cff53539b51183c43085275f97"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3dc330cff53539b51183c43085275f97">◆ </a></span>Fq2Eq()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Fq2Eq </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>right</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Test if two elements in Fq2 are equal. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">left</td><td>The first operand to be tested. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">right</td><td>The second operand to be tested. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A value different from zero (i.e., true) if indeed the values are equal. Zero (i.e., false) otherwise. </dd></dl> </div> </div> <a id="acecbff7a5a8cec15e24c47663957c05a"></a> <h2 class="memtitle"><span class="permalink"><a href="#acecbff7a5a8cec15e24c47663957c05a">◆ </a></span>Fq2Exp()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Exp </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>base</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_very_large_int.html">VeryLargeInt</a> const * </td> <td class="paramname"><em>exp</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Exponentiate an element of Fq2 by a large integer. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>target. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>the base. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">exp</td><td>the exponent. </td></tr> </table> </dd> </dl> </div> </div> <a id="a756666161516fe541b26a4082f69343d"></a> <h2 class="memtitle"><span class="permalink"><a href="#a756666161516fe541b26a4082f69343d">◆ </a></span>Fq2Inv()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Inv </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>in</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Invert an element of Fq2. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>the inverse of the element. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>the element to invert. </td></tr> </table> </dd> </dl> </div> </div> <a id="a610c9d7c2afa63b1d48da30c684d6e27"></a> <h2 class="memtitle"><span class="permalink"><a href="#a610c9d7c2afa63b1d48da30c684d6e27">◆ </a></span>Fq2IsZero()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Fq2IsZero </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Test if an element is zero. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>the element to test. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A value different from zero (i.e., true) if indeed the value is zero. Zero (i.e., false) otherwise. </dd></dl> </div> </div> <a id="a876f870f84cd8ab697176dbb42591565"></a> <h2 class="memtitle"><span class="permalink"><a href="#a876f870f84cd8ab697176dbb42591565">◆ </a></span>Fq2Mul()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Mul </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>right</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Multiply two elements of Fq2. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>of multiplying left and right. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">left</td><td>The first operand to be multiplied. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">right</td><td>The second operand to be multiplied. </td></tr> </table> </dd> </dl> </div> </div> <a id="af45903d791794faabedb00f760885e8c"></a> <h2 class="memtitle"><span class="permalink"><a href="#af45903d791794faabedb00f760885e8c">◆ </a></span>Fq2MulScalar()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2MulScalar </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq_elem.html">FqElem</a> const * </td> <td class="paramname"><em>right</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Multiply an element of Fq2 by and element of Fq. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>of multiplying left and right. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">left</td><td>The first operand to be multiplied. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">right</td><td>The second operand to be multiplied. </td></tr> </table> </dd> </dl> </div> </div> <a id="afeeb4e14ddf9f39f860661c599923c58"></a> <h2 class="memtitle"><span class="permalink"><a href="#afeeb4e14ddf9f39f860661c599923c58">◆ </a></span>Fq2MulXi()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2MulXi </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>in</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Multiply an element of Fq2 by xi. </p> <p>This function was formerly called as Fq2Const.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>of multiplying in by xi. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>The first operand to be multiplied. </td></tr> </table> </dd> </dl> </div> </div> <a id="a5d523d5d6d4159c71f58945af82a7936"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5d523d5d6d4159c71f58945af82a7936">◆ </a></span>Fq2Neg()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Neg </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>in</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Negate an element of Fq2. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>the negative of the element. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>the element to negate. </td></tr> </table> </dd> </dl> </div> </div> <a id="a9165c1d2deef46ceb9af238928b2ec5c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a9165c1d2deef46ceb9af238928b2ec5c">◆ </a></span>Fq2Set()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Set </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t </td> <td class="paramname"><em>in</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Set an element's value. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>target. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>value to set. </td></tr> </table> </dd> </dl> </div> </div> <a id="a3c6583dd519a3dd7efb26db5e9a59036"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3c6583dd519a3dd7efb26db5e9a59036">◆ </a></span>Fq2Square()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Square </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>in</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Square an element of Fq2. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>the square of the element. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>the element to square. </td></tr> </table> </dd> </dl> </div> </div> <a id="ae27a9400b5d8fbd0b720a449c60ad146"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae27a9400b5d8fbd0b720a449c60ad146">◆ </a></span>Fq2Sub()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Fq2Sub </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> * </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="struct_fq2_elem.html">Fq2Elem</a> const * </td> <td class="paramname"><em>right</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Subtract two elements of Fq2. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>of subtracting left from right. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">left</td><td>The operand to be subtracted from. </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">right</td><td>The operand to subtract. </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="fq2_8h.html">fq2.h</a></li> <li class="footer"> © 2016-2017 Intel Corporation </li> </ul> </div> </body> </html>