mainwp.dev/source-code/child/classes/phpseclib3-Crypt-Rijndael.html
2025-03-17 19:02:54 -04:00

8587 lines
452 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MainWP Child Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/base.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/template.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
<script src="js/template.js"></script>
<script src="js/search.js"></script>
<script defer src="js/searchIndex.js"></script>
</head>
<body id="top">
<header class="phpdocumentor-header phpdocumentor-section">
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">MainWP Child Documentation</a></h1>
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
<label class="phpdocumentor-header__menu-icon" for="menu-button">
<i class="fas fa-bars"></i>
</label>
<section data-search-form class="phpdocumentor-search">
<label>
<span class="visually-hidden">Search for</span>
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
</svg>
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
</label>
</section>
<nav class="phpdocumentor-topnav">
<ul class="phpdocumentor-topnav__menu">
</ul>
</nav>
</header>
<main class="phpdocumentor">
<div class="phpdocumentor-section">
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
Menu
</label>
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category -namespaces">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/mainwp.html" class="">MainWP</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/mainwp-child.html" class="">Child</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/paragonie.html" class="">ParagonIE</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/paragonie-constanttime.html" class="">ConstantTime</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpseclib3.html" class="">phpseclib3</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpseclib3-common.html" class="">Common</a>
</li>
<li>
<a href="namespaces/phpseclib3-crypt.html" class="">Crypt</a>
</li>
<li>
<a href="namespaces/phpseclib3-exception.html" class="">Exception</a>
</li>
<li>
<a href="namespaces/phpseclib3-file.html" class="">File</a>
</li>
<li>
<a href="namespaces/phpseclib3-math.html" class="">Math</a>
</li>
<li>
<a href="namespaces/phpseclib3-net.html" class="">Net</a>
</li>
<li>
<a href="namespaces/phpseclib3-system.html" class="">System</a>
</li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category -packages">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/MainWP.html" class="">MainWP</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="packages/MainWP-Child.html" class="">Child</a>
</li>
<li>
<a href="packages/MainWP-ChildCreditsPlugin.html" class="">ChildCreditsPlugin</a>
</li>
<li>
<a href="packages/MainWP-Dashboard.html" class="">Dashboard</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/MainWPChild.html" class="">MainWPChild</a>
</h4>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/ParagonIE.html" class="">ParagonIE</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="packages/ParagonIE-ConstantTime.html" class="">ConstantTime</a>
</li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category -reports">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="graphs/classes.html">Class Diagram</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>
<section class="phpdocumentor-sidebar__category -indices">
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
</aside>
<div class="phpdocumentor-column -nine phpdocumentor-content">
<section>
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="namespaces/phpseclib3.html">phpseclib3</a></li>
<li class="phpdocumentor-breadcrumb"><a href="namespaces/phpseclib3-crypt.html">Crypt</a></li>
</ul>
<article class="phpdocumentor-element -class">
<h2 class="phpdocumentor-content__title">
Rijndael
<span class="phpdocumentor-element__extends">
extends <a href="classes/phpseclib3-Crypt-Common-BlockCipher.html"><abbr title="\phpseclib3\Crypt\Common\BlockCipher">BlockCipher</abbr></a>
</span>
<div class="phpdocumentor-element__package">
in package
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP.html">MainWP</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-Child.html">Child</a></li>
</ul>
</div>
</h2>
<div class="phpdocumentor-label-line">
</div>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">67</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.67" class="phpdocumentor-element-found-in__source" data-line="67" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Pure-PHP implementation of Rijndael.</p>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">author</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Jim Wigginton <a href="mailto:terrafrost@php.net">terrafrost@php.net</a></p>
</section>
</dd>
</dl>
<h3 id="toc">
Table of Contents
<a href="classes/phpseclib3-Crypt-Rijndael.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<h4 id="toc-constants">
Constants
<a href="classes/phpseclib3-Crypt-Rijndael.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_EVAL">ENGINE_EVAL</a>
<span>
&nbsp;= 2 </span>
</dt>
<dd>Base value for the eval() implementation $engine switch</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_INTERNAL">ENGINE_INTERNAL</a>
<span>
&nbsp;= 1 </span>
</dt>
<dd>Base value for the internal implementation $engine switch</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_LIBSODIUM">ENGINE_LIBSODIUM</a>
<span>
&nbsp;= 5 </span>
</dt>
<dd>Base value for the libsodium implementation $engine switch</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MAP">ENGINE_MAP</a>
<span>
&nbsp;= [self::ENGINE_INTERNAL =&gt; &#039;PHP&#039;, self::ENGINE_EVAL =&gt; &#039;Eval&#039;, self::ENGINE_MCRYPT =&gt; &#039;mcrypt&#039;, self::ENGINE_OPENSSL =&gt; &#039;OpenSSL&#039;, self::ENGINE_LIBSODIUM =&gt; &#039;libsodium&#039;, self::ENGINE_OPENSSL_GCM =&gt; &#039;OpenSSL (GCM)&#039;] </span>
</dt>
<dd>Engine Reverse Map</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MCRYPT">ENGINE_MCRYPT</a>
<span>
&nbsp;= 3 </span>
</dt>
<dd>Base value for the mcrypt implementation $engine switch</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL">ENGINE_OPENSSL</a>
<span>
&nbsp;= 4 </span>
</dt>
<dd>Base value for the openssl implementation $engine switch</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL_GCM">ENGINE_OPENSSL_GCM</a>
<span>
&nbsp;= 6 </span>
</dt>
<dd>Base value for the openssl / gcm implementation $engine switch</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CBC">MODE_CBC</a>
<span>
&nbsp;= 2 </span>
</dt>
<dd>Encrypt / decrypt using the Code Book Chaining mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB">MODE_CFB</a>
<span>
&nbsp;= 3 </span>
</dt>
<dd>Encrypt / decrypt using the Cipher Feedback mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB8">MODE_CFB8</a>
<span>
&nbsp;= 7 </span>
</dt>
<dd>Encrypt / decrypt using the Cipher Feedback mode (8bit)</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CTR">MODE_CTR</a>
<span>
&nbsp;= -1 </span>
</dt>
<dd>Encrypt / decrypt using the Counter mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_ECB">MODE_ECB</a>
<span>
&nbsp;= 1 </span>
</dt>
<dd>Encrypt / decrypt using the Electronic Code Book mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_GCM">MODE_GCM</a>
<span>
&nbsp;= 5 </span>
</dt>
<dd>Encrypt / decrypt using Galois/Counter mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_MAP">MODE_MAP</a>
<span>
&nbsp;= [&#039;ctr&#039; =&gt; self::MODE_CTR, &#039;ecb&#039; =&gt; self::MODE_ECB, &#039;cbc&#039; =&gt; self::MODE_CBC, &#039;cfb&#039; =&gt; self::MODE_CFB, &#039;cfb8&#039; =&gt; self::MODE_CFB8, &#039;ofb&#039; =&gt; self::MODE_OFB, &#039;ofb8&#039; =&gt; self::MODE_OFB8, &#039;gcm&#039; =&gt; self::MODE_GCM, &#039;stream&#039; =&gt; self::MODE_STREAM] </span>
</dt>
<dd>Mode Map</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB">MODE_OFB</a>
<span>
&nbsp;= 4 </span>
</dt>
<dd>Encrypt / decrypt using the Output Feedback mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB8">MODE_OFB8</a>
<span>
&nbsp;= 8 </span>
</dt>
<dd>Encrypt / decrypt using the Output Feedback mode (8bit)</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_STREAM">MODE_STREAM</a>
<span>
&nbsp;= 6 </span>
</dt>
<dd>Encrypt / decrypt using streaming mode.</dd>
</dl>
<h4 id="toc-properties">
Properties
<a href="classes/phpseclib3-Crypt-Rijndael.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_aad">$aad</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Additional authenticated data</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_block_size">$block_size</a>
<span>
&nbsp;: int </span>
</dt>
<dd>The Block Length of the block cipher</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cfb_init_len">$cfb_init_len</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Optimizing value while CFB-encrypting</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_changed">$changed</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Does internal cipher state need to be (re)initialized?</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_cipher_name_mcrypt">$cipher_name_mcrypt</a>
<span>
&nbsp;: string </span>
</dt>
<dd>The mcrypt specific name of the cipher</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl">$cipher_name_openssl</a>
<span>
&nbsp;: string </span>
</dt>
<dd>The openssl specific name of the cipher</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl_ecb">$cipher_name_openssl_ecb</a>
<span>
&nbsp;: string </span>
</dt>
<dd>The openssl specific name of the cipher in ECB mode</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_continuousBuffer">$continuousBuffer</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Continuous Buffer status</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_debuffer">$debuffer</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Decryption buffer for CTR, OFB and CFB modes</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_decryptIV">$decryptIV</a>
<span>
&nbsp;: string </span>
</dt>
<dd>A &quot;sliding&quot; Initialization Vector</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enbuffer">$enbuffer</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Encryption buffer for CTR, OFB and CFB modes</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_encryptIV">$encryptIV</a>
<span>
&nbsp;: string </span>
</dt>
<dd>A &quot;sliding&quot; Initialization Vector</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_engine">$engine</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Holds which crypt engine internaly should be use,
which will be determined automatically on __construct()</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_explicit_key_length">$explicit_key_length</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Has the key length explicitly been set or should it be derived from the key, itself?</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_hKey">$hKey</a>
<span>
&nbsp;: string|null </span>
</dt>
<dd>HMAC Key</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_inline_crypt">$inline_crypt</a>
<span>
&nbsp;: callable </span>
</dt>
<dd>The name of the performance-optimized callback function</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_iv">$iv</a>
<span>
&nbsp;: string </span>
</dt>
<dd>The Initialization Vector</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_key">$key</a>
<span>
&nbsp;: string </span>
</dt>
<dd>The Key</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_key_length">$key_length</a>
<span>
&nbsp;: int </span>
</dt>
<dd>The Key Length (in bytes)</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_mode">$mode</a>
<span>
&nbsp;: int </span>
</dt>
<dd>The Encryption Mode</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_newtag">$newtag</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Authentication Tag produced after a round of encryption</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonce">$nonce</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Nonce</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonIVChanged">$nonIVChanged</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Does Eval engie need to be (re)initialized?</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_oldtag">$oldtag</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Authentication Tag to be verified during decryption</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Key">$poly1305Key</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Poly1305 Key</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_use_reg_intval">$use_reg_intval</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Flag for using regular vs &quot;safe&quot; intval</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_usePoly1305">$usePoly1305</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Poly1305 Flag</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_c">$c</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Shift offsets</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_dechanged">$dechanged</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Does the demcrypt resource need to be (re)initialized?</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_demcrypt">$demcrypt</a>
<span>
&nbsp;: resource </span>
</dt>
<dd>mcrypt resource for decryption</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_dw">$dw</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>The Inverse Key Schedule</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_ecb">$ecb</a>
<span>
&nbsp;: resource </span>
</dt>
<dd>mcrypt resource for CFB mode</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enchanged">$enchanged</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Does the enmcrypt resource need to be (re)initialized?</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enmcrypt">$enmcrypt</a>
<span>
&nbsp;: resource </span>
</dt>
<dd>mcrypt resource for encryption</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_gcmField">$gcmField</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BinaryField.html"><abbr title="\phpseclib3\Math\BinaryField">BinaryField</abbr></a> </span>
</dt>
<dd>GCM Binary Field</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_h">$h</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BinaryField-Integer.html"><abbr title="\phpseclib3\Math\BinaryField\Integer">Integer</abbr></a> </span>
</dt>
<dd>Hash subkey for GHASH</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_kl">$kl</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Holds the last used key- and block_size information</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_Nb">$Nb</a>
<span>
&nbsp;: int </span>
</dt>
<dd>The Block Length divided by 32</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_Nr">$Nr</a>
<span>
&nbsp;: int </span>
</dt>
<dd>The Number of Rounds</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_openssl_emulate_ctr">$openssl_emulate_ctr</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>If OpenSSL can be used in ECB but not in CTR we can emulate CTR</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_origIV">$origIV</a>
<span>
&nbsp;: string </span>
</dt>
<dd>The Original Initialization Vector</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_paddable">$paddable</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Is the mode one that is paddable?</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_padding">$padding</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Padding status</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_password_default_salt">$password_default_salt</a>
<span>
&nbsp;: string </span>
</dt>
<dd>The default salt used by setPassword()</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Field">$poly1305Field</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-PrimeField.html"><abbr title="\phpseclib3\Math\PrimeField">PrimeField</abbr></a> </span>
</dt>
<dd>Poly1305 Prime Field</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_preferredEngine">$preferredEngine</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Holds the preferred crypt engine</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_skip_key_adjustment">$skip_key_adjustment</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Don&#039;t truncate / null pad key</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#property_w">$w</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>The Key Schedule</dd>
</dl>
<h4 id="toc-methods">
Methods
<a href="classes/phpseclib3-Crypt-Rijndael.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method___construct">__construct()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Default Constructor.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_continuousBufferEnabled">continuousBufferEnabled()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Is the continuous buffer enabled?</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_decrypt">decrypt()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Decrypts a message.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disableContinuousBuffer">disableContinuousBuffer()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Treat consecutive packets as if they are a discontinuous buffer.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disablePadding">disablePadding()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Do not pad packets.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enableContinuousBuffer">enableContinuousBuffer()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Treat consecutive &quot;packets&quot; as if they are a continuous buffer.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePadding">enablePadding()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Pad &quot;packets&quot;.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePoly1305">enablePoly1305()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Enables Poly1305 mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_encrypt">encrypt()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Encrypts a message.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getBlockLength">getBlockLength()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Returns the current block length in bits</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getBlockLengthInBytes">getBlockLengthInBytes()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Returns the current block length in bytes</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getEngine">getEngine()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Returns the engine currently being utilized</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getKeyLength">getKeyLength()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Returns the current key length in bits</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getMode">getMode()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Return the mode</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getTag">getTag()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Get the authentication tag</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_isValidEngine">isValidEngine()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Test for engine validity</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setAAD">setAAD()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets additional authenticated data</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_setBlockLength">setBlockLength()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the block length</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setIV">setIV()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the initialization vector.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_setKey">setKey()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the key.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_setKeyLength">setKeyLength()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the key length.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setNonce">setNonce()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the nonce.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPassword">setPassword()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Sets the password.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPoly1305Key">setPoly1305Key()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Enables Poly1305 mode.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPreferredEngine">setPreferredEngine()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the preferred crypt engine</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setTag">setTag()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the authentication tag</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_usesIV">usesIV()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Returns whether or not the algorithm uses an IV</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_usesNonce">usesNonce()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Returns whether or not the algorithm uses a nonce</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_createInlineCryptFunction">createInlineCryptFunction()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Creates the performance-optimized function for en/decrypt()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_decryptBlock">decryptBlock()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Decrypts a block</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_encryptBlock">encryptBlock()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Encrypts a block</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_getInvTables">getInvTables()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Provides the inverse mixColumns and inverse sboxes tables</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getIV">getIV()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Get the IV</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_getTables">getTables()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Provides the mixColumns and sboxes tables</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_initialize_static_variables">initialize_static_variables()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Initialize static variables</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_isValidEngineHelper">isValidEngineHelper()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Test for engine validity</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_nullPad128">nullPad128()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>NULL pads a string to be a multiple of 128</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_translate_mode">openssl_translate_mode()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>phpseclib &lt;-&gt; OpenSSL Mode Mapper</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pad">pad()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Pads a string</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_poly1305">poly1305()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Calculates Poly1305 MAC</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_safe_intval">safe_intval()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>Convert float to int</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_safe_intval_inline">safe_intval_inline()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>eval()&#039;able string for in-line float to int</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setEngine">setEngine()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the engine as appropriate</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_setup">setup()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Setup the self::ENGINE_INTERNAL $engine</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_setupInlineCrypt">setupInlineCrypt()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Setup the performance-optimized function for de/encrypt()</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_setupKey">setupKey()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Setup the key (expansion)</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_unpad">unpad()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Unpads a string.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_ghash">ghash()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Performs GHASH operation</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_len64">len64()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Returns the bit length of a string in a packed format</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ctr_process">openssl_ctr_process()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>OpenSSL CTR Processor</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ofb_process">openssl_ofb_process()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>OpenSSL OFB Processor</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pkcs12helper">pkcs12helper()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>PKCS#12 KDF Helper Function</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setupGCM">setupGCM()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets up GCM parameters</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Rijndael.html#method_subWord">subWord()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Performs S-Box substitutions</dd>
</dl>
<section class="phpdocumentor-constants">
<h3 class="phpdocumentor-elements__header" id="constants">
Constants
<a href="classes/phpseclib3-Crypt-Rijndael.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_ENGINE_EVAL">
ENGINE_EVAL
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_EVAL" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">157</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.157" class="phpdocumentor-element-found-in__source" data-line="157" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Base value for the eval() implementation $engine switch</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">ENGINE_EVAL</span>
= <span class="phpdocumentor-signature__default-value">2</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_EVAL#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_ENGINE_INTERNAL">
ENGINE_INTERNAL
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_INTERNAL" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">151</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.151" class="phpdocumentor-element-found-in__source" data-line="151" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Base value for the internal implementation $engine switch</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">ENGINE_INTERNAL</span>
= <span class="phpdocumentor-signature__default-value">1</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_INTERNAL#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_ENGINE_LIBSODIUM">
ENGINE_LIBSODIUM
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_LIBSODIUM" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">175</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.175" class="phpdocumentor-element-found-in__source" data-line="175" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Base value for the libsodium implementation $engine switch</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">ENGINE_LIBSODIUM</span>
= <span class="phpdocumentor-signature__default-value">5</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_LIBSODIUM#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_ENGINE_MAP">
ENGINE_MAP
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MAP" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">188</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.188" class="phpdocumentor-element-found-in__source" data-line="188" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Engine Reverse Map</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">ENGINE_MAP</span>
= <span class="phpdocumentor-signature__default-value">[self::ENGINE_INTERNAL =&gt; &#039;PHP&#039;, self::ENGINE_EVAL =&gt; &#039;Eval&#039;, self::ENGINE_MCRYPT =&gt; &#039;mcrypt&#039;, self::ENGINE_OPENSSL =&gt; &#039;OpenSSL&#039;, self::ENGINE_LIBSODIUM =&gt; &#039;libsodium&#039;, self::ENGINE_OPENSSL_GCM =&gt; &#039;OpenSSL (GCM)&#039;]</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MAP#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getEngine"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::getEngine()">SymmetricKey::getEngine()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_ENGINE_MCRYPT">
ENGINE_MCRYPT
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MCRYPT" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">163</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.163" class="phpdocumentor-element-found-in__source" data-line="163" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Base value for the mcrypt implementation $engine switch</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">ENGINE_MCRYPT</span>
= <span class="phpdocumentor-signature__default-value">3</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MCRYPT#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_ENGINE_OPENSSL">
ENGINE_OPENSSL
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">169</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.169" class="phpdocumentor-element-found-in__source" data-line="169" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Base value for the openssl implementation $engine switch</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">ENGINE_OPENSSL</span>
= <span class="phpdocumentor-signature__default-value">4</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_ENGINE_OPENSSL_GCM">
ENGINE_OPENSSL_GCM
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL_GCM" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">181</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.181" class="phpdocumentor-element-found-in__source" data-line="181" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Base value for the openssl / gcm implementation $engine switch</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">ENGINE_OPENSSL_GCM</span>
= <span class="phpdocumentor-signature__default-value">6</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL_GCM#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_CBC">
MODE_CBC
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CBC" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">82</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.82" class="phpdocumentor-element-found-in__source" data-line="82" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using the Code Book Chaining mode.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_CBC</span>
= <span class="phpdocumentor-signature__default-value">2</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CBC#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher-block_chaining_.28CBC.29"> http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher-block_chaining_.28CBC.29 </a>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_CFB">
MODE_CFB
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">90</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.90" class="phpdocumentor-element-found-in__source" data-line="90" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using the Cipher Feedback mode.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_CFB</span>
= <span class="phpdocumentor-signature__default-value">3</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher_feedback_.28CFB.29"> http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher_feedback_.28CFB.29 </a>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_CFB8">
MODE_CFB8
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB8" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">97</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.97" class="phpdocumentor-element-found-in__source" data-line="97" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using the Cipher Feedback mode (8bit)</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_CFB8</span>
= <span class="phpdocumentor-signature__default-value">7</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB8#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_CTR">
MODE_CTR
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CTR" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">66</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.66" class="phpdocumentor-element-found-in__source" data-line="66" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using the Counter mode.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_CTR</span>
= <span class="phpdocumentor-signature__default-value">-1</span>
</code>
<section class="phpdocumentor-description"><p>Set to -1 since that's what Crypt/Random.php uses to index the CTR mode.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CTR#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29"> http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29 </a>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_ECB">
MODE_ECB
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_ECB" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">74</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.74" class="phpdocumentor-element-found-in__source" data-line="74" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using the Electronic Code Book mode.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_ECB</span>
= <span class="phpdocumentor-signature__default-value">1</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_ECB#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Electronic_codebook_.28ECB.29"> http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Electronic_codebook_.28ECB.29 </a>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_GCM">
MODE_GCM
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_GCM" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">120</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.120" class="phpdocumentor-element-found-in__source" data-line="120" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using Galois/Counter mode.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_GCM</span>
= <span class="phpdocumentor-signature__default-value">5</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_GCM#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="https://en.wikipedia.org/wiki/Galois/Counter_Mode"> https://en.wikipedia.org/wiki/Galois/Counter_Mode </a>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_MAP">
MODE_MAP
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_MAP" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">134</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.134" class="phpdocumentor-element-found-in__source" data-line="134" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Mode Map</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_MAP</span>
= <span class="phpdocumentor-signature__default-value">[&#039;ctr&#039; =&gt; self::MODE_CTR, &#039;ecb&#039; =&gt; self::MODE_ECB, &#039;cbc&#039; =&gt; self::MODE_CBC, &#039;cfb&#039; =&gt; self::MODE_CFB, &#039;cfb8&#039; =&gt; self::MODE_CFB8, &#039;ofb&#039; =&gt; self::MODE_OFB, &#039;ofb8&#039; =&gt; self::MODE_OFB8, &#039;gcm&#039; =&gt; self::MODE_GCM, &#039;stream&#039; =&gt; self::MODE_STREAM]</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_MAP#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_OFB">
MODE_OFB
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">112</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.112" class="phpdocumentor-element-found-in__source" data-line="112" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using the Output Feedback mode.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_OFB</span>
= <span class="phpdocumentor-signature__default-value">4</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Output_feedback_.28OFB.29"> http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Output_feedback_.28OFB.29 </a>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_OFB8">
MODE_OFB8
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB8" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">104</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.104" class="phpdocumentor-element-found-in__source" data-line="104" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using the Output Feedback mode (8bit)</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_OFB8</span>
= <span class="phpdocumentor-signature__default-value">8</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB8#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_MODE_STREAM">
MODE_STREAM
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_STREAM" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">127</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.127" class="phpdocumentor-element-found-in__source" data-line="127" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypt / decrypt using streaming mode.</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">MODE_STREAM</span>
= <span class="phpdocumentor-signature__default-value">6</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_STREAM#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_encrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::encrypt()">SymmetricKey::encrypt()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_decrypt"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::decrypt()">SymmetricKey::decrypt()</abbr></a></span>
</dd>
</dl>
</article>
</section>
<section class="phpdocumentor-properties">
<h3 class="phpdocumentor-elements__header" id="properties">
Properties
<a href="classes/phpseclib3-Crypt-Rijndael.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_aad">
$aad
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_aad" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">513</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.513" class="phpdocumentor-element-found-in__source" data-line="513" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Additional authenticated data</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$aad</span>
= <span class="phpdocumentor-signature__default-value">&#039;&#039;</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_block_size">
$block_size
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_block_size" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">210</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.210" class="phpdocumentor-element-found-in__source" data-line="210" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Block Length of the block cipher</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$block_size</span>
= <span class="phpdocumentor-signature__default-value">16</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_cfb_init_len">
$cfb_init_len
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cfb_init_len" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">357</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.357" class="phpdocumentor-element-found-in__source" data-line="357" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Optimizing value while CFB-encrypting</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$cfb_init_len</span>
= <span class="phpdocumentor-signature__default-value">600</span></code>
<section class="phpdocumentor-description"><p>Only relevant if $continuousBuffer enabled
and $engine == self::ENGINE_MCRYPT</p>
<p>It's faster to re-init $enmcrypt if
$buffer bytes &gt; $cfb_init_len than
using the $ecb resource furthermore.</p>
<p>This value depends of the chosen cipher
and the time it would be needed for it's
initialization [by mcrypt_generic_init()]
which, typically, depends on the complexity
on its internaly Key-expanding algorithm.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cfb_init_len#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_changed">
$changed
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_changed" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">367</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.367" class="phpdocumentor-element-found-in__source" data-line="367" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Does internal cipher state need to be (re)initialized?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$changed</span>
= <span class="phpdocumentor-signature__default-value">true</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_changed#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setKey()">self::setKey()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setIV()">self::setIV()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::disableContinuousBuffer()">self::disableContinuousBuffer()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_cipher_name_mcrypt">
$cipher_name_mcrypt
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_cipher_name_mcrypt" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">82</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.82" class="phpdocumentor-element-found-in__source" data-line="82" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The mcrypt specific name of the cipher</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$cipher_name_mcrypt</span>
= <span class="phpdocumentor-signature__default-value">&#039;rijndael-128&#039;</span></code>
<section class="phpdocumentor-description"><p>Mcrypt is useable for 128/192/256-bit $block_size/$key_length. For 160/224 not.
\phpseclib3\Crypt\Rijndael determines automatically whether mcrypt is useable
or not for the current $block_size/$key_length.
In case of, $cipher_name_mcrypt will be set dynamically at run time accordingly.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_cipher_name_mcrypt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::cipher_name_mcrypt">SymmetricKey::cipher_name_mcrypt</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::engine">SymmetricKey::engine</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::isValidEngine()">self::isValidEngine()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_cipher_name_openssl">
$cipher_name_openssl
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">441</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.441" class="phpdocumentor-element-found-in__source" data-line="441" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The openssl specific name of the cipher</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$cipher_name_openssl</span>
</code>
<section class="phpdocumentor-description"><p>Only used if $engine == self::ENGINE_OPENSSL</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://www.php.net/openssl-get-cipher-methods"> http://www.php.net/openssl-get-cipher-methods </a>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_cipher_name_openssl_ecb">
$cipher_name_openssl_ecb
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl_ecb" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">452</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.452" class="phpdocumentor-element-found-in__source" data-line="452" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The openssl specific name of the cipher in ECB mode</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$cipher_name_openssl_ecb</span>
</code>
<section class="phpdocumentor-description"><p>If OpenSSL does not support the mode we're trying to use (CTR)
it can still be emulated with ECB mode.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl_ecb#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://www.php.net/openssl-get-cipher-methods"> http://www.php.net/openssl-get-cipher-methods </a>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_continuousBuffer">
$continuousBuffer
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_continuousBuffer" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">260</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.260" class="phpdocumentor-element-found-in__source" data-line="260" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Continuous Buffer status</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$continuousBuffer</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_continuousBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enableContinuousBuffer()">self::enableContinuousBuffer()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_debuffer">
$debuffer
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_debuffer" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">278</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.278" class="phpdocumentor-element-found-in__source" data-line="278" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Decryption buffer for CTR, OFB and CFB modes</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$debuffer</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_debuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::clearBuffers()">self::clearBuffers()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_decryptIV">
$decryptIV
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_decryptIV" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">252</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.252" class="phpdocumentor-element-found-in__source" data-line="252" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">A &quot;sliding&quot; Initialization Vector</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$decryptIV</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_decryptIV#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enableContinuousBuffer()">self::enableContinuousBuffer()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::clearBuffers()">self::clearBuffers()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_enbuffer">
$enbuffer
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enbuffer" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">269</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.269" class="phpdocumentor-element-found-in__source" data-line="269" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encryption buffer for CTR, OFB and CFB modes</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$enbuffer</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enbuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::clearBuffers()">self::clearBuffers()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_encryptIV">
$encryptIV
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_encryptIV" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">243</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.243" class="phpdocumentor-element-found-in__source" data-line="243" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">A &quot;sliding&quot; Initialization Vector</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$encryptIV</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_encryptIV#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enableContinuousBuffer()">self::enableContinuousBuffer()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::clearBuffers()">self::clearBuffers()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_engine">
$engine
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_engine" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">410</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.410" class="phpdocumentor-element-found-in__source" data-line="410" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Holds which crypt engine internaly should be use,
which will be determined automatically on __construct()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$engine</span>
</code>
<section class="phpdocumentor-description"><p>Currently available $engines are:</p>
<ul>
<li>self::ENGINE_LIBSODIUM (very fast, php-extension: libsodium, extension_loaded('libsodium') required)</li>
<li>self::ENGINE_OPENSSL_GCM (very fast, php-extension: openssl, extension_loaded('openssl') required)</li>
<li>self::ENGINE_OPENSSL (very fast, php-extension: openssl, extension_loaded('openssl') required)</li>
<li>self::ENGINE_MCRYPT (fast, php-extension: mcrypt, extension_loaded('mcrypt') required)</li>
<li>self::ENGINE_EVAL (medium, pure php-engine, no php-extension required)</li>
<li>self::ENGINE_INTERNAL (slower, pure php-engine, no php-extension required)</li>
</ul>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_engine#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setEngine()">self::setEngine()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_explicit_key_length">
$explicit_key_length
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_explicit_key_length" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">497</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.497" class="phpdocumentor-element-found-in__source" data-line="497" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Has the key length explicitly been set or should it be derived from the key, itself?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$explicit_key_length</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_explicit_key_length#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setKeyLength()">self::setKeyLength()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_hKey">
$hKey
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_hKey" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">226</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.226" class="phpdocumentor-element-found-in__source" data-line="226" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">HMAC Key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string|null</span>
<span class="phpdocumentor-signature__name">$hKey</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_hKey#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setupGCM()">self::setupGCM()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_inline_crypt">
$inline_crypt
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_inline_crypt" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">473</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.473" class="phpdocumentor-element-found-in__source" data-line="473" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The name of the performance-optimized callback function</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">callable</span>
<span class="phpdocumentor-signature__name">$inline_crypt</span>
</code>
<section class="phpdocumentor-description"><p>Used by encrypt() / decrypt()
only if $engine == self::ENGINE_INTERNAL</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_inline_crypt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setupInlineCrypt()">self::setupInlineCrypt()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_iv">
$iv
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_iv" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">234</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.234" class="phpdocumentor-element-found-in__source" data-line="234" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Initialization Vector</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$iv</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_iv#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setIV()">self::setIV()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_key">
$key
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_key" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">218</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.218" class="phpdocumentor-element-found-in__source" data-line="218" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$key</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_key#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setKey()">self::setKey()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_key_length">
$key_length
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_key_length" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">124</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.124" class="phpdocumentor-element-found-in__source" data-line="124" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Key Length (in bytes)</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$key_length</span>
= <span class="phpdocumentor-signature__default-value">16</span></code>
<section class="phpdocumentor-description"></section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_key_length#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setKeyLength()">self::setKeyLength()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_mode">
$mode
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_mode" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">203</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.203" class="phpdocumentor-element-found-in__source" data-line="203" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Encryption Mode</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$mode</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_mode#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::__construct()">self::__construct()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_newtag">
$newtag
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_newtag" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">520</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.520" class="phpdocumentor-element-found-in__source" data-line="520" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Authentication Tag produced after a round of encryption</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$newtag</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_nonce">
$nonce
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonce" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">593</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.593" class="phpdocumentor-element-found-in__source" data-line="593" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Nonce</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$nonce</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<section class="phpdocumentor-description"><p>Only used with GCM. We could re-use setIV() but nonce's can be of a different length and
toggling between GCM and other modes could be more complicated if we re-used setIV()</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonce#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setNonce()">self::setNonce()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_nonIVChanged">
$nonIVChanged
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonIVChanged" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">375</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.375" class="phpdocumentor-element-found-in__source" data-line="375" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Does Eval engie need to be (re)initialized?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$nonIVChanged</span>
= <span class="phpdocumentor-signature__default-value">true</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonIVChanged#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setup()">self::setup()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_oldtag">
$oldtag
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_oldtag" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">527</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.527" class="phpdocumentor-element-found-in__source" data-line="527" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Authentication Tag to be verified during decryption</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$oldtag</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_poly1305Key">
$poly1305Key
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Key" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">562</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.562" class="phpdocumentor-element-found-in__source" data-line="562" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Poly1305 Key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$poly1305Key</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Key#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setPoly1305Key()">self::setPoly1305Key()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::poly1305()">self::poly1305()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="property_use_reg_intval">
$use_reg_intval
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_use_reg_intval" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">553</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.553" class="phpdocumentor-element-found-in__source" data-line="553" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Flag for using regular vs &quot;safe&quot; intval</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$use_reg_intval</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_use_reg_intval#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::initialize_static_variables()">self::initialize_static_variables()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_usePoly1305">
$usePoly1305
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_usePoly1305" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">571</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.571" class="phpdocumentor-element-found-in__source" data-line="571" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Poly1305 Flag</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$usePoly1305</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_usePoly1305#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setPoly1305Key()">self::setPoly1305Key()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enablePoly1305()">self::enablePoly1305()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_c">
$c
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_c" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">149</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.149" class="phpdocumentor-element-found-in__source" data-line="149" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Shift offsets</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$c</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_dechanged">
$dechanged
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_dechanged" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">318</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.318" class="phpdocumentor-element-found-in__source" data-line="318" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Does the demcrypt resource need to be (re)initialized?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$dechanged</span>
= <span class="phpdocumentor-signature__default-value">true</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_dechanged#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Twofish.html#method_setKey"><abbr title="\phpseclib3\Crypt\Twofish::setKey()">Twofish::setKey()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Twofish::setIV()">Twofish::setIV()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_demcrypt">
$demcrypt
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_demcrypt" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">300</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.300" class="phpdocumentor-element-found-in__source" data-line="300" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">mcrypt resource for decryption</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">resource</span>
<span class="phpdocumentor-signature__name">$demcrypt</span>
</code>
<section class="phpdocumentor-description"><p>The mcrypt resource can be recreated every time something needs to be created or it can be created just once.
Since mcrypt operates in continuous mode, by default, it'll need to be recreated when in non-continuous mode.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_demcrypt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_dw">
$dw
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_dw" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">98</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.98" class="phpdocumentor-element-found-in__source" data-line="98" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Inverse Key Schedule</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$dw</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_dw#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setup()">self::setup()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_ecb">
$ecb
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_ecb" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">336</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.336" class="phpdocumentor-element-found-in__source" data-line="336" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">mcrypt resource for CFB mode</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">resource</span>
<span class="phpdocumentor-signature__name">$ecb</span>
</code>
<section class="phpdocumentor-description"><p>mcrypt's CFB mode, in (and only in) buffered context,
is broken, so phpseclib implements the CFB mode by it self,
even when the mcrypt php extension is available.</p>
<p>In order to do the CFB-mode work (fast) phpseclib
use a separate ECB-mode mcrypt resource.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_ecb#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">link</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<a class="phpdocumentor-tag-link" href="http://phpseclib.sourceforge.net/cfb-demo.phps"> http://phpseclib.sourceforge.net/cfb-demo.phps </a>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setupMcrypt()">self::setupMcrypt()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_enchanged">
$enchanged
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enchanged" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">309</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.309" class="phpdocumentor-element-found-in__source" data-line="309" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Does the enmcrypt resource need to be (re)initialized?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$enchanged</span>
= <span class="phpdocumentor-signature__default-value">true</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enchanged#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Twofish.html#method_setKey"><abbr title="\phpseclib3\Crypt\Twofish::setKey()">Twofish::setKey()</abbr></a></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Twofish::setIV()">Twofish::setIV()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_enmcrypt">
$enmcrypt
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enmcrypt" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">289</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.289" class="phpdocumentor-element-found-in__source" data-line="289" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">mcrypt resource for encryption</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">resource</span>
<span class="phpdocumentor-signature__name">$enmcrypt</span>
</code>
<section class="phpdocumentor-description"><p>The mcrypt resource can be recreated every time something needs to be created or it can be created just once.
Since mcrypt operates in continuous mode, by default, it'll need to be recreated when in non-continuous mode.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enmcrypt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="property_gcmField">
$gcmField
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_gcmField" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">536</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.536" class="phpdocumentor-element-found-in__source" data-line="536" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">GCM Binary Field</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Math-BinaryField.html"><abbr title="\phpseclib3\Math\BinaryField">BinaryField</abbr></a></span>
<span class="phpdocumentor-signature__name">$gcmField</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_gcmField#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::__construct()">self::__construct()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::ghash()">self::ghash()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_h">
$h
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_h" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">506</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.506" class="phpdocumentor-element-found-in__source" data-line="506" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Hash subkey for GHASH</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Math-BinaryField-Integer.html"><abbr title="\phpseclib3\Math\BinaryField\Integer">Integer</abbr></a></span>
<span class="phpdocumentor-signature__name">$h</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_h#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setupGCM()">self::setupGCM()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::ghash()">self::ghash()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_kl">
$kl
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_kl" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">156</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.156" class="phpdocumentor-element-found-in__source" data-line="156" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Holds the last used key- and block_size information</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$kl</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_Nb">
$Nb
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_Nb" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">111</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.111" class="phpdocumentor-element-found-in__source" data-line="111" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Block Length divided by 32</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$Nb</span>
= <span class="phpdocumentor-signature__default-value">4</span></code>
<section class="phpdocumentor-description"></section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_Nb#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setBlockLength()">self::setBlockLength()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_Nr">
$Nr
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_Nr" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">142</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.142" class="phpdocumentor-element-found-in__source" data-line="142" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Number of Rounds</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$Nr</span>
</code>
<section class="phpdocumentor-description"></section>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_openssl_emulate_ctr">
$openssl_emulate_ctr
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_openssl_emulate_ctr" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">481</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.481" class="phpdocumentor-element-found-in__source" data-line="481" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">If OpenSSL can be used in ECB but not in CTR we can emulate CTR</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$openssl_emulate_ctr</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_openssl_emulate_ctr#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::openssl_ctr_process()">self::openssl_ctr_process()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_origIV">
$origIV
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_origIV" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">582</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.582" class="phpdocumentor-element-found-in__source" data-line="582" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Original Initialization Vector</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$origIV</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<section class="phpdocumentor-description"><p>GCM uses the nonce to build the IV but we want to be able to distinguish between nonce-derived
IV's and user-set IV's</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_origIV#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setIV()">self::setIV()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_paddable">
$paddable
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_paddable" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">391</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.391" class="phpdocumentor-element-found-in__source" data-line="391" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Is the mode one that is paddable?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$paddable</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_paddable#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::__construct()">self::__construct()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_padding">
$padding
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_padding" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">383</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.383" class="phpdocumentor-element-found-in__source" data-line="383" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Padding status</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$padding</span>
= <span class="phpdocumentor-signature__default-value">true</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_padding#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enablePadding()">self::enablePadding()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_password_default_salt">
$password_default_salt
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_password_default_salt" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">460</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.460" class="phpdocumentor-element-found-in__source" data-line="460" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The default salt used by setPassword()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">$password_default_salt</span>
= <span class="phpdocumentor-signature__default-value">&#039;phpseclib/salt&#039;</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_password_default_salt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setPassword()">self::setPassword()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="property_poly1305Field">
$poly1305Field
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Field" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">545</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.545" class="phpdocumentor-element-found-in__source" data-line="545" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Poly1305 Prime Field</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Math-PrimeField.html"><abbr title="\phpseclib3\Math\PrimeField">PrimeField</abbr></a></span>
<span class="phpdocumentor-signature__name">$poly1305Field</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Field#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enablePoly1305()">self::enablePoly1305()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::poly1305()">self::poly1305()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_preferredEngine">
$preferredEngine
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_preferredEngine" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">419</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.419" class="phpdocumentor-element-found-in__source" data-line="419" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Holds the preferred crypt engine</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">int</span>
<span class="phpdocumentor-signature__name">$preferredEngine</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_preferredEngine#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setEngine()">self::setEngine()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setPreferredEngine()">self::setPreferredEngine()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_skip_key_adjustment">
$skip_key_adjustment
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_skip_key_adjustment" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">489</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.489" class="phpdocumentor-element-found-in__source" data-line="489" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Don&#039;t truncate / null pad key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">bool</span>
<span class="phpdocumentor-signature__name">$skip_key_adjustment</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_skip_key_adjustment#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::clearBuffers()">self::clearBuffers()</abbr></span>
</dd>
</dl>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_w">
$w
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_w" class="headerlink"><i class="fas fa-link"></i></a>
<span class="phpdocumentor-element__modifiers">
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">90</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.90" class="phpdocumentor-element-found-in__source" data-line="90" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The Key Schedule</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$w</span>
</code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#property_w#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setup()">self::setup()</abbr></span>
</dd>
</dl>
</article>
</section>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/phpseclib3-Crypt-Rijndael.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method___construct">
__construct()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">164</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.164" class="phpdocumentor-element-found-in__source" data-line="164" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Default Constructor.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mode</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$mode</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\InvalidArgumentException">InvalidArgumentException</abbr></span>
<section class="phpdocumentor-description"><p>if an invalid / unsupported mode is provided</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_continuousBufferEnabled">
continuousBufferEnabled()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_continuousBufferEnabled" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3394</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3394" class="phpdocumentor-element-found-in__source" data-line="3394" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Is the continuous buffer enabled?</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">continuousBufferEnabled</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_decrypt">
decrypt()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_decrypt" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">996</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.996" class="phpdocumentor-element-found-in__source" data-line="996" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Decrypts a message.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">decrypt</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ciphertext</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$ciphertext</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_decrypt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\parent::decrypt()">parent::decrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_disableContinuousBuffer">
disableContinuousBuffer()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disableContinuousBuffer" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2218</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2218" class="phpdocumentor-element-found-in__source" data-line="2218" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Treat consecutive packets as if they are a discontinuous buffer.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">disableContinuousBuffer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The default behavior.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disableContinuousBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enableContinuousBuffer()">self::enableContinuousBuffer()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_disablePadding">
disablePadding()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disablePadding" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2151</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2151" class="phpdocumentor-element-found-in__source" data-line="2151" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Do not pad packets.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">disablePadding</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disablePadding#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::enablePadding()">self::enablePadding()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_enableContinuousBuffer">
enableContinuousBuffer()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enableContinuousBuffer" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2194</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2194" class="phpdocumentor-element-found-in__source" data-line="2194" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Treat consecutive &quot;packets&quot; as if they are a continuous buffer.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">enableContinuousBuffer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Say you have a 32-byte plaintext $plaintext. Using the default behavior, the two following code snippets
will yield different outputs:</p>
<code class="prettyprint">
echo $rijndael->encrypt(substr($plaintext, 0, 16));
echo $rijndael->encrypt(substr($plaintext, 16, 16));
</code>
<code class="prettyprint">
echo $rijndael->encrypt($plaintext);
</code>
<p>The solution is to enable the continuous buffer. Although this will resolve the above discrepancy, it creates
another, as demonstrated with the following:</p>
<code class="prettyprint">
$rijndael->encrypt(substr($plaintext, 0, 16));
echo $rijndael->decrypt($rijndael->encrypt(substr($plaintext, 16, 16)));
</code>
<code class="prettyprint">
echo $rijndael->decrypt($rijndael->encrypt(substr($plaintext, 16, 16)));
</code>
<p>With the continuous buffer disabled, these would yield the same output. With it enabled, they yield different
outputs. The reason is due to the fact that the initialization vector's change after every encryption /
decryption round when the continuous buffer is enabled. When it's disabled, they remain constant.</p>
<p>Put another way, when the continuous buffer is enabled, the state of the \phpseclib3\Crypt*() object changes after each
encryption / decryption round, whereas otherwise, it'd remain constant. For this reason, it's recommended that
continuous buffers not be used. They do offer better security and are, in fact, sometimes required (SSH uses them),
however, they are also less intuitive and more likely to cause you problems.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enableContinuousBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::disableContinuousBuffer()">self::disableContinuousBuffer()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_enablePadding">
enablePadding()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePadding" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2141</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2141" class="phpdocumentor-element-found-in__source" data-line="2141" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Pad &quot;packets&quot;.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">enablePadding</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Block ciphers working by encrypting between their specified [$this-&gt;]block_size at a time
If you ever need to encrypt or decrypt something that isn't of the proper length, it becomes necessary to
pad the input so that it is of the proper length.</p>
<p>Padding is enabled by default. Sometimes, however, it is undesirable to pad strings. Such is the case in SSH,
where &quot;packets&quot; are padded with random bytes before being encrypted. Unpad these packets and you risk stripping
away characters that shouldn't be stripped away. (SSH knows how many bytes are added because the length is
transmitted separately)</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePadding#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::disablePadding()">self::disablePadding()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_enablePoly1305">
enablePoly1305()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePoly1305" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">739</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.739" class="phpdocumentor-element-found-in__source" data-line="739" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Enables Poly1305 mode.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">enablePoly1305</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Once enabled Poly1305 cannot be disabled.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePoly1305#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\BadMethodCallException">BadMethodCallException</abbr></span>
<section class="phpdocumentor-description"><p>if Poly1305 is enabled whilst in GCM mode</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_encrypt">
encrypt()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_encrypt" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">965</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.965" class="phpdocumentor-element-found-in__source" data-line="965" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypts a message.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">encrypt</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$plaintext</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$plaintext</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_encrypt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\parent::encrypt()">parent::encrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getBlockLength">
getBlockLength()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getBlockLength" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">847</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.847" class="phpdocumentor-element-found-in__source" data-line="847" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the current block length in bits</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getBlockLength</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getBlockLengthInBytes">
getBlockLengthInBytes()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getBlockLengthInBytes" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">857</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.857" class="phpdocumentor-element-found-in__source" data-line="857" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the current block length in bytes</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getBlockLengthInBytes</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getEngine">
getEngine()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getEngine" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2341</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2341" class="phpdocumentor-element-found-in__source" data-line="2341" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the engine currently being utilized</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getEngine</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getEngine#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setEngine()">self::setEngine()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getKeyLength">
getKeyLength()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getKeyLength" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">837</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.837" class="phpdocumentor-element-found-in__source" data-line="837" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the current key length in bits</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getKeyLength</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getMode">
getMode()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getMode" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3384</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3384" class="phpdocumentor-element-found-in__source" data-line="3384" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Return the mode</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getMode</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>You can do $obj instanceof AES or whatever to get the cipher but you can't do that to get the mode</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getTag">
getTag()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getTag" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1895</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.1895" class="phpdocumentor-element-found-in__source" data-line="1895" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get the authentication tag</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getTag</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$length</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">16</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Only used in GCM or Poly1305 mode</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$length</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
= <span class="phpdocumentor-signature__argument__default-value">16</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getTag#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if $length isn't of a sufficient length</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
<section class="phpdocumentor-description"><p>if GCM mode isn't being used</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_isValidEngine">
isValidEngine()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_isValidEngine" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2288</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2288" class="phpdocumentor-element-found-in__source" data-line="2288" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Test for engine validity</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">isValidEngine</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$engine</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$engine</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_isValidEngine#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::__construct()">self::__construct()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setAAD">
setAAD()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setAAD" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">803</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.803" class="phpdocumentor-element-found-in__source" data-line="803" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets additional authenticated data</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setAAD</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$aad</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>setAAD() is only used by gcm or in poly1305 mode</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$aad</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setAAD#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\BadMethodCallException">BadMethodCallException</abbr></span>
<section class="phpdocumentor-description"><p>if mode isn't GCM or if poly1305 isn't being utilized</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setBlockLength">
setBlockLength()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setBlockLength" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">241</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.241" class="phpdocumentor-element-found-in__source" data-line="241" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the block length</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setBlockLength</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$length</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Valid block lengths are 128, 160, 192, 224, and 256.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$length</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setIV">
setIV()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setIV" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">710</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.710" class="phpdocumentor-element-found-in__source" data-line="710" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the initialization vector.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setIV</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$iv</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>setIV() is not required when ecb or gcm modes are being used.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$iv</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setIV#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if the IV length isn't equal to the block size</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\BadMethodCallException">BadMethodCallException</abbr></span>
<section class="phpdocumentor-description"><p>if an IV is provided when one shouldn't be</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setKey">
setKey()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setKey" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">218</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.218" class="phpdocumentor-element-found-in__source" data-line="218" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the key.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setKey</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Rijndael supports five different key lengths</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$key</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setKey#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\setKeyLength()">setKeyLength()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if the key length isn't supported</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setKeyLength">
setKeyLength()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setKeyLength" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">192</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.192" class="phpdocumentor-element-found-in__source" data-line="192" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the key length.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setKeyLength</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$length</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Valid key lengths are 128, 160, 192, 224, and 256.</p>
<p>Note: phpseclib extends Rijndael (and AES) for using 160- and 224-bit keys but they are officially not defined
and the most (if not all) implementations are not able using 160/224-bit keys but round/pad them up to
192/256 bits as, for example, mcrypt will do.</p>
<pre class="prettyprint"><code class="prettyprint"> That said, if you want be compatible with other Rijndael and AES implementations,
you should not setKeyLength(160) or setKeyLength(224).
</code></pre>
<p>Additional: In case of 160- and 224-bit keys, phpseclib will/can, for that reason, not use
the mcrypt php extension, even if available.
This results then in slower encryption.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$length</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setKeyLength#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if the key length is invalid</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setNonce">
setNonce()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setNonce" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">785</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.785" class="phpdocumentor-element-found-in__source" data-line="785" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the nonce.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setNonce</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$nonce</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>setNonce() is only required when gcm is used</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$nonce</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setNonce#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\BadMethodCallException">BadMethodCallException</abbr></span>
<section class="phpdocumentor-description"><p>if an nonce is provided when one shouldn't be</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setPassword">
setPassword()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPassword" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">927</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.927" class="phpdocumentor-element-found-in__source" data-line="927" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the password.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setPassword</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$password</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$method</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;pbkdf2&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|string&nbsp;</span><span class="phpdocumentor-signature__argument__variadic-operator">...</span><span class="phpdocumentor-signature__argument__name">$func_args</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Depending on what $method is set to, setPassword()'s (optional) parameters are as follows:
<a href="http://en.wikipedia.org/wiki/PBKDF2">pbkdf2</a> or pbkdf1:
$hash, $salt, $count, $dkLen</p>
<pre class="prettyprint"><code class="prettyprint"> Where $hash (default = sha1) currently supports the following hashes: see: Crypt/Hash.php
[bcypt](https://en.wikipedia.org/wiki/Bcrypt):
$salt, $rounds, $keylen
This is a modified version of bcrypt used by OpenSSH.
</code></pre>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$password</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$method</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;pbkdf2&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$func_args</span>
: <span class="phpdocumentor-signature__argument__return-type">int|string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPassword#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Crypt/Hash.php</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if pbkdf1 is being used and the derived key length exceeds the hash length</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
<section class="phpdocumentor-description"><p>if bcrypt is being used and a salt isn't provided</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setPoly1305Key">
setPoly1305Key()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPoly1305Key" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">758</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.758" class="phpdocumentor-element-found-in__source" data-line="758" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Enables Poly1305 mode.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setPoly1305Key</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Once enabled Poly1305 cannot be disabled. If $key is not passed then an attempt to call createPoly1305Key
will be made.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$key</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPoly1305Key#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if the key isn't long enough</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\BadMethodCallException">BadMethodCallException</abbr></span>
<section class="phpdocumentor-description"><p>if Poly1305 is enabled whilst in GCM mode</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setPreferredEngine">
setPreferredEngine()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPreferredEngine" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2323</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2323" class="phpdocumentor-element-found-in__source" data-line="2323" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the preferred crypt engine</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setPreferredEngine</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$engine</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Currently, $engine could be:</p>
<ul>
<li>
<p>libsodium[very fast]</p>
</li>
<li>
<p>OpenSSL [very fast]</p>
</li>
<li>
<p>mcrypt [fast]</p>
</li>
<li>
<p>Eval [slow]</p>
</li>
<li>
<p>PHP [slowest]</p>
</li>
</ul>
<p>If the preferred crypt engine is not available the fastest available one will be used</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$engine</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPreferredEngine#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::__construct()">self::__construct()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_setTag">
setTag()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setTag" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1929</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.1929" class="phpdocumentor-element-found-in__source" data-line="1929" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the authentication tag</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">setTag</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$tag</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Only used in GCM mode</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$tag</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setTag#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if $length isn't of a sufficient length</p>
</section>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
<section class="phpdocumentor-description"><p>if GCM mode isn't being used</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_usesIV">
usesIV()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_usesIV" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">817</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.817" class="phpdocumentor-element-found-in__source" data-line="817" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns whether or not the algorithm uses an IV</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">usesIV</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_usesNonce">
usesNonce()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_usesNonce" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">827</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.827" class="phpdocumentor-element-found-in__source" data-line="827" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns whether or not the algorithm uses a nonce</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">usesNonce</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_createInlineCryptFunction">
createInlineCryptFunction()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_createInlineCryptFunction" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2770</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2770" class="phpdocumentor-element-found-in__source" data-line="2770" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Creates the performance-optimized function for en/decrypt()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">createInlineCryptFunction</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$cipher_code</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Internally for phpseclib developers:</p>
<p>_createInlineCryptFunction():</p>
<ul>
<li>
<p>merge the $cipher_code [setup'ed by _setupInlineCrypt()]
with the current [$this-&gt;]mode of operation code</p>
</li>
<li>
<p>create the $inline function, which called by encrypt() / decrypt()
as its replacement to speed up the en/decryption operations.</p>
</li>
<li>
<p>return the name of the created $inline callback function</p>
</li>
<li>
<p>used to speed up en/decryption</p>
</li>
</ul>
<p>The main reason why can speed up things [up to 50%] this way are:</p>
<ul>
<li>
<p>using variables more effective then regular.
(ie no use of expensive arrays but integers $k_0, $k_1 ...
or even, for example, the pure $key[] values hardcoded)</p>
</li>
<li>
<p>avoiding 1000's of function calls of ie _encryptBlock()
but inlining the crypt operations.
in the mode of operation for() loop.</p>
</li>
<li>
<p>full loop unroll the (sometimes key-dependent) rounds
avoiding this way ++$i counters and runtime-if's etc...</p>
</li>
</ul>
<p>The basic code architectur of the generated $inline en/decrypt()
lambda function, in pseudo php, is:</p>
<code class="prettyprint">
+----------------------------------------------------------------------------------------------+
| callback $inline = create_function: |
| lambda_function_0001_crypt_ECB($action, $text) |
| { |
| INSERT PHP CODE OF: |
| $cipher_code['init_crypt']; // general init code. |
| // ie: $sbox'es declarations used for |
| // encrypt and decrypt'ing. |
| |
| switch ($action) { |
| case 'encrypt': |
| INSERT PHP CODE OF: |
| $cipher_code['init_encrypt']; // encrypt sepcific init code. |
| ie: specified $key or $box |
| declarations for encrypt'ing. |
| |
| foreach ($ciphertext) { |
| $in = $block_size of $ciphertext; |
| |
| INSERT PHP CODE OF: |
| $cipher_code['encrypt_block']; // encrypt's (string) $in, which is always: |
| // strlen($in) == $this->block_size |
| // here comes the cipher algorithm in action |
| // for encryption. |
| // $cipher_code['encrypt_block'] has to |
| // encrypt the content of the $in variable |
| |
| $plaintext .= $in; |
| } |
| return $plaintext; |
| |
| case 'decrypt': |
| INSERT PHP CODE OF: |
| $cipher_code['init_decrypt']; // decrypt sepcific init code |
| ie: specified $key or $box |
| declarations for decrypt'ing. |
| foreach ($plaintext) { |
| $in = $block_size of $plaintext; |
| |
| INSERT PHP CODE OF: |
| $cipher_code['decrypt_block']; // decrypt's (string) $in, which is always |
| // strlen($in) == $this->block_size |
| // here comes the cipher algorithm in action |
| // for decryption. |
| // $cipher_code['decrypt_block'] has to |
| // decrypt the content of the $in variable |
| $ciphertext .= $in; |
| } |
| return $ciphertext; |
| } |
| } |
+----------------------------------------------------------------------------------------------+
</code>
<p>See also the \phpseclib3\Crypt*::_setupInlineCrypt()'s for
productive inline $cipher_code's how they works.</p>
<p>Structure of:
<code class="prettyprint">
$cipher_code = [
'init_crypt' =&gt; (string) '', // optional
'init_encrypt' =&gt; (string) '', // optional
'init_decrypt' =&gt; (string) '', // optional
'encrypt_block' =&gt; (string) '', // required
'decrypt_block' =&gt; (string) '' // required
];
</code></p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$cipher_code</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_createInlineCryptFunction#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setupInlineCrypt()">self::setupInlineCrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
&mdash;
<section class="phpdocumentor-description"><p>(the name of the created callback function)</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_decryptBlock">
decryptBlock()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_decryptBlock" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">401</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.401" class="phpdocumentor-element-found-in__source" data-line="401" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Decrypts a block</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">decryptBlock</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$in</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$in</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_encryptBlock">
encryptBlock()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_encryptBlock" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">312</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.312" class="phpdocumentor-element-found-in__source" data-line="312" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Encrypts a block</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">encryptBlock</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$in</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$in</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_getInvTables">
getInvTables()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_getInvTables" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">743</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.743" class="phpdocumentor-element-found-in__source" data-line="743" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Provides the inverse mixColumns and inverse sboxes tables</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__reference-operator">&amp;</span> <span class="phpdocumentor-signature__name">getInvTables</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_getInvTables#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::decryptBlock()">self::decryptBlock()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setupInlineCrypt()">self::setupInlineCrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setupKey()">self::setupKey()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>&amp;$tables</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_getIV">
getIV()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getIV" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1956</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.1956" class="phpdocumentor-element-found-in__source" data-line="1956" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Get the IV</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">getIV</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$iv</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>mcrypt requires an IV even if ECB is used</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$iv</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getIV#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_getTables">
getTables()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_getTables" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">655</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.655" class="phpdocumentor-element-found-in__source" data-line="655" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Provides the mixColumns and sboxes tables</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__reference-operator">&amp;</span> <span class="phpdocumentor-signature__name">getTables</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_getTables#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::encryptBlock()">self::encryptBlock()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setupInlineCrypt()">self::setupInlineCrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::subWord()">self::subWord()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
&mdash;
<section class="phpdocumentor-description"><p>&amp;$tables</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="method_initialize_static_variables">
initialize_static_variables()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_initialize_static_variables" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">665</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.665" class="phpdocumentor-element-found-in__source" data-line="665" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Initialize static variables</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">initialize_static_variables</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_isValidEngineHelper">
isValidEngineHelper()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_isValidEngineHelper" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">269</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.269" class="phpdocumentor-element-found-in__source" data-line="269" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Test for engine validity</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">isValidEngineHelper</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$engine</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This is mainly just a wrapper to set things up for \phpseclib3\Crypt\Common\SymmetricKey::isValidEngine()</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$engine</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_isValidEngineHelper#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method___construct"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::__construct()">SymmetricKey::__construct()</abbr></a></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="method_nullPad128">
nullPad128()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_nullPad128" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3336</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3336" class="phpdocumentor-element-found-in__source" data-line="3336" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">NULL pads a string to be a multiple of 128</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">nullPad128</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$str</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_nullPad128#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setupGCM()">self::setupGCM()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_openssl_translate_mode">
openssl_translate_mode()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_translate_mode" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2108</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2108" class="phpdocumentor-element-found-in__source" data-line="2108" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">phpseclib &lt;-&gt; OpenSSL Mode Mapper</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">openssl_translate_mode</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>May need to be overwritten by classes extending this one in some cases</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_pad">
pad()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pad" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2558</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2558" class="phpdocumentor-element-found-in__source" data-line="2558" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Pads a string</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">pad</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$text</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Pads a string using the RSA PKCS padding standards so that its length is a multiple of the blocksize.
$this-&gt;block_size - (strlen($text) % $this-&gt;block_size) bytes are added, each of which is equal to
chr($this-&gt;block_size - (strlen($text) % $this-&gt;block_size)</p>
<p>If padding is disabled and $text is not a multiple of the blocksize, the string will be padded regardless
and padding will, hence forth, be enabled.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$text</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pad#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::unpad()">self::unpad()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if padding is disabled and the plaintext's length is not a multiple of the block size</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_poly1305">
poly1305()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_poly1305" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3353</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3353" class="phpdocumentor-element-found-in__source" data-line="3353" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Calculates Poly1305 MAC</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">poly1305</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$text</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>On my system ChaCha20, with libsodium, takes 0.5s. With this custom Poly1305 implementation
it takes 1.2s.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$text</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_poly1305#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="method_safe_intval">
safe_intval()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_safe_intval" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3218</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3218" class="phpdocumentor-element-found-in__source" data-line="3218" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Convert float to int</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">safe_intval</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>On ARM CPUs converting floats to ints doesn't always work</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$x</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="method_safe_intval_inline">
safe_intval_inline()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_safe_intval_inline" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3237</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3237" class="phpdocumentor-element-found-in__source" data-line="3237" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">eval()&#039;able string for in-line float to int</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">safe_intval_inline</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_setEngine">
setEngine()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setEngine" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2351</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2351" class="phpdocumentor-element-found-in__source" data-line="2351" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets the engine as appropriate</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">setEngine</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setEngine#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::__construct()">self::__construct()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_setup">
setup()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setup" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">498</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.498" class="phpdocumentor-element-found-in__source" data-line="498" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Setup the self::ENGINE_INTERNAL $engine</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">setup</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>(re)init, if necessary, the internal cipher $engine and flush all $buffers
Used (only) if $engine == self::ENGINE_INTERNAL</p>
<p>_setup() will be called each time if $changed === true
typically this happens when using one or more of following public methods:</p>
<ul>
<li>
<p>setKey()</p>
</li>
<li>
<p>setIV()</p>
</li>
<li>
<p>disableContinuousBuffer()</p>
</li>
<li>
<p>First run of encrypt() / decrypt() with no init-settings</p>
</li>
</ul>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setup#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setKey()">self::setKey()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::setIV()">self::setIV()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::disableContinuousBuffer()">self::disableContinuousBuffer()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_setupInlineCrypt">
setupInlineCrypt()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setupInlineCrypt" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">823</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.823" class="phpdocumentor-element-found-in__source" data-line="823" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Setup the performance-optimized function for de/encrypt()</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">setupInlineCrypt</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setupInlineCrypt#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::setupInlineCrypt()">SymmetricKey::setupInlineCrypt()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_setupKey">
setupKey()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setupKey" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">516</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.516" class="phpdocumentor-element-found-in__source" data-line="516" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Setup the key (expansion)</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">setupKey</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_setupKey#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setupKey"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::setupKey()">SymmetricKey::setupKey()</abbr></a></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_unpad">
unpad()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_unpad" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2586</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2586" class="phpdocumentor-element-found-in__source" data-line="2586" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Unpads a string.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">unpad</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$text</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>If padding is enabled and the reported padding length is invalid the encryption key will be assumed to be wrong
and false will be returned.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$text</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_unpad#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::pad()">self::pad()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">throws</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\LengthException">LengthException</abbr></span>
<section class="phpdocumentor-description"><p>if the ciphertext's length is not a multiple of the block size</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_ghash">
ghash()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_ghash" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3288</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3288" class="phpdocumentor-element-found-in__source" data-line="3288" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Performs GHASH operation</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">ghash</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>See https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf#page=20
for more info</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$x</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_ghash#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="method_len64">
len64()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_len64" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3322</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3322" class="phpdocumentor-element-found-in__source" data-line="3322" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the bit length of a string in a packed format</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">len64</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$str</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_len64#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setupGCM()">self::setupGCM()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_openssl_ctr_process">
openssl_ctr_process()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ctr_process" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1976</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.1976" class="phpdocumentor-element-found-in__source" data-line="1976" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">OpenSSL CTR Processor</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">openssl_ctr_process</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$plaintext</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$encryptIV</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$buffer</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>PHP's OpenSSL bindings do not operate in continuous mode so we'll wrap around it. Since the keystream
for CTR is the same for both encrypting and decrypting this function is re-used by both SymmetricKey::encrypt()
and SymmetricKey::decrypt(). Also, OpenSSL doesn't implement CTR for all of it's symmetric ciphers so this
function will emulate CTR with ECB when necessary.</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$plaintext</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$encryptIV</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$buffer</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ctr_process#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_openssl_ofb_process">
openssl_ofb_process()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ofb_process" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">2063</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.2063" class="phpdocumentor-element-found-in__source" data-line="2063" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">OpenSSL OFB Processor</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">openssl_ofb_process</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$plaintext</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$encryptIV</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$buffer</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>PHP's OpenSSL bindings do not operate in continuous mode so we'll wrap around it. Since the keystream
for OFB is the same for both encrypting and decrypting this function is re-used by both SymmetricKey::encrypt()
and SymmetricKey::decrypt().</p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$plaintext</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$encryptIV</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$buffer</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ofb_process#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::encrypt()">self::encrypt()</abbr></span>
</dd>
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::decrypt()">self::decrypt()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="method_pkcs12helper">
pkcs12helper()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pkcs12helper" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">1088</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.1088" class="phpdocumentor-element-found-in__source" data-line="1088" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">PKCS#12 KDF Helper Function</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">pkcs12helper</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$n</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-Hash.html"><abbr title="\phpseclib3\Crypt\Hash">Hash</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$hashObj</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$d</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$count</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>As discussed here:</p>
<p><a href="https://tools.ietf.org/html/rfc7292#appendix-B"></a></p>
</section>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$n</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$hashObj</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-Hash.html"><abbr title="\phpseclib3\Crypt\Hash">Hash</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$i</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$d</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$count</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pkcs12helper#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\Common\self::setPassword()">self::setPassword()</abbr></span>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
&mdash;
<section class="phpdocumentor-description"><p>$a</p>
</section>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_setupGCM">
setupGCM()
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setupGCM" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-symmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php">SymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">3254</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.3254" class="phpdocumentor-element-found-in__source" data-line="3254" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Sets up GCM parameters</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">setupGCM</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>See steps 1-2 of https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf#page=23
for more info</p>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_subWord">
subWord()
<a href="classes/phpseclib3-Crypt-Rijndael.html#method_subWord" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-rijndael.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php">Rijndael.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">634</span>
<a href="classes/phpseclib3-Crypt-Rijndael.html#source-view.634" class="phpdocumentor-element-found-in__source" data-line="634" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Performs S-Box substitutions</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">subWord</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$word</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$word</span>
: <span class="phpdocumentor-signature__argument__return-type">int</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
</section>
<div class="phpdocumentor-modal" id="source-view">
<div class="phpdocumentor-modal-bg" data-exit-button></div>
<div class="phpdocumentor-modal-container">
<div class="phpdocumentor-modal-content">
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
</div>
<button data-exit-button class="phpdocumentor-modal__close">&times;</button>
</div>
</div>
<script type="text/javascript">
(function () {
function loadExternalCodeSnippet(el, url, line) {
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
const language = 'php';
const code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
pre.setAttribute('data-line', line)
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) {
return;
}
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
return;
}
if (xhr.status === 404) {
code.textContent = '✖ Error: File could not be found';
return;
}
if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
return;
}
code.textContent = '✖ Error: An unknown error occurred';
};
xhr.send(null);
});
}
const modalButtons = document.querySelectorAll("[data-modal]");
const openedAsLocalFile = window.location.protocol === 'file:';
if (modalButtons.length > 0 && openedAsLocalFile) {
console.warn(
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
'browsers block XHR requests when a page is opened this way'
);
}
modalButtons.forEach(function (trigger) {
if (openedAsLocalFile) {
trigger.setAttribute("hidden", "hidden");
}
trigger.addEventListener("click", function (event) {
event.preventDefault();
const modal = document.getElementById(trigger.dataset.modal);
if (!modal) {
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
return;
}
modal.classList.add("phpdocumentor-modal__open");
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
const exits = modal.querySelectorAll("[data-exit-button]");
exits.forEach(function (exit) {
exit.addEventListener("click", function (event) {
event.preventDefault();
modal.classList.remove("phpdocumentor-modal__open");
});
});
});
});
})();
</script>
</article>
</section>
<section class="phpdocumentor-on-this-page__sidebar">
<section class="phpdocumentor-on-this-page__content">
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
<ul class="phpdocumentor-list -clean">
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/phpseclib3-Crypt-Rijndael.html#toc-constants">Constants</a></li>
<li><a href="classes/phpseclib3-Crypt-Rijndael.html#toc-properties">Properties</a></li>
<li><a href="classes/phpseclib3-Crypt-Rijndael.html#toc-methods">Methods</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Constants</li>
<li>
<ul class="phpdocumentor-list -clean">
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_EVAL">ENGINE_EVAL</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_INTERNAL">ENGINE_INTERNAL</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_LIBSODIUM">ENGINE_LIBSODIUM</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MAP">ENGINE_MAP</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_MCRYPT">ENGINE_MCRYPT</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL">ENGINE_OPENSSL</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_ENGINE_OPENSSL_GCM">ENGINE_OPENSSL_GCM</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CBC">MODE_CBC</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB">MODE_CFB</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CFB8">MODE_CFB8</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_CTR">MODE_CTR</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_ECB">MODE_ECB</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_GCM">MODE_GCM</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_MAP">MODE_MAP</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB">MODE_OFB</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_OFB8">MODE_OFB8</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#constant_MODE_STREAM">MODE_STREAM</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
<li>
<ul class="phpdocumentor-list -clean">
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_aad">$aad</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_block_size">$block_size</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cfb_init_len">$cfb_init_len</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_changed">$changed</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_cipher_name_mcrypt">$cipher_name_mcrypt</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl">$cipher_name_openssl</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_cipher_name_openssl_ecb">$cipher_name_openssl_ecb</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_continuousBuffer">$continuousBuffer</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_debuffer">$debuffer</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_decryptIV">$decryptIV</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enbuffer">$enbuffer</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_encryptIV">$encryptIV</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_engine">$engine</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_explicit_key_length">$explicit_key_length</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_hKey">$hKey</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_inline_crypt">$inline_crypt</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_iv">$iv</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_key">$key</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_key_length">$key_length</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_mode">$mode</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_newtag">$newtag</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonce">$nonce</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_nonIVChanged">$nonIVChanged</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_oldtag">$oldtag</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Key">$poly1305Key</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_use_reg_intval">$use_reg_intval</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_usePoly1305">$usePoly1305</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_c">$c</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_dechanged">$dechanged</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_demcrypt">$demcrypt</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_dw">$dw</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_ecb">$ecb</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enchanged">$enchanged</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_enmcrypt">$enmcrypt</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_gcmField">$gcmField</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_h">$h</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_kl">$kl</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_Nb">$Nb</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_Nr">$Nr</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_openssl_emulate_ctr">$openssl_emulate_ctr</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_origIV">$origIV</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_paddable">$paddable</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_padding">$padding</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_password_default_salt">$password_default_salt</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_poly1305Field">$poly1305Field</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_preferredEngine">$preferredEngine</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_skip_key_adjustment">$skip_key_adjustment</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#property_w">$w</a></li>
</ul>
</li>
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
<li>
<ul class="phpdocumentor-list -clean">
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method___construct">__construct()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_continuousBufferEnabled">continuousBufferEnabled()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_decrypt">decrypt()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disableContinuousBuffer">disableContinuousBuffer()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_disablePadding">disablePadding()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enableContinuousBuffer">enableContinuousBuffer()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePadding">enablePadding()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePoly1305">enablePoly1305()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_encrypt">encrypt()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getBlockLength">getBlockLength()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getBlockLengthInBytes">getBlockLengthInBytes()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getEngine">getEngine()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getKeyLength">getKeyLength()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getMode">getMode()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getTag">getTag()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_isValidEngine">isValidEngine()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setAAD">setAAD()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_setBlockLength">setBlockLength()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setIV">setIV()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_setKey">setKey()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_setKeyLength">setKeyLength()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setNonce">setNonce()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPassword">setPassword()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPoly1305Key">setPoly1305Key()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setPreferredEngine">setPreferredEngine()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setTag">setTag()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_usesIV">usesIV()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_usesNonce">usesNonce()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_createInlineCryptFunction">createInlineCryptFunction()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_decryptBlock">decryptBlock()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_encryptBlock">encryptBlock()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_getInvTables">getInvTables()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getIV">getIV()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_getTables">getTables()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_initialize_static_variables">initialize_static_variables()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_isValidEngineHelper">isValidEngineHelper()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_nullPad128">nullPad128()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_translate_mode">openssl_translate_mode()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pad">pad()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_poly1305">poly1305()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_safe_intval">safe_intval()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_safe_intval_inline">safe_intval_inline()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setEngine">setEngine()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_setup">setup()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_setupInlineCrypt">setupInlineCrypt()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_setupKey">setupKey()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_unpad">unpad()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_ghash">ghash()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_len64">len64()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ctr_process">openssl_ctr_process()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_openssl_ofb_process">openssl_ofb_process()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_pkcs12helper">pkcs12helper()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setupGCM">setupGCM()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Rijndael.html#method_subWord">subWord()</a></li>
</ul>
</li>
</ul>
</section>
</section>
</div>
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
<header class="phpdocumentor-search-results__header">
<h2 class="phpdocumentor-search-results__title">Search results</h2>
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
</header>
<section class="phpdocumentor-search-results__body">
<ul class="phpdocumentor-search-results__entries"></ul>
</section>
</section>
</section>
</div>
<a href="classes/phpseclib3-Crypt-Rijndael.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
</main>
<script>
cssVars({});
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
</body>
</html>