<!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"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: EcPrecomputation< EC2N > Class Template 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="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">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <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('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="class_ec_precomputation_3_01_e_c2_n_01_4-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">EcPrecomputation< EC2N > Class Template Reference</div> </div> </div><!--header--> <div class="contents"> <p><a class="el" href="class_e_c2_n.html" title="Elliptic Curve over GF(2^n) ">EC2N</a> precomputation specialization. <a href="class_ec_precomputation_3_01_e_c2_n_01_4.html#details">More...</a></p> <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for EcPrecomputation< EC2N >:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"> <img src="class_ec_precomputation_3_01_e_c2_n_01_4.png" usemap="#EcPrecomputation_3C_20EC2N_20_3E_map" alt=""/> <map id="EcPrecomputation_3C_20EC2N_20_3E_map" name="EcPrecomputation_3C_20EC2N_20_3E_map"> <area href="class_d_l___group_precomputation.html" alt="DL_GroupPrecomputation< EC2N::Point >" shape="rect" coords="0,0,248,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:a11cba94e6a64bd6cc9ff2387bb1c72b2"><td class="memItemLeft" align="right" valign="top"><a id="a11cba94e6a64bd6cc9ff2387bb1c72b2"></a> typedef <a class="el" href="class_e_c2_n.html">EC2N</a> </td><td class="memItemRight" valign="bottom"><b>EllipticCurve</b></td></tr> <tr class="separator:a11cba94e6a64bd6cc9ff2387bb1c72b2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_types_class_d_l___group_precomputation"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_d_l___group_precomputation')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="class_d_l___group_precomputation.html">DL_GroupPrecomputation< EC2N::Point ></a></td></tr> <tr class="memitem:ae54cf09e58043cb37253a0ede3a1a435 inherit pub_types_class_d_l___group_precomputation"><td class="memItemLeft" align="right" valign="top"><a id="ae54cf09e58043cb37253a0ede3a1a435"></a> typedef <a class="el" href="struct_e_c2_n_point.html">EC2N::Point</a> </td><td class="memItemRight" valign="bottom"><b>Element</b></td></tr> <tr class="separator:ae54cf09e58043cb37253a0ede3a1a435 inherit pub_types_class_d_l___group_precomputation"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a5d0a558f216ce96b8c12c0d9417880b1"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_abstract_group.html">AbstractGroup</a>< <a class="el" href="struct_e_c2_n_point.html">Element</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#a5d0a558f216ce96b8c12c0d9417880b1">GetGroup</a> () const</td></tr> <tr class="memdesc:a5d0a558f216ce96b8c12c0d9417880b1"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves <a class="el" href="class_abstract_group.html" title="Abstract group. ">AbstractGroup</a> interface. <a href="#a5d0a558f216ce96b8c12c0d9417880b1">More...</a><br /></td></tr> <tr class="separator:a5d0a558f216ce96b8c12c0d9417880b1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a355bfce7a7314a69082304691ef8e7a4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_e_c2_n_point.html">Element</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#a355bfce7a7314a69082304691ef8e7a4">BERDecodeElement</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt) const</td></tr> <tr class="memdesc:a355bfce7a7314a69082304691ef8e7a4"><td class="mdescLeft"> </td><td class="mdescRight">Decodes element in DER format. <a href="#a355bfce7a7314a69082304691ef8e7a4">More...</a><br /></td></tr> <tr class="separator:a355bfce7a7314a69082304691ef8e7a4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aabca79f84280030cec0e2326383ffd55"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#aabca79f84280030cec0e2326383ffd55">DEREncodeElement</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt, const <a class="el" href="struct_e_c2_n_point.html">Element</a> &v) const</td></tr> <tr class="memdesc:aabca79f84280030cec0e2326383ffd55"><td class="mdescLeft"> </td><td class="mdescRight">Encodes element in DER format. <a href="#aabca79f84280030cec0e2326383ffd55">More...</a><br /></td></tr> <tr class="separator:aabca79f84280030cec0e2326383ffd55"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a409adbeecc3435736d437c5dc6ac4f4b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#a409adbeecc3435736d437c5dc6ac4f4b">SetCurve</a> (const <a class="el" href="class_e_c2_n.html">EC2N</a> &ec)</td></tr> <tr class="memdesc:a409adbeecc3435736d437c5dc6ac4f4b"><td class="mdescLeft"> </td><td class="mdescRight">Set the elliptic curve. <a href="#a409adbeecc3435736d437c5dc6ac4f4b">More...</a><br /></td></tr> <tr class="separator:a409adbeecc3435736d437c5dc6ac4f4b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa9e890b30c878d4460be110e3727533c"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_e_c2_n.html">EC2N</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#aa9e890b30c878d4460be110e3727533c">GetCurve</a> () const</td></tr> <tr class="memdesc:aa9e890b30c878d4460be110e3727533c"><td class="mdescLeft"> </td><td class="mdescRight">Get the elliptic curve. <a href="#aa9e890b30c878d4460be110e3727533c">More...</a><br /></td></tr> <tr class="separator:aa9e890b30c878d4460be110e3727533c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_d_l___group_precomputation"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_d_l___group_precomputation')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_d_l___group_precomputation.html">DL_GroupPrecomputation< EC2N::Point ></a></td></tr> <tr class="memitem:af06195fe5dbbf8da4491a9b7356b1293 inherit pub_methods_class_d_l___group_precomputation"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___group_precomputation.html#af06195fe5dbbf8da4491a9b7356b1293">NeedConversions</a> () const</td></tr> <tr class="memdesc:af06195fe5dbbf8da4491a9b7356b1293 inherit pub_methods_class_d_l___group_precomputation"><td class="mdescLeft"> </td><td class="mdescRight">Determines if elements needs conversion. <a href="class_d_l___group_precomputation.html#af06195fe5dbbf8da4491a9b7356b1293">More...</a><br /></td></tr> <tr class="separator:af06195fe5dbbf8da4491a9b7356b1293 inherit pub_methods_class_d_l___group_precomputation"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a00f3c02e34f54656758c584cdcfd4224 inherit pub_methods_class_d_l___group_precomputation"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="struct_e_c2_n_point.html">Element</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___group_precomputation.html#a00f3c02e34f54656758c584cdcfd4224">ConvertIn</a> (const <a class="el" href="struct_e_c2_n_point.html">Element</a> &v) const</td></tr> <tr class="memdesc:a00f3c02e34f54656758c584cdcfd4224 inherit pub_methods_class_d_l___group_precomputation"><td class="mdescLeft"> </td><td class="mdescRight">Converts an element between representations. <a href="class_d_l___group_precomputation.html#a00f3c02e34f54656758c584cdcfd4224">More...</a><br /></td></tr> <tr class="separator:a00f3c02e34f54656758c584cdcfd4224 inherit pub_methods_class_d_l___group_precomputation"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab8f09285b6a3900a14facedd6925552f inherit pub_methods_class_d_l___group_precomputation"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="struct_e_c2_n_point.html">Element</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_l___group_precomputation.html#ab8f09285b6a3900a14facedd6925552f">ConvertOut</a> (const <a class="el" href="struct_e_c2_n_point.html">Element</a> &v) const</td></tr> <tr class="memdesc:ab8f09285b6a3900a14facedd6925552f inherit pub_methods_class_d_l___group_precomputation"><td class="mdescLeft"> </td><td class="mdescRight">Converts an element between representations. <a href="class_d_l___group_precomputation.html#ab8f09285b6a3900a14facedd6925552f">More...</a><br /></td></tr> <tr class="separator:ab8f09285b6a3900a14facedd6925552f inherit pub_methods_class_d_l___group_precomputation"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><h3>template<><br /> class EcPrecomputation< EC2N ></h3> <p><a class="el" href="class_e_c2_n.html" title="Elliptic Curve over GF(2^n) ">EC2N</a> precomputation specialization. </p> <p>Implementation of <code><a class="el" href="class_d_l___group_precomputation.html">DL_GroupPrecomputation<EC2N::Point></a></code> </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_d_l___group_precomputation.html" title="DL_GroupPrecomputation interface. ">DL_GroupPrecomputation</a> </dd></dl> <p class="definition">Definition at line <a class="el" href="ec2n_8h_source.html#l00105">105</a> of file <a class="el" href="ec2n_8h_source.html">ec2n.h</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="a5d0a558f216ce96b8c12c0d9417880b1"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5d0a558f216ce96b8c12c0d9417880b1">◆ </a></span>GetGroup()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="class_abstract_group.html">AbstractGroup</a><<a class="el" href="struct_e_c2_n_point.html">Element</a>>& <a class="el" href="class_ec_precomputation.html">EcPrecomputation</a>< <a class="el" href="class_e_c2_n.html">EC2N</a> >::GetGroup </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Retrieves <a class="el" href="class_abstract_group.html" title="Abstract group. ">AbstractGroup</a> interface. </p> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#a5d0a558f216ce96b8c12c0d9417880b1" title="Retrieves AbstractGroup interface. ">GetGroup()</a> returns the <a class="el" href="class_abstract_group.html" title="Abstract group. ">AbstractGroup</a> interface </dd></dl> <p>Implements <a class="el" href="class_d_l___group_precomputation.html#aaa3cb55f3c6e051f8e769711784d4bcd">DL_GroupPrecomputation< EC2N::Point ></a>.</p> <p class="definition">Definition at line <a class="el" href="ec2n_8h_source.html#l00113">113</a> of file <a class="el" href="ec2n_8h_source.html">ec2n.h</a>.</p> </div> </div> <a id="a355bfce7a7314a69082304691ef8e7a4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a355bfce7a7314a69082304691ef8e7a4">◆ </a></span>BERDecodeElement()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="struct_e_c2_n_point.html">Element</a> <a class="el" href="class_ec_precomputation.html">EcPrecomputation</a>< <a class="el" href="class_e_c2_n.html">EC2N</a> >::BERDecodeElement </td> <td>(</td> <td class="paramtype"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> & </td> <td class="paramname"><em>bt</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Decodes element in DER format. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">bt</td><td><a class="el" href="class_buffered_transformation.html" title="Interface for buffered transformations. ">BufferedTransformation</a> object </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>element in the group </dd></dl> <p>Implements <a class="el" href="class_d_l___group_precomputation.html#a43a840afa6f0e49a60c28883380c6990">DL_GroupPrecomputation< EC2N::Point ></a>.</p> <p class="definition">Definition at line <a class="el" href="ec2n_8h_source.html#l00114">114</a> of file <a class="el" href="ec2n_8h_source.html">ec2n.h</a>.</p> </div> </div> <a id="aabca79f84280030cec0e2326383ffd55"></a> <h2 class="memtitle"><span class="permalink"><a href="#aabca79f84280030cec0e2326383ffd55">◆ </a></span>DEREncodeElement()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void <a class="el" href="class_ec_precomputation.html">EcPrecomputation</a>< <a class="el" href="class_e_c2_n.html">EC2N</a> >::DEREncodeElement </td> <td>(</td> <td class="paramtype"><a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> & </td> <td class="paramname"><em>bt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="struct_e_c2_n_point.html">Element</a> & </td> <td class="paramname"><em>P</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Encodes element in DER format. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">bt</td><td><a class="el" href="class_buffered_transformation.html" title="Interface for buffered transformations. ">BufferedTransformation</a> object </td></tr> <tr><td class="paramname">P</td><td>Element to encode </td></tr> </table> </dd> </dl> <p>Implements <a class="el" href="class_d_l___group_precomputation.html#a6b6549c73ef485921210e88325e9dca1">DL_GroupPrecomputation< EC2N::Point ></a>.</p> <p class="definition">Definition at line <a class="el" href="ec2n_8h_source.html#l00115">115</a> of file <a class="el" href="ec2n_8h_source.html">ec2n.h</a>.</p> </div> </div> <a id="a409adbeecc3435736d437c5dc6ac4f4b"></a> <h2 class="memtitle"><span class="permalink"><a href="#a409adbeecc3435736d437c5dc6ac4f4b">◆ </a></span>SetCurve()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void <a class="el" href="class_ec_precomputation.html">EcPrecomputation</a>< <a class="el" href="class_e_c2_n.html">EC2N</a> >::SetCurve </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_e_c2_n.html">EC2N</a> & </td> <td class="paramname"><em>ec</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set the elliptic curve. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ec</td><td><a class="el" href="class_e_c_p.html" title="Elliptic Curve over GF(p), where p is prime. ">ECP</a> derived class</td></tr> </table> </dd> </dl> <p><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#a409adbeecc3435736d437c5dc6ac4f4b" title="Set the elliptic curve. ">SetCurve()</a> is not inherited </p> <p class="definition">Definition at line <a class="el" href="ec2n_8h_source.html#l00120">120</a> of file <a class="el" href="ec2n_8h_source.html">ec2n.h</a>.</p> </div> </div> <a id="aa9e890b30c878d4460be110e3727533c"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa9e890b30c878d4460be110e3727533c">◆ </a></span>GetCurve()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="class_e_c2_n.html">EC2N</a>& <a class="el" href="class_ec_precomputation.html">EcPrecomputation</a>< <a class="el" href="class_e_c2_n.html">EC2N</a> >::GetCurve </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Get the elliptic curve. </p> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_e_c2_n.html" title="Elliptic Curve over GF(2^n) ">EC2N</a> curve</dd></dl> <p><a class="el" href="class_ec_precomputation_3_01_e_c2_n_01_4.html#aa9e890b30c878d4460be110e3727533c" title="Get the elliptic curve. ">GetCurve()</a> is not inherited </p> <p class="definition">Definition at line <a class="el" href="ec2n_8h_source.html#l00125">125</a> of file <a class="el" href="ec2n_8h_source.html">ec2n.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="ec2n_8h_source.html">ec2n.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:58:32 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>