<!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++: LUCFunction Class 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-methods">Public Member Functions</a> | <a href="class_l_u_c_function-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">LUCFunction Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>The <a class="el" href="struct_l_u_c.html" title="LUC cryptosystem. ">LUC</a> function. <a href="class_l_u_c_function.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 LUCFunction:</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_l_u_c_function.png" usemap="#LUCFunction_map" alt=""/> <map id="LUCFunction_map" name="LUCFunction_map"> <area href="class_trapdoor_function.html" title="Applies the trapdoor function. " alt="TrapdoorFunction" shape="rect" coords="0,112,181,136"/> <area href="class_public_key.html" title="Interface for public keys. " alt="PublicKey" shape="rect" coords="191,112,372,136"/> <area href="class_randomized_trapdoor_function.html" title="Applies the trapdoor function, using random data if required. " alt="RandomizedTrapdoorFunction" shape="rect" coords="0,56,181,80"/> <area href="class_crypto_material.html" title="Interface for crypto material, such as public and private keys, and crypto parameters. " alt="CryptoMaterial" shape="rect" coords="191,56,372,80"/> <area href="class_trapdoor_function_bounds.html" title="Provides range for plaintext and ciphertext lengths. " alt="TrapdoorFunctionBounds" shape="rect" coords="0,0,181,24"/> <area href="class_name_value_pairs.html" title="Interface for retrieving values given their names. " alt="NameValuePairs" shape="rect" coords="191,0,372,24"/> <area href="class_invertible_l_u_c_function.html" title="The LUC inverse function. " alt="InvertibleLUCFunction" shape="rect" coords="95,224,276,248"/> </map> </div></div> <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:a5d8eb9d2acd130a768326200e3c6ac40"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_u_c_function.html#a5d8eb9d2acd130a768326200e3c6ac40">Initialize</a> (const <a class="el" href="class_integer.html">Integer</a> &n, const <a class="el" href="class_integer.html">Integer</a> &e)</td></tr> <tr class="memdesc:a5d8eb9d2acd130a768326200e3c6ac40"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a <a class="el" href="struct_l_u_c.html" title="LUC cryptosystem. ">LUC</a> public key with {n,e}. <a href="#a5d8eb9d2acd130a768326200e3c6ac40">More...</a><br /></td></tr> <tr class="separator:a5d8eb9d2acd130a768326200e3c6ac40"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4250f047087d8c74ac2a2faf887b6155"><td class="memItemLeft" align="right" valign="top"><a id="a4250f047087d8c74ac2a2faf887b6155"></a> void </td><td class="memItemRight" valign="bottom"><b>BERDecode</b> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt)</td></tr> <tr class="separator:a4250f047087d8c74ac2a2faf887b6155"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2c85fee3bdd56c9299ddfa9d72f55f9f"><td class="memItemLeft" align="right" valign="top"><a id="a2c85fee3bdd56c9299ddfa9d72f55f9f"></a> void </td><td class="memItemRight" valign="bottom"><b>DEREncode</b> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt) const</td></tr> <tr class="separator:a2c85fee3bdd56c9299ddfa9d72f55f9f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae23d0c06b0c29ff4f51e7b1f09724ab5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_u_c_function.html#ae23d0c06b0c29ff4f51e7b1f09724ab5">ApplyFunction</a> (const <a class="el" href="class_integer.html">Integer</a> &x) const</td></tr> <tr class="memdesc:ae23d0c06b0c29ff4f51e7b1f09724ab5"><td class="mdescLeft"> </td><td class="mdescRight">Applies the trapdoor. <a href="#ae23d0c06b0c29ff4f51e7b1f09724ab5">More...</a><br /></td></tr> <tr class="separator:ae23d0c06b0c29ff4f51e7b1f09724ab5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1497f939adba34c6370c8a17f9389f68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_u_c_function.html#a1497f939adba34c6370c8a17f9389f68">PreimageBound</a> () const</td></tr> <tr class="memdesc:a1497f939adba34c6370c8a17f9389f68"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message before the trapdoor function is applied. <a href="#a1497f939adba34c6370c8a17f9389f68">More...</a><br /></td></tr> <tr class="separator:a1497f939adba34c6370c8a17f9389f68"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae80bec9ec3f76dbdb248aeef19777ef9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_u_c_function.html#ae80bec9ec3f76dbdb248aeef19777ef9">ImageBound</a> () const</td></tr> <tr class="memdesc:ae80bec9ec3f76dbdb248aeef19777ef9"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message after the trapdoor function is applied. <a href="#ae80bec9ec3f76dbdb248aeef19777ef9">More...</a><br /></td></tr> <tr class="separator:ae80bec9ec3f76dbdb248aeef19777ef9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aba4694feec6ef453e2ef0f6fb586ca0c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_u_c_function.html#aba4694feec6ef453e2ef0f6fb586ca0c">Validate</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, unsigned int level) const</td></tr> <tr class="memdesc:aba4694feec6ef453e2ef0f6fb586ca0c"><td class="mdescLeft"> </td><td class="mdescRight">Check this object for errors. <a href="#aba4694feec6ef453e2ef0f6fb586ca0c">More...</a><br /></td></tr> <tr class="separator:aba4694feec6ef453e2ef0f6fb586ca0c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a46c1eaf8b0f5183fe1ec903ea25950ad"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_u_c_function.html#a46c1eaf8b0f5183fe1ec903ea25950ad">GetVoidValue</a> (const char *name, const std::type_info &valueType, void *pValue) const</td></tr> <tr class="memdesc:a46c1eaf8b0f5183fe1ec903ea25950ad"><td class="mdescLeft"> </td><td class="mdescRight">Get a named value. <a href="#a46c1eaf8b0f5183fe1ec903ea25950ad">More...</a><br /></td></tr> <tr class="separator:a46c1eaf8b0f5183fe1ec903ea25950ad"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af6a95ed660e53a5fa07841f139d43ccf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_u_c_function.html#af6a95ed660e53a5fa07841f139d43ccf">AssignFrom</a> (const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &source)</td></tr> <tr class="memdesc:af6a95ed660e53a5fa07841f139d43ccf"><td class="mdescLeft"> </td><td class="mdescRight">Assign values to this object. <a href="#af6a95ed660e53a5fa07841f139d43ccf">More...</a><br /></td></tr> <tr class="separator:af6a95ed660e53a5fa07841f139d43ccf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aefaa2b4edac9236ef2f2fecb0d7801f0"><td class="memItemLeft" align="right" valign="top"><a id="aefaa2b4edac9236ef2f2fecb0d7801f0"></a> const <a class="el" href="class_integer.html">Integer</a> & </td><td class="memItemRight" valign="bottom"><b>GetModulus</b> () const</td></tr> <tr class="separator:aefaa2b4edac9236ef2f2fecb0d7801f0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adb5485e2919c45e0e69f1a20066d156f"><td class="memItemLeft" align="right" valign="top"><a id="adb5485e2919c45e0e69f1a20066d156f"></a> const <a class="el" href="class_integer.html">Integer</a> & </td><td class="memItemRight" valign="bottom"><b>GetPublicExponent</b> () const</td></tr> <tr class="separator:adb5485e2919c45e0e69f1a20066d156f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a835af704304ce8f7fca4c522a5493dfd"><td class="memItemLeft" align="right" valign="top"><a id="a835af704304ce8f7fca4c522a5493dfd"></a> void </td><td class="memItemRight" valign="bottom"><b>SetModulus</b> (const <a class="el" href="class_integer.html">Integer</a> &n)</td></tr> <tr class="separator:a835af704304ce8f7fca4c522a5493dfd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aede72346e848ed00fd5f772e849b1655"><td class="memItemLeft" align="right" valign="top"><a id="aede72346e848ed00fd5f772e849b1655"></a> void </td><td class="memItemRight" valign="bottom"><b>SetPublicExponent</b> (const <a class="el" href="class_integer.html">Integer</a> &e)</td></tr> <tr class="separator:aede72346e848ed00fd5f772e849b1655"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_trapdoor_function"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_trapdoor_function')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_trapdoor_function.html">TrapdoorFunction</a></td></tr> <tr class="memitem:a831474e986ac5c379ca55aa6675daf4b inherit pub_methods_class_trapdoor_function"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_trapdoor_function.html#a831474e986ac5c379ca55aa6675daf4b">ApplyRandomizedFunction</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, const <a class="el" href="class_integer.html">Integer</a> &x) const</td></tr> <tr class="memdesc:a831474e986ac5c379ca55aa6675daf4b inherit pub_methods_class_trapdoor_function"><td class="mdescLeft"> </td><td class="mdescRight">Applies the trapdoor function. <a href="class_trapdoor_function.html#a831474e986ac5c379ca55aa6675daf4b">More...</a><br /></td></tr> <tr class="separator:a831474e986ac5c379ca55aa6675daf4b inherit pub_methods_class_trapdoor_function"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a253eb5db8020326f869a4580e21bf5d8 inherit pub_methods_class_trapdoor_function"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_trapdoor_function.html#a253eb5db8020326f869a4580e21bf5d8">IsRandomized</a> () const</td></tr> <tr class="memdesc:a253eb5db8020326f869a4580e21bf5d8 inherit pub_methods_class_trapdoor_function"><td class="mdescLeft"> </td><td class="mdescRight">Determines if the encryption algorithm is randomized. <a href="class_trapdoor_function.html#a253eb5db8020326f869a4580e21bf5d8">More...</a><br /></td></tr> <tr class="separator:a253eb5db8020326f869a4580e21bf5d8 inherit pub_methods_class_trapdoor_function"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_trapdoor_function_bounds"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_trapdoor_function_bounds')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_trapdoor_function_bounds.html">TrapdoorFunctionBounds</a></td></tr> <tr class="memitem:ab85b47c9c3df4cf1030eff786ab11d5b inherit pub_methods_class_trapdoor_function_bounds"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_trapdoor_function_bounds.html#ab85b47c9c3df4cf1030eff786ab11d5b">MaxPreimage</a> () const</td></tr> <tr class="memdesc:ab85b47c9c3df4cf1030eff786ab11d5b inherit pub_methods_class_trapdoor_function_bounds"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message before the trapdoor function is applied bound to a public key. <a href="class_trapdoor_function_bounds.html#ab85b47c9c3df4cf1030eff786ab11d5b">More...</a><br /></td></tr> <tr class="separator:ab85b47c9c3df4cf1030eff786ab11d5b inherit pub_methods_class_trapdoor_function_bounds"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b505cf1a3494645998e7e0872b76a72 inherit pub_methods_class_trapdoor_function_bounds"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_integer.html">Integer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_trapdoor_function_bounds.html#a9b505cf1a3494645998e7e0872b76a72">MaxImage</a> () const</td></tr> <tr class="memdesc:a9b505cf1a3494645998e7e0872b76a72 inherit pub_methods_class_trapdoor_function_bounds"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message after the trapdoor function is applied bound to a public key. <a href="class_trapdoor_function_bounds.html#a9b505cf1a3494645998e7e0872b76a72">More...</a><br /></td></tr> <tr class="separator:a9b505cf1a3494645998e7e0872b76a72 inherit pub_methods_class_trapdoor_function_bounds"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_crypto_material"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_crypto_material')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_crypto_material.html">CryptoMaterial</a></td></tr> <tr class="memitem:aedb65ba5323f7bb41fc57973566d20cd inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#aedb65ba5323f7bb41fc57973566d20cd">ThrowIfInvalid</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, unsigned int level) const</td></tr> <tr class="memdesc:aedb65ba5323f7bb41fc57973566d20cd inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Check this object for errors. <a href="class_crypto_material.html#aedb65ba5323f7bb41fc57973566d20cd">More...</a><br /></td></tr> <tr class="separator:aedb65ba5323f7bb41fc57973566d20cd inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a12d0186a42abb68cfc3538c1fe3e3de4 inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#a12d0186a42abb68cfc3538c1fe3e3de4">Save</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt) const</td></tr> <tr class="memdesc:a12d0186a42abb68cfc3538c1fe3e3de4 inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Saves a key to a <a class="el" href="class_buffered_transformation.html" title="Interface for buffered transformations. ">BufferedTransformation</a>. <a href="class_crypto_material.html#a12d0186a42abb68cfc3538c1fe3e3de4">More...</a><br /></td></tr> <tr class="separator:a12d0186a42abb68cfc3538c1fe3e3de4 inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae7a94de4c3d3822070db5babbdf8b113 inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#ae7a94de4c3d3822070db5babbdf8b113">Load</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &bt)</td></tr> <tr class="memdesc:ae7a94de4c3d3822070db5babbdf8b113 inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Loads a key from a <a class="el" href="class_buffered_transformation.html" title="Interface for buffered transformations. ">BufferedTransformation</a>. <a href="class_crypto_material.html#ae7a94de4c3d3822070db5babbdf8b113">More...</a><br /></td></tr> <tr class="separator:ae7a94de4c3d3822070db5babbdf8b113 inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a35720c07870fcda4ae39148f8524274e inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#a35720c07870fcda4ae39148f8524274e">SupportsPrecomputation</a> () const</td></tr> <tr class="memdesc:a35720c07870fcda4ae39148f8524274e inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Determines whether the object supports precomputation. <a href="class_crypto_material.html#a35720c07870fcda4ae39148f8524274e">More...</a><br /></td></tr> <tr class="separator:a35720c07870fcda4ae39148f8524274e inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a78380e019615a35d06e951a0f28e0a99 inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#a78380e019615a35d06e951a0f28e0a99">Precompute</a> (unsigned int precomputationStorage)</td></tr> <tr class="memdesc:a78380e019615a35d06e951a0f28e0a99 inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Perform precomputation. <a href="class_crypto_material.html#a78380e019615a35d06e951a0f28e0a99">More...</a><br /></td></tr> <tr class="separator:a78380e019615a35d06e951a0f28e0a99 inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2911ebd9a28efa43dab71e5c12e2c90d inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#a2911ebd9a28efa43dab71e5c12e2c90d">LoadPrecomputation</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &storedPrecomputation)</td></tr> <tr class="memdesc:a2911ebd9a28efa43dab71e5c12e2c90d inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve previously saved precomputation. <a href="class_crypto_material.html#a2911ebd9a28efa43dab71e5c12e2c90d">More...</a><br /></td></tr> <tr class="separator:a2911ebd9a28efa43dab71e5c12e2c90d inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a65b905e1af3efb962c356d49d2c90e73 inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#a65b905e1af3efb962c356d49d2c90e73">SavePrecomputation</a> (<a class="el" href="class_buffered_transformation.html">BufferedTransformation</a> &storedPrecomputation) const</td></tr> <tr class="memdesc:a65b905e1af3efb962c356d49d2c90e73 inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Save precomputation for later use. <a href="class_crypto_material.html#a65b905e1af3efb962c356d49d2c90e73">More...</a><br /></td></tr> <tr class="separator:a65b905e1af3efb962c356d49d2c90e73 inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa1da44802c5cf00946043922cb9e7e6e inherit pub_methods_class_crypto_material"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_crypto_material.html#aa1da44802c5cf00946043922cb9e7e6e">DoQuickSanityCheck</a> () const</td></tr> <tr class="memdesc:aa1da44802c5cf00946043922cb9e7e6e inherit pub_methods_class_crypto_material"><td class="mdescLeft"> </td><td class="mdescRight">Perform a quick sanity check. <a href="class_crypto_material.html#aa1da44802c5cf00946043922cb9e7e6e">More...</a><br /></td></tr> <tr class="separator:aa1da44802c5cf00946043922cb9e7e6e inherit pub_methods_class_crypto_material"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_name_value_pairs"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_name_value_pairs')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_name_value_pairs.html">NameValuePairs</a></td></tr> <tr class="memitem:a3401528f3d69d70f200086501b8af282 inherit pub_methods_class_name_value_pairs"><td class="memTemplParams" colspan="2">template<class T > </td></tr> <tr class="memitem:a3401528f3d69d70f200086501b8af282 inherit pub_methods_class_name_value_pairs"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#a3401528f3d69d70f200086501b8af282">GetThisObject</a> (T &object) const</td></tr> <tr class="memdesc:a3401528f3d69d70f200086501b8af282 inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Get a copy of this object or subobject. <a href="class_name_value_pairs.html#a3401528f3d69d70f200086501b8af282">More...</a><br /></td></tr> <tr class="separator:a3401528f3d69d70f200086501b8af282 inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abce7b413ce1345ab7b7d05fa3d1834f5 inherit pub_methods_class_name_value_pairs"><td class="memTemplParams" colspan="2">template<class T > </td></tr> <tr class="memitem:abce7b413ce1345ab7b7d05fa3d1834f5 inherit pub_methods_class_name_value_pairs"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#abce7b413ce1345ab7b7d05fa3d1834f5">GetThisPointer</a> (T *&ptr) const</td></tr> <tr class="memdesc:abce7b413ce1345ab7b7d05fa3d1834f5 inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Get a pointer to this object. <a href="class_name_value_pairs.html#abce7b413ce1345ab7b7d05fa3d1834f5">More...</a><br /></td></tr> <tr class="separator:abce7b413ce1345ab7b7d05fa3d1834f5 inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5357c3a09602e44671d1e42cb9a9408d inherit pub_methods_class_name_value_pairs"><td class="memTemplParams" colspan="2">template<class T > </td></tr> <tr class="memitem:a5357c3a09602e44671d1e42cb9a9408d inherit pub_methods_class_name_value_pairs"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#a5357c3a09602e44671d1e42cb9a9408d">GetValue</a> (const char *name, T &value) const</td></tr> <tr class="memdesc:a5357c3a09602e44671d1e42cb9a9408d inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Get a named value. <a href="class_name_value_pairs.html#a5357c3a09602e44671d1e42cb9a9408d">More...</a><br /></td></tr> <tr class="separator:a5357c3a09602e44671d1e42cb9a9408d inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4daf1ef67b547c6be96188a43e5ec05e inherit pub_methods_class_name_value_pairs"><td class="memTemplParams" colspan="2">template<class T > </td></tr> <tr class="memitem:a4daf1ef67b547c6be96188a43e5ec05e inherit pub_methods_class_name_value_pairs"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#a4daf1ef67b547c6be96188a43e5ec05e">GetValueWithDefault</a> (const char *name, T defaultValue) const</td></tr> <tr class="memdesc:a4daf1ef67b547c6be96188a43e5ec05e inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Get a named value. <a href="class_name_value_pairs.html#a4daf1ef67b547c6be96188a43e5ec05e">More...</a><br /></td></tr> <tr class="separator:a4daf1ef67b547c6be96188a43e5ec05e inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a13faea827ee047cd58557282806ed2e1 inherit pub_methods_class_name_value_pairs"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#a13faea827ee047cd58557282806ed2e1">GetValueNames</a> () const</td></tr> <tr class="memdesc:a13faea827ee047cd58557282806ed2e1 inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Get a list of value names that can be retrieved. <a href="class_name_value_pairs.html#a13faea827ee047cd58557282806ed2e1">More...</a><br /></td></tr> <tr class="separator:a13faea827ee047cd58557282806ed2e1 inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a94e5b19dc54625799797668ff8627c57 inherit pub_methods_class_name_value_pairs"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#a94e5b19dc54625799797668ff8627c57">GetIntValue</a> (const char *name, int &value) const</td></tr> <tr class="memdesc:a94e5b19dc54625799797668ff8627c57 inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Get a named value with type int. <a href="class_name_value_pairs.html#a94e5b19dc54625799797668ff8627c57">More...</a><br /></td></tr> <tr class="separator:a94e5b19dc54625799797668ff8627c57 inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7ddb654b7afcd1a04422a7b4b01366d9 inherit pub_methods_class_name_value_pairs"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#a7ddb654b7afcd1a04422a7b4b01366d9">GetIntValueWithDefault</a> (const char *name, int defaultValue) const</td></tr> <tr class="memdesc:a7ddb654b7afcd1a04422a7b4b01366d9 inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Get a named value with type int, with default. <a href="class_name_value_pairs.html#a7ddb654b7afcd1a04422a7b4b01366d9">More...</a><br /></td></tr> <tr class="separator:a7ddb654b7afcd1a04422a7b4b01366d9 inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af28f6e7abf98606d8146bfda271e99db inherit pub_methods_class_name_value_pairs"><td class="memTemplParams" colspan="2">template<class T > </td></tr> <tr class="memitem:af28f6e7abf98606d8146bfda271e99db inherit pub_methods_class_name_value_pairs"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#af28f6e7abf98606d8146bfda271e99db">GetRequiredParameter</a> (const char *className, const char *name, T &value) const</td></tr> <tr class="memdesc:af28f6e7abf98606d8146bfda271e99db inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a required name/value pair. <a href="class_name_value_pairs.html#af28f6e7abf98606d8146bfda271e99db">More...</a><br /></td></tr> <tr class="separator:af28f6e7abf98606d8146bfda271e99db inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acfb673d912e1bc19386bebba9d58c23f inherit pub_methods_class_name_value_pairs"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#acfb673d912e1bc19386bebba9d58c23f">GetRequiredIntParameter</a> (const char *className, const char *name, int &value) const</td></tr> <tr class="memdesc:acfb673d912e1bc19386bebba9d58c23f inherit pub_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a required name/value pair. <a href="class_name_value_pairs.html#acfb673d912e1bc19386bebba9d58c23f">More...</a><br /></td></tr> <tr class="separator:acfb673d912e1bc19386bebba9d58c23f inherit pub_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_static_methods_class_name_value_pairs"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_name_value_pairs')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="class_name_value_pairs.html">NameValuePairs</a></td></tr> <tr class="memitem:ad4b80eeeb5f1f58e3cedb12f02a6b870 inherit pub_static_methods_class_name_value_pairs"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#ad4b80eeeb5f1f58e3cedb12f02a6b870">ThrowIfTypeMismatch</a> (const char *name, const std::type_info &stored, const std::type_info &retrieving)</td></tr> <tr class="memdesc:ad4b80eeeb5f1f58e3cedb12f02a6b870 inherit pub_static_methods_class_name_value_pairs"><td class="mdescLeft"> </td><td class="mdescRight">Ensures an expected name and type is present. <a href="class_name_value_pairs.html#ad4b80eeeb5f1f58e3cedb12f02a6b870">More...</a><br /></td></tr> <tr class="separator:ad4b80eeeb5f1f58e3cedb12f02a6b870 inherit pub_static_methods_class_name_value_pairs"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>The <a class="el" href="struct_l_u_c.html" title="LUC cryptosystem. ">LUC</a> function. </p> <p>This class is here for historical and pedagogical interest. It has no practical advantages over other trapdoor functions and probably shouldn't be used in production software. The discrete log based <a class="el" href="struct_l_u_c.html" title="LUC cryptosystem. ">LUC</a> schemes defined later in this .h file may be of more practical interest. </p><dl class="section since"><dt>Since</dt><dd>Crypto++ 2.1 </dd></dl> <p class="definition">Definition at line <a class="el" href="luc_8h_source.html#l00038">38</a> of file <a class="el" href="luc_8h_source.html">luc.h</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="a5d8eb9d2acd130a768326200e3c6ac40"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5d8eb9d2acd130a768326200e3c6ac40">◆ </a></span>Initialize()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void LUCFunction::Initialize </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> & </td> <td class="paramname"><em>n</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> & </td> <td class="paramname"><em>e</em> </td> </tr> <tr> <td></td> <td>)</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>Initialize a <a class="el" href="struct_l_u_c.html" title="LUC cryptosystem. ">LUC</a> public key with {n,e}. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">n</td><td>the modulus </td></tr> <tr><td class="paramname">e</td><td>the public exponent </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="luc_8h_source.html#l00048">48</a> of file <a class="el" href="luc_8h_source.html">luc.h</a>.</p> </div> </div> <a id="ae23d0c06b0c29ff4f51e7b1f09724ab5"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae23d0c06b0c29ff4f51e7b1f09724ab5">◆ </a></span>ApplyFunction()</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="class_integer.html">Integer</a> LUCFunction::ApplyFunction </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_integer.html">Integer</a> & </td> <td class="paramname"><em>x</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Applies the trapdoor. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">x</td><td>the message on which the encryption function is applied </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the message x encrypted under the public key</dd></dl> <p>ApplyFunction is a generalization of encryption under a public key cryptosystem. Derived classes must implement it. </p> <p>Implements <a class="el" href="class_trapdoor_function.html#a06f1c5450f47d1de7143619b42f5167b">TrapdoorFunction</a>.</p> <p class="definition">Definition at line <a class="el" href="luc_8cpp_source.html#l00067">67</a> of file <a class="el" href="luc_8cpp_source.html">luc.cpp</a>.</p> </div> </div> <a id="a1497f939adba34c6370c8a17f9389f68"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1497f939adba34c6370c8a17f9389f68">◆ </a></span>PreimageBound()</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="class_integer.html">Integer</a> LUCFunction::PreimageBound </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>Returns the maximum size of a message before the trapdoor function is applied. </p> <dl class="section return"><dt>Returns</dt><dd>the maximum size of a message before the trapdoor function is applied</dd></dl> <p>Derived classes must implement <a class="el" href="class_l_u_c_function.html#a1497f939adba34c6370c8a17f9389f68" title="Returns the maximum size of a message before the trapdoor function is applied. ">PreimageBound()</a>. </p> <p>Implements <a class="el" href="class_trapdoor_function_bounds.html#a05e212439a3665a61872956061e5364c">TrapdoorFunctionBounds</a>.</p> <p class="definition">Definition at line <a class="el" href="luc_8h_source.html#l00055">55</a> of file <a class="el" href="luc_8h_source.html">luc.h</a>.</p> </div> </div> <a id="ae80bec9ec3f76dbdb248aeef19777ef9"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae80bec9ec3f76dbdb248aeef19777ef9">◆ </a></span>ImageBound()</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="class_integer.html">Integer</a> LUCFunction::ImageBound </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>Returns the maximum size of a message after the trapdoor function is applied. </p> <dl class="section return"><dt>Returns</dt><dd>the maximum size of a message after the trapdoor function is applied</dd></dl> <p>Derived classes must implement <a class="el" href="class_l_u_c_function.html#ae80bec9ec3f76dbdb248aeef19777ef9" title="Returns the maximum size of a message after the trapdoor function is applied. ">ImageBound()</a>. </p> <p>Implements <a class="el" href="class_trapdoor_function_bounds.html#a092bfba4b87163e525da7e8e28b0011d">TrapdoorFunctionBounds</a>.</p> <p class="definition">Definition at line <a class="el" href="luc_8h_source.html#l00056">56</a> of file <a class="el" href="luc_8h_source.html">luc.h</a>.</p> </div> </div> <a id="aba4694feec6ef453e2ef0f6fb586ca0c"></a> <h2 class="memtitle"><span class="permalink"><a href="#aba4694feec6ef453e2ef0f6fb586ca0c">◆ </a></span>Validate()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">bool LUCFunction::Validate </td> <td>(</td> <td class="paramtype"><a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> & </td> <td class="paramname"><em>rng</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>level</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">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Check this object for errors. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">rng</td><td>a <a class="el" href="class_random_number_generator.html" title="Interface for random number generators. ">RandomNumberGenerator</a> for objects which use randomized testing </td></tr> <tr><td class="paramname">level</td><td>the level of thoroughness </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>true if the tests succeed, false otherwise</dd></dl> <p>There are four levels of thoroughness: </p><ul> <li> 0 - using this object won't cause a crash or exception </li> <li> 1 - this object will probably function, and encrypt, sign, other operations correctly </li> <li> 2 - ensure this object will function correctly, and perform reasonable security checks </li> <li> 3 - perform reasonable security checks, and do checks that may take a long time </li> </ul> <p>Level 0 does not require a <a class="el" href="class_random_number_generator.html" title="Interface for random number generators. ">RandomNumberGenerator</a>. A <a class="el" href="cryptlib_8h.html#a1e53479a6d427158247ac1ece3161a6d" title="Random Number Generator that does not produce random numbers. ">NullRNG()</a> can be used for level 0. Level 1 may not check for weak keys and such. Levels 2 and 3 are recommended. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_crypto_material.html#aedb65ba5323f7bb41fc57973566d20cd" title="Check this object for errors. ">ThrowIfInvalid()</a> </dd></dl> <p>Implements <a class="el" href="class_crypto_material.html#aaa7d67d0c12712de0e33713c73f5b718">CryptoMaterial</a>.</p> <p>Reimplemented in <a class="el" href="class_invertible_l_u_c_function.html#ab5c7b3d5b5d0b9509f8180a43370533b">InvertibleLUCFunction</a>.</p> <p class="definition">Definition at line <a class="el" href="luc_8cpp_source.html#l00073">73</a> of file <a class="el" href="luc_8cpp_source.html">luc.cpp</a>.</p> </div> </div> <a id="a46c1eaf8b0f5183fe1ec903ea25950ad"></a> <h2 class="memtitle"><span class="permalink"><a href="#a46c1eaf8b0f5183fe1ec903ea25950ad">◆ </a></span>GetVoidValue()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">bool LUCFunction::GetVoidValue </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::type_info & </td> <td class="paramname"><em>valueType</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>pValue</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">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Get a named value. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>the name of the object or value to retrieve </td></tr> <tr><td class="paramname">valueType</td><td>reference to a variable that receives the value </td></tr> <tr><td class="paramname">pValue</td><td>void pointer to a variable that receives the value </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>true if the value was retrieved, false otherwise</dd></dl> <p><a class="el" href="class_l_u_c_function.html#a46c1eaf8b0f5183fe1ec903ea25950ad" title="Get a named value. ">GetVoidValue()</a> retrieves the value of name if it exists. </p><dl class="section note"><dt>Note</dt><dd><a class="el" href="class_l_u_c_function.html#a46c1eaf8b0f5183fe1ec903ea25950ad" title="Get a named value. ">GetVoidValue()</a> is an internal function and should be implemented by derived classes. Users should use one of the other functions instead. </dd></dl> <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_name_value_pairs.html#a5357c3a09602e44671d1e42cb9a9408d" title="Get a named value. ">GetValue()</a>, <a class="el" href="class_name_value_pairs.html#a4daf1ef67b547c6be96188a43e5ec05e" title="Get a named value. ">GetValueWithDefault()</a>, <a class="el" href="class_name_value_pairs.html#a94e5b19dc54625799797668ff8627c57" title="Get a named value with type int. ">GetIntValue()</a>, <a class="el" href="class_name_value_pairs.html#a7ddb654b7afcd1a04422a7b4b01366d9" title="Get a named value with type int, with default. ">GetIntValueWithDefault()</a>, <a class="el" href="class_name_value_pairs.html#af28f6e7abf98606d8146bfda271e99db" title="Retrieves a required name/value pair. ">GetRequiredParameter()</a> and <a class="el" href="class_name_value_pairs.html#acfb673d912e1bc19386bebba9d58c23f" title="Retrieves a required name/value pair. ">GetRequiredIntParameter()</a> </dd></dl> <p>Implements <a class="el" href="class_name_value_pairs.html#a9fc3f5c4480d53b8104c67ca7958e332">NameValuePairs</a>.</p> <p>Reimplemented in <a class="el" href="class_invertible_l_u_c_function.html#a661817f5a20206cf2a56826b6946deeb">InvertibleLUCFunction</a>.</p> <p class="definition">Definition at line <a class="el" href="luc_8cpp_source.html#l00084">84</a> of file <a class="el" href="luc_8cpp_source.html">luc.cpp</a>.</p> </div> </div> <a id="af6a95ed660e53a5fa07841f139d43ccf"></a> <h2 class="memtitle"><span class="permalink"><a href="#af6a95ed660e53a5fa07841f139d43ccf">◆ </a></span>AssignFrom()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void LUCFunction::AssignFrom </td> <td>(</td> <td class="paramtype">const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> & </td> <td class="paramname"><em>source</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Assign values to this object. </p> <p>This function can be used to create a public key from a private key. </p> <p>Implements <a class="el" href="class_crypto_material.html#a20181c1b39a74a9fe91385b025b773c6">CryptoMaterial</a>.</p> <p>Reimplemented in <a class="el" href="class_invertible_l_u_c_function.html#aaaef1b335de1f76ec61079d1dfd78744">InvertibleLUCFunction</a>.</p> <p class="definition">Definition at line <a class="el" href="luc_8cpp_source.html#l00092">92</a> of file <a class="el" href="luc_8cpp_source.html">luc.cpp</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="luc_8h_source.html">luc.h</a></li> <li><a class="el" href="luc_8cpp_source.html">luc.cpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:58:42 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>