Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 0a67b807a02637f2cae68649d519a89d > files > 1768

libcryptopp-devel-7.0.0-1.mga7.armv7hl.rpm

<!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++: SameKeyLengthAs&lt; T, IV_REQ, IV_L &gt; 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++
   &#160;<span id="projectnumber">7.0</span>
   </div>
   <div id="projectbrief">Free&nbsp;C&#43;&#43;&nbsp;class&nbsp;library&nbsp;of&nbsp;cryptographic&nbsp;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&amp;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> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_same_key_length_as-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SameKeyLengthAs&lt; T, IV_REQ, IV_L &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides key lengths based on another class's key length.  
 <a href="class_same_key_length_as.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:a7efeb052c732aacd1691130c5c9ae461"><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_same_key_length_as.html#a7efeb052c732aacd1691130c5c9ae461">StaticGetValidKeyLength</a> (size_t keylength)</td></tr>
<tr class="memdesc:a7efeb052c732aacd1691130c5c9ae461"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides a valid key length for the algorithm provided by a static function.  <a href="#a7efeb052c732aacd1691130c5c9ae461">More...</a><br /></td></tr>
<tr class="separator:a7efeb052c732aacd1691130c5c9ae461"><td class="memSeparator" colspan="2">&#160;</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:a527f2760da06bc768e5dbeab732392ee"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_same_key_length_as.html#a527f2760da06bc768e5dbeab732392ee">MIN_KEYLENGTH</a> =T::MIN_KEYLENGTH</td></tr>
<tr class="memdesc:a527f2760da06bc768e5dbeab732392ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum key length used by the algorithm provided as a constant.  <a href="#a527f2760da06bc768e5dbeab732392ee">More...</a><br /></td></tr>
<tr class="separator:a527f2760da06bc768e5dbeab732392ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4474256666f0a2fe2428164e95dabb4"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_same_key_length_as.html#aa4474256666f0a2fe2428164e95dabb4">MAX_KEYLENGTH</a> =T::MAX_KEYLENGTH</td></tr>
<tr class="memdesc:aa4474256666f0a2fe2428164e95dabb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum key length used by the algorithm provided as a constant.  <a href="#aa4474256666f0a2fe2428164e95dabb4">More...</a><br /></td></tr>
<tr class="separator:aa4474256666f0a2fe2428164e95dabb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2178ba0a86c81fa36ab235c748062b2e"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_same_key_length_as.html#a2178ba0a86c81fa36ab235c748062b2e">DEFAULT_KEYLENGTH</a> =T::DEFAULT_KEYLENGTH</td></tr>
<tr class="memdesc:a2178ba0a86c81fa36ab235c748062b2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default key length used by the algorithm provided as a constant.  <a href="#a2178ba0a86c81fa36ab235c748062b2e">More...</a><br /></td></tr>
<tr class="separator:a2178ba0a86c81fa36ab235c748062b2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b7699903c1c89fc6c8dcf76ae7abd7c"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_same_key_length_as.html#a1b7699903c1c89fc6c8dcf76ae7abd7c">IV_REQUIREMENT</a> =IV_REQ</td></tr>
<tr class="memdesc:a1b7699903c1c89fc6c8dcf76ae7abd7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default IV requirements for the algorithm provided as a constant.  <a href="#a1b7699903c1c89fc6c8dcf76ae7abd7c">More...</a><br /></td></tr>
<tr class="separator:a1b7699903c1c89fc6c8dcf76ae7abd7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb6c95b5e235a10e50dd7e4d25faecfe"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_same_key_length_as.html#acb6c95b5e235a10e50dd7e4d25faecfe">IV_LENGTH</a> =IV_L</td></tr>
<tr class="memdesc:acb6c95b5e235a10e50dd7e4d25faecfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default initialization vector length for the algorithm provided as a constant.  <a href="#acb6c95b5e235a10e50dd7e4d25faecfe">More...</a><br /></td></tr>
<tr class="separator:acb6c95b5e235a10e50dd7e4d25faecfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0&gt;<br />
class SameKeyLengthAs&lt; T, IV_REQ, IV_L &gt;</h3>

