<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: VariableRounds< D, N, M > Class Template Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <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-static-methods">Static Public Member Functions</a> | <a href="#pub-static-attribs">Static Public Attributes</a> | <a href="class_variable_rounds-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">VariableRounds< D, N, M > Class Template Reference</div> </div> </div><!--header--> <div class="contents"> <p>Inherited by algorithms with variable number of rounds. <a href="class_variable_rounds.html#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:a356298696da2e721cffe8a70dcdec964"><td class="memItemLeft" align="right" valign="top">static unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_variable_rounds.html#a356298696da2e721cffe8a70dcdec964">StaticGetDefaultRounds</a> (size_t keylength)</td></tr> <tr class="memdesc:a356298696da2e721cffe8a70dcdec964"><td class="mdescLeft"> </td><td class="mdescRight">The default number of rounds for the algorithm based on key length provided by a static function. <a href="#a356298696da2e721cffe8a70dcdec964">More...</a><br /></td></tr> <tr class="separator:a356298696da2e721cffe8a70dcdec964"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a> Static Public Attributes</h2></td></tr> <tr class="memitem:a28b6780fe25e29c10db31ab5ddf457bc"><td class="memItemLeft" align="right" valign="top"><a id="a28b6780fe25e29c10db31ab5ddf457bc"></a> static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_variable_rounds.html#a28b6780fe25e29c10db31ab5ddf457bc">DEFAULT_ROUNDS</a> = D</td></tr> <tr class="memdesc:a28b6780fe25e29c10db31ab5ddf457bc"><td class="mdescLeft"> </td><td class="mdescRight">The default number of rounds for the algorithm provided as a constant. <br /></td></tr> <tr class="separator:a28b6780fe25e29c10db31ab5ddf457bc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ade59ae3b5198852159c4b9362b93b2a5"><td class="memItemLeft" align="right" valign="top"><a id="ade59ae3b5198852159c4b9362b93b2a5"></a> static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_variable_rounds.html#ade59ae3b5198852159c4b9362b93b2a5">MIN_ROUNDS</a> = N</td></tr> <tr class="memdesc:ade59ae3b5198852159c4b9362b93b2a5"><td class="mdescLeft"> </td><td class="mdescRight">The minimum number of rounds for the algorithm provided as a constant. <br /></td></tr> <tr class="separator:ade59ae3b5198852159c4b9362b93b2a5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:affcd1b51e2ca369beb86b9c98c86e46f"><td class="memItemLeft" align="right" valign="top"><a id="affcd1b51e2ca369beb86b9c98c86e46f"></a> static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_variable_rounds.html#affcd1b51e2ca369beb86b9c98c86e46f">MAX_ROUNDS</a> = M</td></tr> <tr class="memdesc:affcd1b51e2ca369beb86b9c98c86e46f"><td class="mdescLeft"> </td><td class="mdescRight">The maximum number of rounds for the algorithm provided as a constant. <br /></td></tr> <tr class="separator:affcd1b51e2ca369beb86b9c98c86e46f"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><h3>template<unsigned int D, unsigned int N = 1, unsigned int M = INT_MAX><br /> class VariableRounds< D, N, M ></h3> <p>Inherited by algorithms with variable number of rounds. </p> <dl class="tparams"><dt>Template Parameters</dt><dd> <table class="tparams"> <tr><td class="paramname">D</td><td>Default number of rounds </td></tr> <tr><td class="paramname">N</td><td>Minimum number of rounds </td></tr> <tr><td class="paramname">M</td><td>Maximum number of rounds </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00087">87</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a id="a356298696da2e721cffe8a70dcdec964"></a> <h2 class="memtitle"><span class="permalink"><a href="#a356298696da2e721cffe8a70dcdec964">◆ </a></span>StaticGetDefaultRounds()</h2> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<unsigned int D, unsigned int N = 1, unsigned int M = INT_MAX> </div> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static unsigned int <a class="el" href="class_variable_rounds.html">VariableRounds</a>< D, N, M >::StaticGetDefaultRounds </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"><em>keylength</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>The default number of rounds for the algorithm based on key length provided by a static function. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">keylength</td><td>the size of the key, in bytes</td></tr> </table> </dd> </dl> <p>keylength is unused in the default implementation. </p> <p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00100">100</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="seckey_8h_source.html">seckey.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Nov 27 2019 15:04:48 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.15 </small></address> </body> </html>