| <!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: bls_BLS383.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&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&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">bls_BLS383.h</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="bls__BLS383_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> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <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> <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> <span class="comment">distributed with this work for additional information</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <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> <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> <span class="comment">"License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <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> <span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <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> <span class="comment"></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <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> <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> <span class="comment">"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <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> <span class="comment">specific language governing permissions and limitations</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">under the License.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">*/</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#ifndef BLS_BLS383_H</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#define BLS_BLS383_H</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="pair__BLS383_8h.html">pair_BLS383.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">/* Field size is assumed to be greater than or equal to group size */</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="bls__BLS383_8h.html#a841b0063df54fa6c5c32cb7fec57dc5a"> 39</a></span> <span class="preprocessor">#define BGS_BLS383 MODBYTES_384_58 </span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="bls__BLS383_8h.html#aa50997cea9ace1c530841ab67b9c4483"> 40</a></span> <span class="preprocessor">#define BFS_BLS383 MODBYTES_384_58 </span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="bls__BLS383_8h.html#a0954a33675757ad87dde21d92a448805"> 42</a></span> <span class="preprocessor">#define BLS_OK 0 </span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="bls__BLS383_8h.html#ad7ad1154a1fc1e13c0c9020ba3b2efa8"> 43</a></span> <span class="preprocessor">#define BLS_FAIL 41 </span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="bls__BLS383_8h.html#acf6e7c8f3dac9ed955df538eeddfe65a"> 44</a></span> <span class="preprocessor">#define BLS_INVALID_G1 42 </span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="bls__BLS383_8h.html#a0e1f50f8bd36bc147cf2c39e917047aa"> 45</a></span> <span class="preprocessor">#define BLS_INVALID_G2 43 </span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"></span><span class="comment">/* BLS API functions */</span><span class="preprocessor"></span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">int</span> <a class="code" href="bls__BLS383_8h.html#ab3efa286a082429f7a2cdbce4e388c97">BLS_BLS383_KEY_PAIR_GENERATE</a>(<a class="code" href="structcsprng.html">csprng</a> *RNG,<a class="code" href="structoctet.html">octet</a>* S,<a class="code" href="structoctet.html">octet</a> *W);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keywordtype">int</span> <a class="code" href="bls__BLS383_8h.html#a1d383ff4c866b7c7e4a4db653cfffc0b">BLS_BLS383_SIGN</a>(<a class="code" href="structoctet.html">octet</a> *SIG,<span class="keywordtype">char</span> *m,<a class="code" href="structoctet.html">octet</a> *S);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="keywordtype">int</span> <a class="code" href="bls__BLS383_8h.html#a3d85ac20f750866e30664de951009141">BLS_BLS383_VERIFY</a>(<a class="code" href="structoctet.html">octet</a> *SIG,<span class="keywordtype">char</span> *m,<a class="code" href="structoctet.html">octet</a> *W);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="keywordtype">int</span> <a class="code" href="bls__BLS383_8h.html#a8af42e8ca84798bacabc553418a1d047">BLS_BLS383_ADD_G1</a>(<a class="code" href="structoctet.html">octet</a> *R1,<a class="code" href="structoctet.html">octet</a> *R2,<a class="code" href="structoctet.html">octet</a> *R);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">int</span> <a class="code" href="bls__BLS383_8h.html#a59864c22372e6096b50bb8a8a43c3cab">BLS_BLS383_ADD_G2</a>(<a class="code" href="structoctet.html">octet</a> *W1,<a class="code" href="structoctet.html">octet</a> *W2,<a class="code" href="structoctet.html">octet</a> *W);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="ttc" id="bls__BLS383_8h_html_a1d383ff4c866b7c7e4a4db653cfffc0b"><div class="ttname"><a href="bls__BLS383_8h.html#a1d383ff4c866b7c7e4a4db653cfffc0b">BLS_BLS383_SIGN</a></div><div class="ttdeci">int BLS_BLS383_SIGN(octet *SIG, char *m, octet *S)</div><div class="ttdoc">Calculate a signature.</div><div class="ttdef"><b>Definition:</b> bls_BLS383.c:58</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="bls__BLS383_8h_html_ab3efa286a082429f7a2cdbce4e388c97"><div class="ttname"><a href="bls__BLS383_8h.html#ab3efa286a082429f7a2cdbce4e388c97">BLS_BLS383_KEY_PAIR_GENERATE</a></div><div class="ttdeci">int BLS_BLS383_KEY_PAIR_GENERATE(csprng *RNG, octet *S, octet *W)</div><div class="ttdoc">Generate Key Pair.</div><div class="ttdef"><b>Definition:</b> bls_BLS383.c:43</div></div> |
| <div class="ttc" id="bls__BLS383_8h_html_a59864c22372e6096b50bb8a8a43c3cab"><div class="ttname"><a href="bls__BLS383_8h.html#a59864c22372e6096b50bb8a8a43c3cab">BLS_BLS383_ADD_G2</a></div><div class="ttdeci">int BLS_BLS383_ADD_G2(octet *W1, octet *W2, octet *W)</div><div class="ttdoc">Add two members from the group G2.</div><div class="ttdef"><b>Definition:</b> bls_BLS383.c:124</div></div> |
| <div class="ttc" id="bls__BLS383_8h_html_a3d85ac20f750866e30664de951009141"><div class="ttname"><a href="bls__BLS383_8h.html#a3d85ac20f750866e30664de951009141">BLS_BLS383_VERIFY</a></div><div class="ttdeci">int BLS_BLS383_VERIFY(octet *SIG, char *m, octet *W)</div><div class="ttdoc">Verify a signature.</div><div class="ttdef"><b>Definition:</b> bls_BLS383.c:71</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="pair__BLS383_8h_html"><div class="ttname"><a href="pair__BLS383_8h.html">pair_BLS383.h</a></div><div class="ttdoc">PAIR Header File.</div></div> |
| <div class="ttc" id="bls__BLS383_8h_html_a8af42e8ca84798bacabc553418a1d047"><div class="ttname"><a href="bls__BLS383_8h.html#a8af42e8ca84798bacabc553418a1d047">BLS_BLS383_ADD_G1</a></div><div class="ttdeci">int BLS_BLS383_ADD_G1(octet *R1, octet *R2, octet *R)</div><div class="ttdoc">Add two members from the group G1.</div><div class="ttdef"><b>Definition:</b> bls_BLS383.c:102</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.15 |
| </small></address> |
| </body> |
| </html> |