blob: c6241a0ff92fb556e1c1a752e5fbd4e18a552183 [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: mpin192_BLS24.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">mpin192_BLS24.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="mpin192__BLS24_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="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#ifndef MPIN_BLS24_H</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#define MPIN_BLS24_H</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;pair192_BLS24.h&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="pbc__support_8h.html">pbc_support.h</a>&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">/* Field size is assumed to be greater than or equal to group size */</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="mpin192__BLS24_8h.html#a38e362af63ef6ccfcea1bf915d17d150"> 40</a></span>&#160;<span class="preprocessor">#define PGS_BLS24 MODBYTES_480_56 </span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#a4b0aa4221cefd2e9856800283bc0f72c"> 41</a></span>&#160;<span class="preprocessor">#define PFS_BLS24 MODBYTES_480_56 </span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#a5bdbc339b8d614c9c4912a6b6040f4ec"> 43</a></span>&#160;<span class="preprocessor">#define MPIN_OK 0 </span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#a1735b73fd12586e70fc971c85e088ffc"> 44</a></span>&#160;<span class="preprocessor">#define MPIN_INVALID_POINT -14 </span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#ad558e3e4522f6846ba98a0d3820faebd"> 45</a></span>&#160;<span class="preprocessor">#define MPIN_BAD_PIN -19 </span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#a15c5084bd08109c7edebf50db273e494"> 47</a></span>&#160;<span class="preprocessor">#define MAXPIN 10000 </span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#a1bc47461f3417c96da72488c6030447e"> 48</a></span>&#160;<span class="preprocessor">#define PBLEN 14 </span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">//#define PAS_BLS24 24 </span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">//#define HASH_TYPE_MPIN_BLS24 SHA384 </span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#aeca90e1c1c62b70670514ffc18c9dfd4"> 53</a></span>&#160;<span class="preprocessor">#define MESSAGE_SIZE 256 </span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="mpin192__BLS24_8h.html#aab8f5b17cff8b45cc16cfe363f32771b"> 54</a></span>&#160;<span class="preprocessor">#define M_SIZE_BLS24 (MESSAGE_SIZE+2*PFS_BLS24+1) </span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor"></span><span class="comment">/* MPIN support functions */</span><span class="preprocessor"></span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="comment">/* MPIN primitives */</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mpin192__BLS24_8h.html#a3784d2c919bb3cc8f734a0fb835f5c05">MPIN_BLS24_GET_Y</a>(<span class="keywordtype">int</span> h,<span class="keywordtype">int</span> t,<a class="code" href="structoctet.html">octet</a> *O,<a class="code" href="structoctet.html">octet</a> *Y);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#acba2e63b4d1bc806e08903c04fa1ba31">MPIN_BLS24_EXTRACT_FACTOR</a>(<span class="keywordtype">int</span> h,<a class="code" href="structoctet.html">octet</a> *ID,<span class="keywordtype">int</span> factor,<span class="keywordtype">int</span> facbits,<a class="code" href="structoctet.html">octet</a> *CS);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a6117568e1c58fe535a617f56f1e0bb67">MPIN_BLS24_RESTORE_FACTOR</a>(<span class="keywordtype">int</span> h,<a class="code" href="structoctet.html">octet</a> *ID,<span class="keywordtype">int</span> factor,<span class="keywordtype">int</span> facbits,<a class="code" href="structoctet.html">octet</a> *CS);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#abe201d5d755ae3b6fe4e127a7f701417">MPIN_BLS24_EXTRACT_PIN</a>(<span class="keywordtype">int</span> h,<a class="code" href="structoctet.html">octet</a> *ID,<span class="keywordtype">int</span> pin,<a class="code" href="structoctet.html">octet</a> *CS);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a32985c8567593556295541b5c2ba773d">MPIN_BLS24_CLIENT</a>(<span class="keywordtype">int</span> h,<span class="keywordtype">int</span> d,<a class="code" href="structoctet.html">octet</a> *ID,<a class="code" href="structcsprng.html">csprng</a> *R,<a class="code" href="structoctet.html">octet</a> *x,<span class="keywordtype">int</span> pin,<a class="code" href="structoctet.html">octet</a> *T,<a class="code" href="structoctet.html">octet</a> *V,<a class="code" href="structoctet.html">octet</a> *U,<a class="code" href="structoctet.html">octet</a> *UT,<a class="code" href="structoctet.html">octet</a> *TP, <a class="code" href="structoctet.html">octet</a>* MESSAGE, <span class="keywordtype">int</span> t, <a class="code" href="structoctet.html">octet</a> *y);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a7879a86385b24f18ea4187ffcec50017">MPIN_BLS24_CLIENT_1</a>(<span class="keywordtype">int</span> h,<span class="keywordtype">int</span> d,<a class="code" href="structoctet.html">octet</a> *ID,<a class="code" href="structcsprng.html">csprng</a> *R,<a class="code" href="structoctet.html">octet</a> *x,<span class="keywordtype">int</span> pin,<a class="code" href="structoctet.html">octet</a> *T,<a class="code" href="structoctet.html">octet</a> *S,<a class="code" href="structoctet.html">octet</a> *U,<a class="code" href="structoctet.html">octet</a> *UT,<a class="code" href="structoctet.html">octet</a> *TP);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#aa8b924c13bd51125f98e7903bcf87b2d">MPIN_BLS24_RANDOM_GENERATE</a>(<a class="code" href="structcsprng.html">csprng</a> *R,<a class="code" href="structoctet.html">octet</a> *S);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ac507184ecc61d59245ce7c87b005fecc">MPIN_BLS24_CLIENT_2</a>(<a class="code" href="structoctet.html">octet</a> *x,<a class="code" href="structoctet.html">octet</a> *y,<a class="code" href="structoctet.html">octet</a> *V);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a6b9e2979440e77d03836f8c12f1e61ab">MPIN_BLS24_SERVER</a>(<span class="keywordtype">int</span> h,<span class="keywordtype">int</span> d,<a class="code" href="structoctet.html">octet</a> *HID,<a class="code" href="structoctet.html">octet</a> *HTID,<a class="code" href="structoctet.html">octet</a> *y,<a class="code" href="structoctet.html">octet</a> *SS,<a class="code" href="structoctet.html">octet</a> *U,<a class="code" href="structoctet.html">octet</a> *UT,<a class="code" href="structoctet.html">octet</a> *V,<a class="code" href="structoctet.html">octet</a> *E,<a class="code" href="structoctet.html">octet</a> *F,<a class="code" href="structoctet.html">octet</a> *ID,<a class="code" href="structoctet.html">octet</a> *MESSAGE, <span class="keywordtype">int</span> t, <a class="code" href="structoctet.html">octet</a> *Pa);</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mpin192__BLS24_8h.html#a9131f2ea5543e7865cb81b1f79c4651b">MPIN_BLS24_SERVER_1</a>(<span class="keywordtype">int</span> h,<span class="keywordtype">int</span> d,<a class="code" href="structoctet.html">octet</a> *ID,<a class="code" href="structoctet.html">octet</a> *HID,<a class="code" href="structoctet.html">octet</a> *HTID);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ac91358bf206a5a27406aeecd8314b521">MPIN_BLS24_SERVER_2</a>(<span class="keywordtype">int</span> d,<a class="code" href="structoctet.html">octet</a> *HID,<a class="code" href="structoctet.html">octet</a> *HTID,<a class="code" href="structoctet.html">octet</a> *y,<a class="code" href="structoctet.html">octet</a> *SS,<a class="code" href="structoctet.html">octet</a> *U,<a class="code" href="structoctet.html">octet</a> *UT,<a class="code" href="structoctet.html">octet</a> *V,<a class="code" href="structoctet.html">octet</a> *E,<a class="code" href="structoctet.html">octet</a> *F,<a class="code" href="structoctet.html">octet</a> *Pa);</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#adc457bd8602b58bbc34a09f7c6a7121b">MPIN_BLS24_RECOMBINE_G1</a>(<a class="code" href="structoctet.html">octet</a> *Q1,<a class="code" href="structoctet.html">octet</a> *Q2,<a class="code" href="structoctet.html">octet</a> *Q);</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a68f87ec8fafe90a03261ca10b4359bd9">MPIN_BLS24_RECOMBINE_G2</a>(<a class="code" href="structoctet.html">octet</a> *P1,<a class="code" href="structoctet.html">octet</a> *P2,<a class="code" href="structoctet.html">octet</a> *P);</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ac3902d641e0004c7d9e1bf8c22b0d83a">MPIN_BLS24_KANGAROO</a>(<a class="code" href="structoctet.html">octet</a> *E,<a class="code" href="structoctet.html">octet</a> *F);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a4b714024637d90051a614589dbc50d23">MPIN_BLS24_ENCODING</a>(<a class="code" href="structcsprng.html">csprng</a> *R,<a class="code" href="structoctet.html">octet</a> *TP);</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ac1c190202f04d506b4ebff03f0e2d607">MPIN_BLS24_DECODING</a>(<a class="code" href="structoctet.html">octet</a> *TP);</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ad91d84482e4e856f0f1b96ce03df3589">MPIN_BLS24_GET_G1_MULTIPLE</a>(<a class="code" href="structcsprng.html">csprng</a> *R,<span class="keywordtype">int</span> type,<a class="code" href="structoctet.html">octet</a> *x,<a class="code" href="structoctet.html">octet</a> *G,<a class="code" href="structoctet.html">octet</a> *W);</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#af1a94b7da3fcfb6627d37b88202f9b4f">MPIN_BLS24_GET_G2_MULTIPLE</a>(<a class="code" href="structcsprng.html">csprng</a> *R,<span class="keywordtype">int</span> type,<a class="code" href="structoctet.html">octet</a> *x,<a class="code" href="structoctet.html">octet</a> *G,<a class="code" href="structoctet.html">octet</a> *W);</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ae7190550f72ff5cd6ce6d06d64143dec">MPIN_BLS24_GET_CLIENT_SECRET</a>(<a class="code" href="structoctet.html">octet</a> *S,<a class="code" href="structoctet.html">octet</a> *ID,<a class="code" href="structoctet.html">octet</a> *CS);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ad302cce4567b981f8f821a1172f0ab7c">MPIN_BLS24_GET_CLIENT_PERMIT</a>(<span class="keywordtype">int</span> h,<span class="keywordtype">int</span> d,<a class="code" href="structoctet.html">octet</a> *S,<a class="code" href="structoctet.html">octet</a> *ID,<a class="code" href="structoctet.html">octet</a> *TP);</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a7caa45a30e6814f35704ab3f10cb6a83">MPIN_BLS24_GET_SERVER_SECRET</a>(<a class="code" href="structoctet.html">octet</a> *S,<a class="code" href="structoctet.html">octet</a> *SS);</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;<span class="comment">/* int MPIN_TEST_PAIRING(octet *,octet *); */</span></div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;<span class="comment">/* For M-Pin Full */</span></div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a996678d4073655180aa755bff559da04">MPIN_BLS24_PRECOMPUTE</a>(<a class="code" href="structoctet.html">octet</a> *T,<a class="code" href="structoctet.html">octet</a> *ID,<a class="code" href="structoctet.html">octet</a> *CP,<a class="code" href="structoctet.html">octet</a> *g1,<a class="code" href="structoctet.html">octet</a> *g2);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#ac4bc478a76e6b78d9ea8618478cd1d4b">MPIN_BLS24_SERVER_KEY</a>(<span class="keywordtype">int</span> h,<a class="code" href="structoctet.html">octet</a> *Z,<a class="code" href="structoctet.html">octet</a> *SS,<a class="code" href="structoctet.html">octet</a> *w,<a class="code" href="structoctet.html">octet</a> *p,<a class="code" href="structoctet.html">octet</a> *I,<a class="code" href="structoctet.html">octet</a> *U,<a class="code" href="structoctet.html">octet</a> *UT,<a class="code" href="structoctet.html">octet</a> *K);</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#a101adecc2e2106075231ada691f7a8d0">MPIN_BLS24_CLIENT_KEY</a>(<span class="keywordtype">int</span> h,<a class="code" href="structoctet.html">octet</a> *g1,<a class="code" href="structoctet.html">octet</a> *g2,<span class="keywordtype">int</span> pin,<a class="code" href="structoctet.html">octet</a> *r,<a class="code" href="structoctet.html">octet</a> *x,<a class="code" href="structoctet.html">octet</a> *p,<a class="code" href="structoctet.html">octet</a> *T,<a class="code" href="structoctet.html">octet</a> *K);</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160;<span class="keywordtype">int</span> <a class="code" href="mpin192__BLS24_8h.html#aa29bed65e83bd2157605f6530ce4b303">MPIN_BLS24_GET_DVS_KEYPAIR</a>(<a class="code" href="structcsprng.html">csprng</a> *R,<a class="code" href="structoctet.html">octet</a> *Z,<a class="code" href="structoctet.html">octet</a> *Pa);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160;</div><div class="ttc" id="mpin192__BLS24_8h_html_a7caa45a30e6814f35704ab3f10cb6a83"><div class="ttname"><a href="mpin192__BLS24_8h.html#a7caa45a30e6814f35704ab3f10cb6a83">MPIN_BLS24_GET_SERVER_SECRET</a></div><div class="ttdeci">int MPIN_BLS24_GET_SERVER_SECRET(octet *S, octet *SS)</div><div class="ttdoc">Create a server secret in G2 from a master secret.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:476</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_adc457bd8602b58bbc34a09f7c6a7121b"><div class="ttname"><a href="mpin192__BLS24_8h.html#adc457bd8602b58bbc34a09f7c6a7121b">MPIN_BLS24_RECOMBINE_G1</a></div><div class="ttdeci">int MPIN_BLS24_RECOMBINE_G1(octet *Q1, octet *Q2, octet *Q)</div><div class="ttdoc">Add two members from the group G1.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:190</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_af1a94b7da3fcfb6627d37b88202f9b4f"><div class="ttname"><a href="mpin192__BLS24_8h.html#af1a94b7da3fcfb6627d37b88202f9b4f">MPIN_BLS24_GET_G2_MULTIPLE</a></div><div class="ttdeci">int MPIN_BLS24_GET_G2_MULTIPLE(csprng *R, int type, octet *x, octet *G, octet *W)</div><div class="ttdoc">Find a random multiple of a point in G1.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:358</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a7879a86385b24f18ea4187ffcec50017"><div class="ttname"><a href="mpin192__BLS24_8h.html#a7879a86385b24f18ea4187ffcec50017">MPIN_BLS24_CLIENT_1</a></div><div class="ttdeci">int MPIN_BLS24_CLIENT_1(int h, int d, octet *ID, csprng *R, octet *x, int pin, octet *T, octet *S, octet *U, octet *UT, octet *TP)</div><div class="ttdoc">Perform first pass of the client side of the 3-pass version of the M-Pin protocol.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:399</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a4b714024637d90051a614589dbc50d23"><div class="ttname"><a href="mpin192__BLS24_8h.html#a4b714024637d90051a614589dbc50d23">MPIN_BLS24_ENCODING</a></div><div class="ttdeci">int MPIN_BLS24_ENCODING(csprng *R, octet *TP)</div><div class="ttdoc">Encoding of a Time Permit to make it indistinguishable from a random string.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:132</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a9131f2ea5543e7865cb81b1f79c4651b"><div class="ttname"><a href="mpin192__BLS24_8h.html#a9131f2ea5543e7865cb81b1f79c4651b">MPIN_BLS24_SERVER_1</a></div><div class="ttdeci">void MPIN_BLS24_SERVER_1(int h, int d, octet *ID, octet *HID, octet *HTID)</div><div class="ttdoc">Perform first pass of the server side of the 3-pass version of the M-Pin protocol.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:521</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ac1c190202f04d506b4ebff03f0e2d607"><div class="ttname"><a href="mpin192__BLS24_8h.html#ac1c190202f04d506b4ebff03f0e2d607">MPIN_BLS24_DECODING</a></div><div class="ttdeci">int MPIN_BLS24_DECODING(octet *TP)</div><div class="ttdoc">Encoding of an obfuscated Time Permit.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:164</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_aa29bed65e83bd2157605f6530ce4b303"><div class="ttname"><a href="mpin192__BLS24_8h.html#aa29bed65e83bd2157605f6530ce4b303">MPIN_BLS24_GET_DVS_KEYPAIR</a></div><div class="ttdeci">int MPIN_BLS24_GET_DVS_KEYPAIR(csprng *R, octet *Z, octet *Pa)</div><div class="ttdoc">Generates a random public key for the client z.Q.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:917</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ad302cce4567b981f8f821a1172f0ab7c"><div class="ttname"><a href="mpin192__BLS24_8h.html#ad302cce4567b981f8f821a1172f0ab7c">MPIN_BLS24_GET_CLIENT_PERMIT</a></div><div class="ttdeci">int MPIN_BLS24_GET_CLIENT_PERMIT(int h, int d, octet *S, octet *ID, octet *TP)</div><div class="ttdoc">Create a Time Permit in G1 from a master secret and the client ID.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:498</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ac4bc478a76e6b78d9ea8618478cd1d4b"><div class="ttname"><a href="mpin192__BLS24_8h.html#ac4bc478a76e6b78d9ea8618478cd1d4b">MPIN_BLS24_SERVER_KEY</a></div><div class="ttdeci">int MPIN_BLS24_SERVER_KEY(int h, octet *Z, octet *SS, octet *w, octet *p, octet *I, octet *U, octet *UT, octet *K)</div><div class="ttdoc">Calculate Key on Server side for M-Pin Full.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:796</div></div>
<div class="ttc" id="structoctet_html"><div class="ttname"><a href="structoctet.html">octet</a></div><div class="ttdoc">Portable representation of a big positive number.</div><div class="ttdef"><b>Definition:</b> amcl.h:209</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a996678d4073655180aa755bff559da04"><div class="ttname"><a href="mpin192__BLS24_8h.html#a996678d4073655180aa755bff559da04">MPIN_BLS24_PRECOMPUTE</a></div><div class="ttdeci">int MPIN_BLS24_PRECOMPUTE(octet *T, octet *ID, octet *CP, octet *g1, octet *g2)</div><div class="ttdoc">Precompute values for use by the client side of M-Pin Full.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:719</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a6b9e2979440e77d03836f8c12f1e61ab"><div class="ttname"><a href="mpin192__BLS24_8h.html#a6b9e2979440e77d03836f8c12f1e61ab">MPIN_BLS24_SERVER</a></div><div class="ttdeci">int MPIN_BLS24_SERVER(int h, int d, octet *HID, octet *HTID, octet *y, octet *SS, octet *U, octet *UT, octet *V, octet *E, octet *F, octet *ID, octet *MESSAGE, int t, octet *Pa)</div><div class="ttdoc">Perform server side of the one-pass version of the M-Pin protocol.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:888</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a3784d2c919bb3cc8f734a0fb835f5c05"><div class="ttname"><a href="mpin192__BLS24_8h.html#a3784d2c919bb3cc8f734a0fb835f5c05">MPIN_BLS24_GET_Y</a></div><div class="ttdeci">void MPIN_BLS24_GET_Y(int h, int t, octet *O, octet *Y)</div><div class="ttdoc">Generate Y=H(s,O), where s is epoch time, O is an octet, and H(.) is a hash function.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:841</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ae7190550f72ff5cd6ce6d06d64143dec"><div class="ttname"><a href="mpin192__BLS24_8h.html#ae7190550f72ff5cd6ce6d06d64143dec">MPIN_BLS24_GET_CLIENT_SECRET</a></div><div class="ttdeci">int MPIN_BLS24_GET_CLIENT_SECRET(octet *S, octet *ID, octet *CS)</div><div class="ttdoc">Create a client secret in G1 from a master secret and the client ID.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:393</div></div>
<div class="ttc" id="pbc__support_8h_html"><div class="ttname"><a href="pbc__support_8h.html">pbc_support.h</a></div><div class="ttdoc">Auxiliary functions for Pairing-based protocols.</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ac3902d641e0004c7d9e1bf8c22b0d83a"><div class="ttname"><a href="mpin192__BLS24_8h.html#ac3902d641e0004c7d9e1bf8c22b0d83a">MPIN_BLS24_KANGAROO</a></div><div class="ttdeci">int MPIN_BLS24_KANGAROO(octet *E, octet *F)</div><div class="ttdoc">Use Kangaroos to find PIN error.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:653</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a6117568e1c58fe535a617f56f1e0bb67"><div class="ttname"><a href="mpin192__BLS24_8h.html#a6117568e1c58fe535a617f56f1e0bb67">MPIN_BLS24_RESTORE_FACTOR</a></div><div class="ttdeci">int MPIN_BLS24_RESTORE_FACTOR(int h, octet *ID, int factor, int facbits, octet *CS)</div><div class="ttdoc">Extract a PIN number from a client secret.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:267</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_aa8b924c13bd51125f98e7903bcf87b2d"><div class="ttname"><a href="mpin192__BLS24_8h.html#aa8b924c13bd51125f98e7903bcf87b2d">MPIN_BLS24_RANDOM_GENERATE</a></div><div class="ttdeci">int MPIN_BLS24_RANDOM_GENERATE(csprng *R, octet *S)</div><div class="ttdoc">Generate a random group element.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:223</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_abe201d5d755ae3b6fe4e127a7f701417"><div class="ttname"><a href="mpin192__BLS24_8h.html#abe201d5d755ae3b6fe4e127a7f701417">MPIN_BLS24_EXTRACT_PIN</a></div><div class="ttdeci">int MPIN_BLS24_EXTRACT_PIN(int h, octet *ID, int pin, octet *CS)</div><div class="ttdoc">Extract a PIN number from a client secret.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:238</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ac507184ecc61d59245ce7c87b005fecc"><div class="ttname"><a href="mpin192__BLS24_8h.html#ac507184ecc61d59245ce7c87b005fecc">MPIN_BLS24_CLIENT_2</a></div><div class="ttdeci">int MPIN_BLS24_CLIENT_2(octet *x, octet *y, octet *V)</div><div class="ttdoc">Perform second pass of the client side of the 3-pass version of the M-Pin protocol.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:289</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a101adecc2e2106075231ada691f7a8d0"><div class="ttname"><a href="mpin192__BLS24_8h.html#a101adecc2e2106075231ada691f7a8d0">MPIN_BLS24_CLIENT_KEY</a></div><div class="ttdeci">int MPIN_BLS24_CLIENT_KEY(int h, octet *g1, octet *g2, int pin, octet *r, octet *x, octet *p, octet *T, octet *K)</div><div class="ttdoc">Calculate Key on Client side for M-Pin Full.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:758</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a32985c8567593556295541b5c2ba773d"><div class="ttname"><a href="mpin192__BLS24_8h.html#a32985c8567593556295541b5c2ba773d">MPIN_BLS24_CLIENT</a></div><div class="ttdeci">int MPIN_BLS24_CLIENT(int h, int d, octet *ID, csprng *R, octet *x, int pin, octet *T, octet *V, octet *U, octet *UT, octet *TP, octet *MESSAGE, int t, octet *y)</div><div class="ttdoc">Perform client side of the one-pass version of the M-Pin protocol.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:856</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_acba2e63b4d1bc806e08903c04fa1ba31"><div class="ttname"><a href="mpin192__BLS24_8h.html#acba2e63b4d1bc806e08903c04fa1ba31">MPIN_BLS24_EXTRACT_FACTOR</a></div><div class="ttdeci">int MPIN_BLS24_EXTRACT_FACTOR(int h, octet *ID, int factor, int facbits, octet *CS)</div><div class="ttdoc">Extract a PIN number from a client secret.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:245</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ac91358bf206a5a27406aeecd8314b521"><div class="ttname"><a href="mpin192__BLS24_8h.html#ac91358bf206a5a27406aeecd8314b521">MPIN_BLS24_SERVER_2</a></div><div class="ttdeci">int MPIN_BLS24_SERVER_2(int d, octet *HID, octet *HTID, octet *y, octet *SS, octet *U, octet *UT, octet *V, octet *E, octet *F, octet *Pa)</div><div class="ttdoc">Perform third pass on the server side of the 3-pass version of the M-Pin protocol.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:550</div></div>
<div class="ttc" id="structcsprng_html"><div class="ttname"><a href="structcsprng.html">csprng</a></div><div class="ttdoc">Cryptographically secure pseudo-random number generator instance.</div><div class="ttdef"><b>Definition:</b> amcl.h:195</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_ad91d84482e4e856f0f1b96ce03df3589"><div class="ttname"><a href="mpin192__BLS24_8h.html#ad91d84482e4e856f0f1b96ce03df3589">MPIN_BLS24_GET_G1_MULTIPLE</a></div><div class="ttdeci">int MPIN_BLS24_GET_G1_MULTIPLE(csprng *R, int type, octet *x, octet *G, octet *W)</div><div class="ttdoc">Find a random multiple of a point in G1.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:316</div></div>
<div class="ttc" id="mpin192__BLS24_8h_html_a68f87ec8fafe90a03261ca10b4359bd9"><div class="ttname"><a href="mpin192__BLS24_8h.html#a68f87ec8fafe90a03261ca10b4359bd9">MPIN_BLS24_RECOMBINE_G2</a></div><div class="ttdeci">int MPIN_BLS24_RECOMBINE_G2(octet *P1, octet *P2, octet *P)</div><div class="ttdoc">Add two members from the group G2.</div><div class="ttdef"><b>Definition:</b> mpin192_BLS24.c:208</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>