blob: 7d648f3dc59b614bc1ea0259bb7d165ff893d52d [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AMCL: fp_GOLDILOCKS.h Source File</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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AMCL
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_df7310d1a865926cc859bcfb1880083f.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">fp_GOLDILOCKS.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="fp__GOLDILOCKS_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> distributed with this work for additional information</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> software distributed under the License is distributed on an</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> specific language governing permissions and limitations</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> under the License.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#ifndef FP_GOLDILOCKS_H</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#define FP_GOLDILOCKS_H</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="big__448__58_8h.html">big_448_58.h</a>&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &quot;config_field_GOLDILOCKS.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structFP__GOLDILOCKS.html"> 38</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structFP__GOLDILOCKS.html#a8eafb99985dc5036a6eb266a0ed2449f"> 40</a></span>&#160; <a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> <a class="code" href="structFP__GOLDILOCKS.html#a8eafb99985dc5036a6eb266a0ed2449f">g</a>; </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structFP__GOLDILOCKS.html#ac5c7e4e492f0ef11b6ccd5b15fcc7dbd"> 41</a></span>&#160; <a class="code" href="arch_8h.html#af31fcb3b74c4bcf6507f62d801277492">sign32</a> <a class="code" href="structFP__GOLDILOCKS.html#ac5c7e4e492f0ef11b6ccd5b15fcc7dbd">XES</a>; </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;} <a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a>;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">/* Field Params - see rom.c */</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> <a class="code" href="fp__GOLDILOCKS_8h.html#a8e71b3d4e440279204f0e1be84b87923">Modulus_GOLDILOCKS</a>; </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> <a class="code" href="fp__GOLDILOCKS_8h.html#a72051e56a23f4164b522f50a5fc10e1f">R2modp_GOLDILOCKS</a>; </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="arch_8h.html#a0dd4b8ab353c587b22c6acb0809323aa">chunk</a> <a class="code" href="fp__GOLDILOCKS_8h.html#aa143044673e825f8efc4c2eb8d41330e">MConst_GOLDILOCKS</a>; </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="fp__GOLDILOCKS_8h.html#a75fda8826b012fb4eb1bd2fc2c0dc821"> 51</a></span>&#160;<span class="preprocessor">#define MODBITS_GOLDILOCKS MBITS_GOLDILOCKS </span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="fp__GOLDILOCKS_8h.html#ae3047f3248518e76180a304f2340867d"> 52</a></span>&#160;<span class="preprocessor">#define TBITS_GOLDILOCKS (MBITS_GOLDILOCKS%BASEBITS_448_58) </span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="fp__GOLDILOCKS_8h.html#a898920156a5cbd4fd0de1538342f4af7"> 53</a></span>&#160;<span class="preprocessor">#define TMASK_GOLDILOCKS (((chunk)1&lt;&lt;TBITS_GOLDILOCKS)-1) </span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="fp__GOLDILOCKS_8h.html#abfe6057a33e222e13d2c297d4a1e26cf"> 54</a></span>&#160;<span class="preprocessor">#define FEXCESS_GOLDILOCKS (((sign32)1&lt;&lt;MAXXES_GOLDILOCKS)-1) </span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="fp__GOLDILOCKS_8h.html#ac06414179c36d3bdfcb7eea5a587391b"> 55</a></span>&#160;<span class="preprocessor">#define OMASK_GOLDILOCKS (-((chunk)(1)&lt;&lt;TBITS_GOLDILOCKS)) </span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">//#define FUSED_MODMUL</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="comment">//#define DEBUG_REDUCE</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="comment">/* FP prototypes */</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="fp__GOLDILOCKS_8h.html#ac1702e89247f0374730e1880455e7b9f">FP_GOLDILOCKS_iszilch</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#acba9c084f6e7ffc172c2b9355b5576cf">FP_GOLDILOCKS_zero</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a9071bab0fbc03ae4c533121303f30598">FP_GOLDILOCKS_copy</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a2e179daef730109ca85bf76f8486b8d1">FP_GOLDILOCKS_rcopy</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<span class="keyword">const</span> <a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> x);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="fp__GOLDILOCKS_8h.html#ab99472837cec07a66b51d2ca353a0696">FP_GOLDILOCKS_equals</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#aeeedbeca4956b7ad4a84236d9f84b5c3">FP_GOLDILOCKS_cswap</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<span class="keywordtype">int</span> s);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#adb3de08575b0c5651eb71d7a1efb8f49">FP_GOLDILOCKS_cmove</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<span class="keywordtype">int</span> s);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#aa98531061c674cfd9598f0654ecd9aed">FP_GOLDILOCKS_nres</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> x);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#aea78dff7075bb92173c2cea506c31d93">FP_GOLDILOCKS_redc</a>(<a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#ad32084c345a9bbd4a32c73bbf20ea3d3">FP_GOLDILOCKS_one</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a2d282a445aba046d64104c548af43086">FP_GOLDILOCKS_mod</a>(<a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> r,<a class="code" href="big__448__58_8h.html#a140b718636a1e8195708da4da45e9f32">DBIG_448_58</a> d);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="preprocessor">#ifdef FUSED_MODMUL</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> FP_GOLDILOCKS_modmul(<a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a>,<a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a>,<a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a>);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a655fcc6de1bb209783901e7a8a4fc568">FP_GOLDILOCKS_mul</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *z);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#adffa9205f226962e5ab702520adb78d5">FP_GOLDILOCKS_imul</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<span class="keywordtype">int</span> i);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a36126d99f7b367a57a295f72593a4cc4">FP_GOLDILOCKS_sqr</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a1b308b595c7e259e2c54c05c2b880322">FP_GOLDILOCKS_add</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *z);</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a43c45e3d4bd73b6afb44751258754dfc">FP_GOLDILOCKS_sub</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *z);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a78fd0d538ddbda49aabc3510907d6ef9">FP_GOLDILOCKS_div2</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a08eed161de6dbebef3212c23943dc254">FP_GOLDILOCKS_pow</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y,<a class="code" href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a> z);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#adec46b49a3f95ab3f0c545ac5d484353">FP_GOLDILOCKS_sqrt</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a1e62224368c9248a6b1f371fe1967a7b">FP_GOLDILOCKS_neg</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a0f3fe25ccc4d83150095eb76134dcb30">FP_GOLDILOCKS_output</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#af6b2e7200006daa9d1e84c90910d3f9e">FP_GOLDILOCKS_rawoutput</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#ad7aea7f0686f92f3352c3be3ac6ea7f6">FP_GOLDILOCKS_reduce</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a62c067aab5bbc392b35f8d5a3b97919a">FP_GOLDILOCKS_norm</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="fp__GOLDILOCKS_8h.html#afe231486e9005d97908401c5e0bb3e93">FP_GOLDILOCKS_qr</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="fp__GOLDILOCKS_8h.html#a6e7008fbb451c17fc35629ab2a70ebbb">FP_GOLDILOCKS_inv</a>(<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *x,<a class="code" href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a> *y);</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="fp__GOLDILOCKS_8h_html_a78fd0d538ddbda49aabc3510907d6ef9"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a78fd0d538ddbda49aabc3510907d6ef9">FP_GOLDILOCKS_div2</a></div><div class="ttdeci">void FP_GOLDILOCKS_div2(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y)</div><div class="ttdoc">Modular division by 2 of an FP, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:515</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a6e7008fbb451c17fc35629ab2a70ebbb"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a6e7008fbb451c17fc35629ab2a70ebbb">FP_GOLDILOCKS_inv</a></div><div class="ttdeci">void FP_GOLDILOCKS_inv(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y)</div><div class="ttdoc">Modular inverse of a an FP, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:648</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a655fcc6de1bb209783901e7a8a4fc568"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a655fcc6de1bb209783901e7a8a4fc568">FP_GOLDILOCKS_mul</a></div><div class="ttdeci">void FP_GOLDILOCKS_mul(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y, FP_GOLDILOCKS *z)</div><div class="ttdoc">Fast Modular multiplication of two FPs, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:297</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a1e62224368c9248a6b1f371fe1967a7b"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a1e62224368c9248a6b1f371fe1967a7b">FP_GOLDILOCKS_neg</a></div><div class="ttdeci">void FP_GOLDILOCKS_neg(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y)</div><div class="ttdoc">Modular negation of a an FP, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:491</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_ac1702e89247f0374730e1880455e7b9f"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#ac1702e89247f0374730e1880455e7b9f">FP_GOLDILOCKS_iszilch</a></div><div class="ttdeci">int FP_GOLDILOCKS_iszilch(FP_GOLDILOCKS *x)</div><div class="ttdoc">Tests for FP equal to zero mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:207</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a2d282a445aba046d64104c548af43086"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a2d282a445aba046d64104c548af43086">FP_GOLDILOCKS_mod</a></div><div class="ttdeci">void FP_GOLDILOCKS_mod(BIG_448_58 r, DBIG_448_58 d)</div><div class="ttdoc">Reduces DBIG to BIG exploiting special form of the modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:103</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a2e179daef730109ca85bf76f8486b8d1"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a2e179daef730109ca85bf76f8486b8d1">FP_GOLDILOCKS_rcopy</a></div><div class="ttdeci">void FP_GOLDILOCKS_rcopy(FP_GOLDILOCKS *y, const BIG_448_58 x)</div><div class="ttdoc">Copy from ROM to an FP.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:222</div></div>
<div class="ttc" id="big__448__58_8h_html_a140b718636a1e8195708da4da45e9f32"><div class="ttname"><a href="big__448__58_8h.html#a140b718636a1e8195708da4da45e9f32">DBIG_448_58</a></div><div class="ttdeci">chunk DBIG_448_58[DNLEN_448_58]</div><div class="ttdef"><b>Definition:</b> big_448_58.h:59</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_aa143044673e825f8efc4c2eb8d41330e"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#aa143044673e825f8efc4c2eb8d41330e">MConst_GOLDILOCKS</a></div><div class="ttdeci">const chunk MConst_GOLDILOCKS</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a8e71b3d4e440279204f0e1be84b87923"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a8e71b3d4e440279204f0e1be84b87923">Modulus_GOLDILOCKS</a></div><div class="ttdeci">const BIG_448_58 Modulus_GOLDILOCKS</div></div>
<div class="ttc" id="big__448__58_8h_html_a0ff733902d2a77fd164b5e6f7917da0e"><div class="ttname"><a href="big__448__58_8h.html#a0ff733902d2a77fd164b5e6f7917da0e">BIG_448_58</a></div><div class="ttdeci">chunk BIG_448_58[NLEN_448_58]</div><div class="ttdef"><b>Definition:</b> big_448_58.h:58</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_ab99472837cec07a66b51d2ca353a0696"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#ab99472837cec07a66b51d2ca353a0696">FP_GOLDILOCKS_equals</a></div><div class="ttdeci">int FP_GOLDILOCKS_equals(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y)</div><div class="ttdoc">Compares two FPs.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:257</div></div>
<div class="ttc" id="structFP__GOLDILOCKS_html"><div class="ttname"><a href="structFP__GOLDILOCKS.html">FP_GOLDILOCKS</a></div><div class="ttdoc">FP Structure - quadratic extension field.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.h:38</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a72051e56a23f4164b522f50a5fc10e1f"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a72051e56a23f4164b522f50a5fc10e1f">R2modp_GOLDILOCKS</a></div><div class="ttdeci">const BIG_448_58 R2modp_GOLDILOCKS</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a08eed161de6dbebef3212c23943dc254"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a08eed161de6dbebef3212c23943dc254">FP_GOLDILOCKS_pow</a></div><div class="ttdeci">void FP_GOLDILOCKS_pow(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y, BIG_448_58 z)</div><div class="ttdoc">Fast Modular exponentiation of an FP, to the power of a BIG, mod Modulus.</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_aeeedbeca4956b7ad4a84236d9f84b5c3"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#aeeedbeca4956b7ad4a84236d9f84b5c3">FP_GOLDILOCKS_cswap</a></div><div class="ttdeci">void FP_GOLDILOCKS_cswap(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y, int s)</div><div class="ttdoc">Conditional constant time swap of two FP numbers.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:230</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_adffa9205f226962e5ab702520adb78d5"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#adffa9205f226962e5ab702520adb78d5">FP_GOLDILOCKS_imul</a></div><div class="ttdeci">void FP_GOLDILOCKS_imul(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y, int i)</div><div class="ttdoc">Fast Modular multiplication of an FP, by a small integer, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:321</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_afe231486e9005d97908401c5e0bb3e93"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#afe231486e9005d97908401c5e0bb3e93">FP_GOLDILOCKS_qr</a></div><div class="ttdeci">int FP_GOLDILOCKS_qr(FP_GOLDILOCKS *x)</div><div class="ttdoc">Tests for FP a quadratic residue mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:731</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_aea78dff7075bb92173c2cea506c31d93"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#aea78dff7075bb92173c2cea506c31d93">FP_GOLDILOCKS_redc</a></div><div class="ttdeci">void FP_GOLDILOCKS_redc(BIG_448_58 x, FP_GOLDILOCKS *y)</div><div class="ttdoc">Converts from residue form back to BIG integer form.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:97</div></div>
<div class="ttc" id="structFP__GOLDILOCKS_html_ac5c7e4e492f0ef11b6ccd5b15fcc7dbd"><div class="ttname"><a href="structFP__GOLDILOCKS.html#ac5c7e4e492f0ef11b6ccd5b15fcc7dbd">FP_GOLDILOCKS::XES</a></div><div class="ttdeci">sign32 XES</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.h:41</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_adec46b49a3f95ab3f0c545ac5d484353"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#adec46b49a3f95ab3f0c545ac5d484353">FP_GOLDILOCKS_sqrt</a></div><div class="ttdeci">void FP_GOLDILOCKS_sqrt(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y)</div><div class="ttdoc">Fast Modular square root of a an FP, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:747</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a9071bab0fbc03ae4c533121303f30598"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a9071bab0fbc03ae4c533121303f30598">FP_GOLDILOCKS_copy</a></div><div class="ttdeci">void FP_GOLDILOCKS_copy(FP_GOLDILOCKS *y, FP_GOLDILOCKS *x)</div><div class="ttdoc">Copy an FP.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:216</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a0f3fe25ccc4d83150095eb76134dcb30"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a0f3fe25ccc4d83150095eb76134dcb30">FP_GOLDILOCKS_output</a></div><div class="ttdeci">void FP_GOLDILOCKS_output(FP_GOLDILOCKS *x)</div><div class="ttdoc">Outputs an FP number to the console.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:270</div></div>
<div class="ttc" id="arch_8h_html_af31fcb3b74c4bcf6507f62d801277492"><div class="ttname"><a href="arch_8h.html#af31fcb3b74c4bcf6507f62d801277492">sign32</a></div><div class="ttdeci">#define sign32</div><div class="ttdef"><b>Definition:</b> arch.h:62</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a43c45e3d4bd73b6afb44751258754dfc"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a43c45e3d4bd73b6afb44751258754dfc">FP_GOLDILOCKS_sub</a></div><div class="ttdeci">void FP_GOLDILOCKS_sub(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y, FP_GOLDILOCKS *z)</div><div class="ttdoc">Modular subtraction of two FPs, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:400</div></div>
<div class="ttc" id="big__448__58_8h_html"><div class="ttname"><a href="big__448__58_8h.html">big_448_58.h</a></div><div class="ttdoc">BIG Header File.</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a62c067aab5bbc392b35f8d5a3b97919a"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a62c067aab5bbc392b35f8d5a3b97919a">FP_GOLDILOCKS_norm</a></div><div class="ttdeci">void FP_GOLDILOCKS_norm(FP_GOLDILOCKS *x)</div><div class="ttdoc">normalizes FP</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:484</div></div>
<div class="ttc" id="structFP__GOLDILOCKS_html_a8eafb99985dc5036a6eb266a0ed2449f"><div class="ttname"><a href="structFP__GOLDILOCKS.html#a8eafb99985dc5036a6eb266a0ed2449f">FP_GOLDILOCKS::g</a></div><div class="ttdeci">BIG_448_58 g</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.h:40</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_ad7aea7f0686f92f3352c3be3ac6ea7f6"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#ad7aea7f0686f92f3352c3be3ac6ea7f6">FP_GOLDILOCKS_reduce</a></div><div class="ttdeci">void FP_GOLDILOCKS_reduce(FP_GOLDILOCKS *x)</div><div class="ttdoc">Reduces possibly unreduced FP mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:449</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_af6b2e7200006daa9d1e84c90910d3f9e"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#af6b2e7200006daa9d1e84c90910d3f9e">FP_GOLDILOCKS_rawoutput</a></div><div class="ttdeci">void FP_GOLDILOCKS_rawoutput(FP_GOLDILOCKS *x)</div><div class="ttdoc">Outputs an FP number to the console, in raw form.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:277</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_ad32084c345a9bbd4a32c73bbf20ea3d3"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#ad32084c345a9bbd4a32c73bbf20ea3d3">FP_GOLDILOCKS_one</a></div><div class="ttdeci">void FP_GOLDILOCKS_one(FP_GOLDILOCKS *x)</div><div class="ttdoc">Sets FP to representation of unity in residue form.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:723</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_adb3de08575b0c5651eb71d7a1efb8f49"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#adb3de08575b0c5651eb71d7a1efb8f49">FP_GOLDILOCKS_cmove</a></div><div class="ttdeci">void FP_GOLDILOCKS_cmove(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y, int s)</div><div class="ttdoc">Conditional copy of FP number.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:243</div></div>
<div class="ttc" id="arch_8h_html_a0dd4b8ab353c587b22c6acb0809323aa"><div class="ttname"><a href="arch_8h.html#a0dd4b8ab353c587b22c6acb0809323aa">chunk</a></div><div class="ttdeci">#define chunk</div><div class="ttdef"><b>Definition:</b> arch.h:109</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_aa98531061c674cfd9598f0654ecd9aed"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#aa98531061c674cfd9598f0654ecd9aed">FP_GOLDILOCKS_nres</a></div><div class="ttdeci">void FP_GOLDILOCKS_nres(FP_GOLDILOCKS *y, BIG_448_58 x)</div><div class="ttdoc">Converts from BIG integer to residue form mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:90</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_acba9c084f6e7ffc172c2b9355b5576cf"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#acba9c084f6e7ffc172c2b9355b5576cf">FP_GOLDILOCKS_zero</a></div><div class="ttdeci">void FP_GOLDILOCKS_zero(FP_GOLDILOCKS *x)</div><div class="ttdoc">Set FP to zero.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:251</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a1b308b595c7e259e2c54c05c2b880322"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a1b308b595c7e259e2c54c05c2b880322">FP_GOLDILOCKS_add</a></div><div class="ttdeci">void FP_GOLDILOCKS_add(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y, FP_GOLDILOCKS *z)</div><div class="ttdoc">Modular addition of two FPs, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:385</div></div>
<div class="ttc" id="fp__GOLDILOCKS_8h_html_a36126d99f7b367a57a295f72593a4cc4"><div class="ttname"><a href="fp__GOLDILOCKS_8h.html#a36126d99f7b367a57a295f72593a4cc4">FP_GOLDILOCKS_sqr</a></div><div class="ttdeci">void FP_GOLDILOCKS_sqr(FP_GOLDILOCKS *x, FP_GOLDILOCKS *y)</div><div class="ttdoc">Fast Modular squaring of an FP, mod Modulus.</div><div class="ttdef"><b>Definition:</b> fp_GOLDILOCKS.c:366</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>