<!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++: TrapdoorFunctionBounds 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_trapdoor_function_bounds-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">TrapdoorFunctionBounds Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div> </div><!--header--> <div class="contents"> <p>Provides range for plaintext and ciphertext lengths. <a href="class_trapdoor_function_bounds.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 TrapdoorFunctionBounds:</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_trapdoor_function_bounds.png" usemap="#TrapdoorFunctionBounds_map" alt=""/> <map id="TrapdoorFunctionBounds_map" name="TrapdoorFunctionBounds_map"> <area href="class_randomized_trapdoor_function.html" title="Applies the trapdoor function, using random data if required. " alt="RandomizedTrapdoorFunction" shape="rect" coords="382,56,563,80"/> <area href="class_trapdoor_function.html" title="Applies the trapdoor function. " alt="TrapdoorFunction" shape="rect" coords="382,112,563,136"/> <area href="class_e_s_i_g_n_function.html" title="ESIGN trapdoor function using the public key. " alt="ESIGNFunction" shape="rect" coords="0,168,181,192"/> <area href="class_l_u_c_function.html" title="The LUC function. " alt="LUCFunction" shape="rect" coords="191,168,372,192"/> <area href="class_rabin_function.html" title="Rabin trapdoor function using the public key. " alt="RabinFunction" shape="rect" coords="382,168,563,192"/> <area href="class_r_s_a_function.html" title="RSA trapdoor function using the public key. " alt="RSAFunction" shape="rect" coords="668,168,849,192"/> <area href="class_r_w_function.html" title="Rabin-Williams trapdoor function using the public key. " alt="RWFunction" shape="rect" coords="955,168,1136,192"/> <area href="class_invertible_e_s_i_g_n_function.html" title="ESIGN trapdoor function using the private key. " alt="InvertibleESIGNFunction" shape="rect" coords="0,224,181,248"/> <area href="class_invertible_l_u_c_function.html" title="The LUC inverse function. " alt="InvertibleLUCFunction" shape="rect" coords="191,224,372,248"/> <area href="class_invertible_rabin_function.html" title="Rabin trapdoor function using the private key. " alt="InvertibleRabinFunction" shape="rect" coords="382,224,563,248"/> <area href="class_invertible_r_s_a_function.html" title="RSA trapdoor function using the private key. " alt="InvertibleRSAFunction" shape="rect" coords="573,224,754,248"/> <area href="class_r_s_a_function___i_s_o.html" title="RSA trapdoor function using the public key. " alt="RSAFunction_ISO" shape="rect" coords="764,224,945,248"/> <area href="class_invertible_r_w_function.html" title="Rabin-Williams trapdoor function using the private key. " alt="InvertibleRWFunction" shape="rect" coords="955,224,1136,248"/> <area href="class_invertible_r_s_a_function___i_s_o.html" title="RSA trapdoor function using the private key. " alt="InvertibleRSAFunction_ISO" shape="rect" coords="573,280,754,304"/> </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:a05e212439a3665a61872956061e5364c"><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#a05e212439a3665a61872956061e5364c">PreimageBound</a> () const =0</td></tr> <tr class="memdesc:a05e212439a3665a61872956061e5364c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message before the trapdoor function is applied. <a href="#a05e212439a3665a61872956061e5364c">More...</a><br /></td></tr> <tr class="separator:a05e212439a3665a61872956061e5364c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a092bfba4b87163e525da7e8e28b0011d"><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#a092bfba4b87163e525da7e8e28b0011d">ImageBound</a> () const =0</td></tr> <tr class="memdesc:a092bfba4b87163e525da7e8e28b0011d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size of a message after the trapdoor function is applied. <a href="#a092bfba4b87163e525da7e8e28b0011d">More...</a><br /></td></tr> <tr class="separator:a092bfba4b87163e525da7e8e28b0011d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab85b47c9c3df4cf1030eff786ab11d5b"><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"><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="#ab85b47c9c3df4cf1030eff786ab11d5b">More...</a><br /></td></tr> <tr class="separator:ab85b47c9c3df4cf1030eff786ab11d5b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b505cf1a3494645998e7e0872b76a72"><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"><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="#a9b505cf1a3494645998e7e0872b76a72">More...</a><br /></td></tr> <tr class="separator:a9b505cf1a3494645998e7e0872b76a72"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Provides range for plaintext and ciphertext lengths. </p> <p>A trapdoor function is a function that is easy to compute in one direction, but difficult to compute in the opposite direction without special knowledge. The special knowledge is usually the private key.</p> <p>Trapdoor functions only handle messages of a limited length or size. MaxPreimage is the plaintext's maximum length, and MaxImage is the ciphertext's maximum length. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_trapdoor_function_bounds.html" title="Provides range for plaintext and ciphertext lengths. ">TrapdoorFunctionBounds()</a>, <a class="el" href="class_randomized_trapdoor_function.html" title="Applies the trapdoor function, using random data if required. ">RandomizedTrapdoorFunction()</a>, <a class="el" href="class_trapdoor_function.html" title="Applies the trapdoor function. ">TrapdoorFunction()</a>, <a class="el" href="class_randomized_trapdoor_function_inverse.html" title="Applies the inverse of the trapdoor function, using random data if required. ">RandomizedTrapdoorFunctionInverse()</a> and <a class="el" href="class_trapdoor_function_inverse.html" title="Applies the inverse of the trapdoor function. ">TrapdoorFunctionInverse()</a> </dd></dl> <p class="definition">Definition at line <a class="el" href="pubkey_8h_source.html#l00072">72</a> of file <a class="el" href="pubkey_8h_source.html">pubkey.h</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="a05e212439a3665a61872956061e5364c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a05e212439a3665a61872956061e5364c">◆ </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">virtual <a class="el" href="class_integer.html">Integer</a> TrapdoorFunctionBounds::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">pure 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_trapdoor_function_bounds.html#a05e212439a3665a61872956061e5364c" title="Returns the maximum size of a message before the trapdoor function is applied. ">PreimageBound()</a>. </p> <p>Implemented in <a class="el" href="class_invertible_r_s_a_function___i_s_o.html#a1b7943d051b81094f65d6e97c584c09a">InvertibleRSAFunction_ISO</a>, <a class="el" href="class_r_s_a_function___i_s_o.html#a0573fcd6596f6d1d9e2b5dc8d7fd3453">RSAFunction_ISO</a>, <a class="el" href="class_l_u_c_function.html#a1497f939adba34c6370c8a17f9389f68">LUCFunction</a>, <a class="el" href="class_r_s_a_function.html#a5eb6f0be67906fe2659e7d62fe54b317">RSAFunction</a>, <a class="el" href="class_e_s_i_g_n_function.html#a4d46257e98886e62e0fcb64a77c30053">ESIGNFunction</a>, <a class="el" href="class_r_w_function.html#a3133e8d2cbbf5c44925c088fa30f2157">RWFunction</a>, and <a class="el" href="class_rabin_function.html#adf573336f4b2607292ea958fd9276e5a">RabinFunction</a>.</p> </div> </div> <a id="a092bfba4b87163e525da7e8e28b0011d"></a> <h2 class="memtitle"><span class="permalink"><a href="#a092bfba4b87163e525da7e8e28b0011d">◆ </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">virtual <a class="el" href="class_integer.html">Integer</a> TrapdoorFunctionBounds::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">pure 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_trapdoor_function_bounds.html#a092bfba4b87163e525da7e8e28b0011d" title="Returns the maximum size of a message after the trapdoor function is applied. ">ImageBound()</a>. </p> <p>Implemented in <a class="el" href="class_l_u_c_function.html#ae80bec9ec3f76dbdb248aeef19777ef9">LUCFunction</a>, <a class="el" href="class_r_s_a_function.html#a1f5226f0dfa30c01a1aedd4f21d26335">RSAFunction</a>, <a class="el" href="class_e_s_i_g_n_function.html#aa5c6b63f6c16a17dcd4a5922924bf3d9">ESIGNFunction</a>, <a class="el" href="class_r_w_function.html#a53ac54d4f007c7eddd2b4c771c16b0ea">RWFunction</a>, and <a class="el" href="class_rabin_function.html#a12067fc66798a780b88e81b3c348dcb9">RabinFunction</a>.</p> </div> </div> <a id="ab85b47c9c3df4cf1030eff786ab11d5b"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab85b47c9c3df4cf1030eff786ab11d5b">◆ </a></span>MaxPreimage()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="class_integer.html">Integer</a> TrapdoorFunctionBounds::MaxPreimage </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 bound to a public key. </p> <dl class="section return"><dt>Returns</dt><dd>the maximum size of a message before the trapdoor function is applied bound to a public key</dd></dl> <p>The default implementation returns <code><a class="el" href="class_trapdoor_function_bounds.html#a05e212439a3665a61872956061e5364c" title="Returns the maximum size of a message before the trapdoor function is applied. ">PreimageBound()</a> - 1</code>. </p> <p class="definition">Definition at line <a class="el" href="pubkey_8h_source.html#l00088">88</a> of file <a class="el" href="pubkey_8h_source.html">pubkey.h</a>.</p> </div> </div> <a id="a9b505cf1a3494645998e7e0872b76a72"></a> <h2 class="memtitle"><span class="permalink"><a href="#a9b505cf1a3494645998e7e0872b76a72">◆ </a></span>MaxImage()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="class_integer.html">Integer</a> TrapdoorFunctionBounds::MaxImage </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 bound to a public key. </p> <dl class="section return"><dt>Returns</dt><dd>the the maximum size of a message after the trapdoor function is applied bound to a public key</dd></dl> <p>The default implementation returns <code><a class="el" href="class_trapdoor_function_bounds.html#a092bfba4b87163e525da7e8e28b0011d" title="Returns the maximum size of a message after the trapdoor function is applied. ">ImageBound()</a> - 1</code>. </p> <p class="definition">Definition at line <a class="el" href="pubkey_8h_source.html#l00092">92</a> of file <a class="el" href="pubkey_8h_source.html">pubkey.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="pubkey_8h_source.html">pubkey.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:59:05 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>