<!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++: RabinFunction 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_rabin_function-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">RabinFunction Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><a class="el" href="struct_rabin.html" title="Rabin keys. ">Rabin</a> trapdoor function using the public key. <a href="class_rabin_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 RabinFunction:</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_rabin_function.png" usemap="#RabinFunction_map" alt=""/> <map id="RabinFunction_map" name="RabinFunction_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_rabin_function.html" title="Rabin trapdoor function using the private key. " alt="InvertibleRabinFunction" 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:ac9bff15dd4169d942e7eee3afced0bc7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_rabin_function.html#ac9bff15dd4169d942e7eee3afced0bc7">Initialize</a> (const <a class="el" href="class_integer.html">Integer</a> &n, const <a class="el" href="class_integer.html">Integer</a> &r, const <a class="el" href="class_integer.html">Integer</a> &s)</td></tr> <tr class="memdesc:ac9bff15dd4169d942e7eee3afced0bc7"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a <a class="el" href="struct_rabin.html" title="Rabin keys. ">Rabin</a> public key. <a href="#ac9bff15dd4169d942e7eee3afced0bc7">More...</a><br /></td></tr> <tr class="separator:ac9bff15dd4169d942e7eee3afced0bc7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab41bb9ae4282a5b0962067769b15e5a5"><td class="memItemLeft" align="right" valign="top"><a id="ab41bb9ae4282a5b0962067769b15e5a5"></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:ab41bb9ae4282a5b0962067769b15e5a5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaa7d1e80210e595d0bd84f02bda7941f"><td class="memItemLeft" align="right" valign="top"><a id="aaa7d1e80210e595d0bd84f02bda7941f"></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:aaa7d1e80210e595d0bd84f02bda7941f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af054d72c882160a1f09700559cb13b5d"><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_rabin_function.html#af054d72c882160a1f09700559cb13b5d">ApplyFunction</a> (const <a class="el" href="class_integer.html">Integer</a> &x) const</td></tr> <tr class="memdesc:af054d72c882160a1f09700559cb13b5d"><td class="mdescLeft"> </td><td class="mdescRight">Applies the trapdoor. <a href="#af054d72c882160a1f09700559cb13b5d">More...</a><br /></td></tr> <tr class="separator:af054d72c882160a1f09700559cb13b5d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adf573336f4b2607292ea958fd9276e5a"><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_rabin_function.html#adf573336f4b2607292ea958fd9276e5a">PreimageBound</a> () const</td></tr> <tr class="memdesc:adf573336f4b2607292ea958fd9276e5a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message before the trapdoor function is applied. <a href="#adf573336f4b2607292ea958fd9276e5a">More...</a><br /></td></tr> <tr class="separator:adf573336f4b2607292ea958fd9276e5a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a12067fc66798a780b88e81b3c348dcb9"><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_rabin_function.html#a12067fc66798a780b88e81b3c348dcb9">ImageBound</a> () const</td></tr> <tr class="memdesc:a12067fc66798a780b88e81b3c348dcb9"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message after the trapdoor function is applied. <a href="#a12067fc66798a780b88e81b3c348dcb9">More...</a><br /></td></tr> <tr class="separator:a12067fc66798a780b88e81b3c348dcb9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac1f4bf45382c16a486616269884d95be"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_rabin_function.html#ac1f4bf45382c16a486616269884d95be">Validate</a> (<a class="el" href="class_random_number_generator.html">RandomNumberGenerator</a> &rng, unsigned int level) const</td></tr> <tr class="memdesc:ac1f4bf45382c16a486616269884d95be"><td class="mdescLeft"> </td><td class="mdescRight">Check this object for errors. <a href="#ac1f4bf45382c16a486616269884d95be">More...</a><br /></td></tr> <tr class="separator:ac1f4bf45382c16a486616269884d95be"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a270c7b01d8c28fee40aa62636b7e9d43"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_rabin_function.html#a270c7b01d8c28fee40aa62636b7e9d43">GetVoidValue</a> (const char *name, const std::type_info &valueType, void *pValue) const</td></tr> <tr class="memdesc:a270c7b01d8c28fee40aa62636b7e9d43"><td class="mdescLeft"> </td><td class="mdescRight">Get a named value. <a href="#a270c7b01d8c28fee40aa62636b7e9d43">More...</a><br /></td></tr> <tr class="separator:a270c7b01d8c28fee40aa62636b7e9d43"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae585a0d58b1b95579459c2b42eea980c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_rabin_function.html#ae585a0d58b1b95579459c2b42eea980c">AssignFrom</a> (const <a class="el" href="class_name_value_pairs.html">NameValuePairs</a> &source)</td></tr> <tr class="memdesc:ae585a0d58b1b95579459c2b42eea980c"><td class="mdescLeft"> </td><td class="mdescRight">Assign values to this object. <a href="#ae585a0d58b1b95579459c2b42eea980c">More...</a><br /></td></tr> <tr class="separator:ae585a0d58b1b95579459c2b42eea980c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a97d3e83417fdfdef7a081d8750e73982"><td class="memItemLeft" align="right" valign="top"><a id="a97d3e83417fdfdef7a081d8750e73982"></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:a97d3e83417fdfdef7a081d8750e73982"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7744a5bdc50a95b4a5bf65f363dcf84e"><td class="memItemLeft" align="right" valign="top"><a id="a7744a5bdc50a95b4a5bf65f363dcf84e"></a> const <a class="el" href="class_integer.html">Integer</a> & </td><td class="memItemRight" valign="bottom"><b>GetQuadraticResidueModPrime1</b> () const</td></tr> <tr class="separator:a7744a5bdc50a95b4a5bf65f363dcf84e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a07583665d10337d76bdb224b818e2452"><td class="memItemLeft" align="right" valign="top"><a id="a07583665d10337d76bdb224b818e2452"></a> const <a class="el" href="class_integer.html">Integer</a> & </td><td class="memItemRight" valign="bottom"><b>GetQuadraticResidueModPrime2</b> () const</td></tr> <tr class="separator:a07583665d10337d76bdb224b818e2452"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a92f492483fbb5cce5f1a5a782d570775"><td class="memItemLeft" align="right" valign="top"><a id="a92f492483fbb5cce5f1a5a782d570775"></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:a92f492483fbb5cce5f1a5a782d570775"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a056f606df4fd93a1e38b1d4f07115923"><td class="memItemLeft" align="right" valign="top"><a id="a056f606df4fd93a1e38b1d4f07115923"></a> void </td><td class="memItemRight" valign="bottom"><b>SetQuadraticResidueModPrime1</b> (const <a class="el" href="class_integer.html">Integer</a> &r)</td></tr> <tr class="separator:a056f606df4fd93a1e38b1d4f07115923"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6373ccd3873c25812d10217617ee0d76"><td class="memItemLeft" align="right" valign="top"><a id="a6373ccd3873c25812d10217617ee0d76"></a> void </td><td class="memItemRight" valign="bottom"><b>SetQuadraticResidueModPrime2</b> (const <a class="el" href="class_integer.html">Integer</a> &s)</td></tr> <tr class="separator:a6373ccd3873c25812d10217617ee0d76"><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><a class="el" href="struct_rabin.html" title="Rabin keys. ">Rabin</a> trapdoor function using the public key. </p> <dl class="section since"><dt>Since</dt><dd>Crypto++ 2.0 </dd></dl> <p class="definition">Definition at line <a class="el" href="rabin_8h_source.html#l00018">18</a> of file <a class="el" href="rabin_8h_source.html">rabin.h</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="ac9bff15dd4169d942e7eee3afced0bc7"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac9bff15dd4169d942e7eee3afced0bc7">◆ </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 RabinFunction::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>r</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>s</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_rabin.html" title="Rabin keys. ">Rabin</a> public key. </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">r</td><td>element r </td></tr> <tr><td class="paramname">s</td><td>element s </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="rabin_8h_source.html#l00028">28</a> of file <a class="el" href="rabin_8h_source.html">rabin.h</a>.</p> </div> </div> <a id="af054d72c882160a1f09700559cb13b5d"></a> <h2 class="memtitle"><span class="permalink"><a href="#af054d72c882160a1f09700559cb13b5d">◆ </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> RabinFunction::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="rabin_8cpp_source.html#l00031">31</a> of file <a class="el" href="rabin_8cpp_source.html">rabin.cpp</a>.</p> </div> </div> <a id="adf573336f4b2607292ea958fd9276e5a"></a> <h2 class="memtitle"><span class="permalink"><a href="#adf573336f4b2607292ea958fd9276e5a">◆ </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> RabinFunction::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_rabin_function.html#adf573336f4b2607292ea958fd9276e5a" 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="rabin_8h_source.html#l00035">35</a> of file <a class="el" href="rabin_8h_source.html">rabin.h</a>.</p> </div> </div> <a id="a12067fc66798a780b88e81b3c348dcb9"></a> <h2 class="memtitle"><span class="permalink"><a href="#a12067fc66798a780b88e81b3c348dcb9">◆ </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> RabinFunction::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_rabin_function.html#a12067fc66798a780b88e81b3c348dcb9" 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="rabin_8h_source.html#l00036">36</a> of file <a class="el" href="rabin_8h_source.html">rabin.h</a>.</p> </div> </div> <a id="ac1f4bf45382c16a486616269884d95be"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac1f4bf45382c16a486616269884d95be">◆ </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 RabinFunction::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_rabin_function.html#a8f654d654bf7e833c9c48351346d3cb9">InvertibleRabinFunction</a>.</p> <p class="definition">Definition at line <a class="el" href="rabin_8cpp_source.html#l00043">43</a> of file <a class="el" href="rabin_8cpp_source.html">rabin.cpp</a>.</p> </div> </div> <a id="a270c7b01d8c28fee40aa62636b7e9d43"></a> <h2 class="memtitle"><span class="permalink"><a href="#a270c7b01d8c28fee40aa62636b7e9d43">◆ </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 RabinFunction::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_rabin_function.html#a270c7b01d8c28fee40aa62636b7e9d43" 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_rabin_function.html#a270c7b01d8c28fee40aa62636b7e9d43" 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_rabin_function.html#ad0565de9c37f2dac3614874d6284dafb">InvertibleRabinFunction</a>.</p> <p class="definition">Definition at line <a class="el" href="rabin_8cpp_source.html#l00060">60</a> of file <a class="el" href="rabin_8cpp_source.html">rabin.cpp</a>.</p> </div> </div> <a id="ae585a0d58b1b95579459c2b42eea980c"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae585a0d58b1b95579459c2b42eea980c">◆ </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 RabinFunction::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_rabin_function.html#a66594bb7f369e4ecc30bbe6ae62527ea">InvertibleRabinFunction</a>.</p> <p class="definition">Definition at line <a class="el" href="rabin_8cpp_source.html#l00069">69</a> of file <a class="el" href="rabin_8cpp_source.html">rabin.cpp</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="rabin_8h_source.html">rabin.h</a></li> <li><a class="el" href="rabin_8cpp_source.html">rabin.cpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:58:51 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>