<p>Provides key lengths based on another class's key length. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>another <a class="el" href="class_fixed_key_length.html" title="Inherited by keyed algorithms with fixed key length. ">FixedKeyLength</a> or <a class="el" href="class_variable_key_length.html" title="Inherited by keyed algorithms with variable key length. ">VariableKeyLength</a> class </td></tr>
    <tr><td class="paramname">IV_REQ</td><td>the <a class="el" href="class_simple_keying_interface.html#a88201c180fbfaa9fef2715252546ad6e">IV requirements</a> </td></tr>
    <tr><td class="paramname">IV_L</td><td>default IV length, in bytes </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_simple_keying_interface.html" title="Interface for algorithms that take byte strings as keys. ">SimpleKeyingInterface</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00240">240</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="a7efeb052c732aacd1691130c5c9ae461"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7efeb052c732aacd1691130c5c9ae461">&#9670;&nbsp;</a></span>StaticGetValidKeyLength()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static size_t <a class="el" href="class_same_key_length_as.html">SameKeyLengthAs</a>&lt; T, IV_REQ, IV_L &gt;::StaticGetValidKeyLength </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</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>Provides a valid key length for the algorithm 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>If keylength is less than MIN_KEYLENGTH, then the function returns MIN_KEYLENGTH. If keylength is greater than MAX_KEYLENGTH, then the function returns MAX_KEYLENGTH. If keylength is a multiple of KEYLENGTH_MULTIPLE, then keylength is returned. Otherwise, the function returns keylength rounded <em>down</em> to the next smaller multiple of KEYLENGTH_MULTIPLE.</p>
<p>keylength is provided in bytes, not bits. </p>

<p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00267">267</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a527f2760da06bc768e5dbeab732392ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a527f2760da06bc768e5dbeab732392ee">&#9670;&nbsp;</a></span>MIN_KEYLENGTH</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="class_same_key_length_as.html">SameKeyLengthAs</a>&lt; T, IV_REQ, IV_L &gt;::MIN_KEYLENGTH =T::MIN_KEYLENGTH</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The minimum key length used by the algorithm provided as a constant. </p>
<p>MIN_KEYLENGTH is provided in bytes, not bits </p>

<p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00245">245</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p>

</div>
</div>
<a id="aa4474256666f0a2fe2428164e95dabb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4474256666f0a2fe2428164e95dabb4">&#9670;&nbsp;</a></span>MAX_KEYLENGTH</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="class_same_key_length_as.html">SameKeyLengthAs</a>&lt; T, IV_REQ, IV_L &gt;::MAX_KEYLENGTH =T::MAX_KEYLENGTH</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The maximum key length used by the algorithm provided as a constant. </p>
<p>MIN_KEYLENGTH is provided in bytes, not bits </p>

<p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00248">248</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p>

</div>
</div>
<a id="a2178ba0a86c81fa36ab235c748062b2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2178ba0a86c81fa36ab235c748062b2e">&#9670;&nbsp;</a></span>DEFAULT_KEYLENGTH</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="class_same_key_length_as.html">SameKeyLengthAs</a>&lt; T, IV_REQ, IV_L &gt;::DEFAULT_KEYLENGTH =T::DEFAULT_KEYLENGTH</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The default key length used by the algorithm provided as a constant. </p>
<p>MIN_KEYLENGTH is provided in bytes, not bits </p>

<p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00251">251</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p>

</div>
</div>
<a id="a1b7699903c1c89fc6c8dcf76ae7abd7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b7699903c1c89fc6c8dcf76ae7abd7c">&#9670;&nbsp;</a></span>IV_REQUIREMENT</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="class_same_key_length_as.html">SameKeyLengthAs</a>&lt; T, IV_REQ, IV_L &gt;::IV_REQUIREMENT =IV_REQ</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The default IV requirements for the algorithm provided as a constant. </p>
<p>The default value is NOT_RESYNCHRONIZABLE. See IV_Requirement in <a class="el" href="cryptlib_8h.html" title="Abstract base classes that provide a uniform interface to this library. ">cryptlib.h</a> for allowed values. </p>

<p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00255">255</a> of file <a class="el" href="seckey_8h_source.html">seckey.h</a>.</p>

</div>
</div>
<a id="acb6c95b5e235a10e50dd7e4d25faecfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb6c95b5e235a10e50dd7e4d25faecfe">&#9670;&nbsp;</a></span>IV_LENGTH</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="class_same_key_length_as.html">SameKeyLengthAs</a>&lt; T, IV_REQ, IV_L &gt;::IV_LENGTH =IV_L</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The default initialization vector length for the algorithm provided as a constant. </p>
<p>IV_LENGTH is provided in bytes, not bits. The default implementation uses 0. </p>

<p class="definition">Definition at line <a class="el" href="seckey_8h_source.html#l00258">258</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 Sun Sep 16 2018 07:58:55 for Crypto++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>