mirror of
https://gh.wpcy.net/https://github.com/mainwp/mainwp.dev.git
synced 2026-07-16 20:55:24 +08:00
8701 lines
469 KiB
HTML
8701 lines
469 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>MainWP Dashboard 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 Dashboard 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-dashboard.html" class="">Dashboard</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/MainWPDashboard.html" class="">MainWPDashboard</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPAPIManagerKeyHandler.html" class="">MainWPAPIManagerKeyHandler</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPMainWP.html" class="">MainWPMainWP</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWPMainWP-API.html" class="">API</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWPMainWP-Keys.html" class="">Keys</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWPMainWP-Client.html" class="">Client</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPAPIManagerUpdateHandler.html" class="">MainWPAPIManagerUpdateHandler</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPMainWPAPIManager.html" class="">MainWPMainWPAPIManager</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWP.html" class="">MainWP</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWP-Dashboard.html" class="">Dashboard</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWP-DashboardMainWPsitesclientlist.html" class="">DashboardMainWPsitesclientlist</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWP-DashboardThisclasshandlesthe.html" class="">DashboardThisclasshandlesthe</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWP-DashboardMainWPsitesmonitoringlist.html" class="">DashboardMainWPsitesmonitoringlist</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWP-DashboardCheckforpremiumpluginupdates.html" class="">DashboardCheckforpremiumpluginupdates</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPSettings.html" class="">MainWPSettings</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPBackups.html" class="">MainWPBackups</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWPBackups-Continue.html" class="">Continue</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPBootstrap.html" class="">MainWPBootstrap</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPUpdates.html" class="">MainWPUpdates</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWPUpdates-Check.html" class="">Check</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWPUpdates-Overview.html" class="">Overview</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPPingChilds.html" class="">MainWPPingChilds</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPStats.html" class="">MainWPStats</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>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPExtensions.html" class="">MainWPExtensions</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPSecurtiy.html" class="">MainWPSecurtiy</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWPSecurtiy-Issues.html" class="">Issues</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPSetup.html" class="">MainWPSetup</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWPSetup-Wizard.html" class="">Wizard</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPSite.html" class="">MainWPSite</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWPSite-Open.html" class="">Open</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPThemes.html" class="">MainWPThemes</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPUser.html" class="">MainWPUser</a>
|
|
</h4>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPWidget.html" class="">MainWPWidget</a>
|
|
</h4>
|
|
<ul class="phpdocumentor-list">
|
|
<li>
|
|
<a href="packages/MainWPWidget-Mainwp.html" class="">Mainwp</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a href="packages/MainWPWidget-Recent.html" class="">Recent</a>
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
|
<a href="packages/MainWPPlugins.html" class="">MainWPPlugins</a>
|
|
</h4>
|
|
|
|
</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">
|
|
Twofish
|
|
|
|
<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-Dashboard.html">Dashboard</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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">47</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.47" class="phpdocumentor-element-found-in__source" data-line="47" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">Pure-PHP implementation of Twofish.</p>
|
|
|
|
|
|
|
|
|
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
|
Tags
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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>
|
|
<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>Hans-Juergen Petrich <a href="mailto:petrich@tronic-media.com">petrich@tronic-media.com</a></p>
|
|
</section>
|
|
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="toc">
|
|
Table of Contents
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4 id="toc-constants">
|
|
Constants
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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>
|
|
= 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>
|
|
= 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>
|
|
= 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>
|
|
= [self::ENGINE_INTERNAL => 'PHP', self::ENGINE_EVAL => 'Eval', self::ENGINE_MCRYPT => 'mcrypt', self::ENGINE_OPENSSL => 'OpenSSL', self::ENGINE_LIBSODIUM => 'libsodium', self::ENGINE_OPENSSL_GCM => 'OpenSSL (GCM)'] </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>
|
|
= 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>
|
|
= 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>
|
|
= 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>
|
|
= 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>
|
|
= 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>
|
|
= 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>
|
|
= -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>
|
|
= 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>
|
|
= 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>
|
|
= ['ctr' => self::MODE_CTR, 'ecb' => self::MODE_ECB, 'cbc' => self::MODE_CBC, 'cfb' => self::MODE_CFB, 'cfb8' => self::MODE_CFB8, 'ofb' => self::MODE_OFB, 'ofb8' => self::MODE_OFB8, 'gcm' => self::MODE_GCM, 'stream' => 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>
|
|
= 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>
|
|
= 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>
|
|
= 6 </span>
|
|
</dt>
|
|
<dd>Encrypt / decrypt using streaming mode.</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
<h4 id="toc-properties">
|
|
Properties
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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>
|
|
: 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>
|
|
: 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-Twofish.html#property_cfb_init_len">$cfb_init_len</a>
|
|
<span>
|
|
: 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>
|
|
: 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-Twofish.html#property_cipher_name_mcrypt">$cipher_name_mcrypt</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: array<string|int, mixed> </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>
|
|
: string </span>
|
|
</dt>
|
|
<dd>A "sliding" 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>
|
|
: array<string|int, mixed> </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>
|
|
: string </span>
|
|
</dt>
|
|
<dd>A "sliding" 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: string </span>
|
|
</dt>
|
|
<dd>The Key</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_key_length">$key_length</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: bool </span>
|
|
</dt>
|
|
<dd>Flag for using regular vs "safe" 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>
|
|
: bool </span>
|
|
</dt>
|
|
<dd>Poly1305 Flag</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_dechanged">$dechanged</a>
|
|
<span>
|
|
: 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>
|
|
: resource </span>
|
|
</dt>
|
|
<dd>mcrypt resource for decryption</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_ecb">$ecb</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: <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>
|
|
: <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-Twofish.html#property_K">$K</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>The Key Schedule Array</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_kl">$kl</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>Holds the last used key</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_m0">$m0</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>M-Table</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_m1">$m1</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>M-Table</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_m2">$m2</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>M-Table</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_m3">$m3</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>M-Table</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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: <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>
|
|
: 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-Twofish.html#property_q0">$q0</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>Q-Table</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_q1">$q1</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>Q-Table</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_S0">$S0</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>The Key depended S-Table 0</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_S1">$S1</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>The Key depended S-Table 1</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_S2">$S2</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>The Key depended S-Table 2</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#property_S3">$S3</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>The Key depended S-Table 3</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>
|
|
: bool </span>
|
|
</dt>
|
|
<dd>Don't truncate / null pad key</dd>
|
|
|
|
</dl>
|
|
|
|
<h4 id="toc-methods">
|
|
Methods
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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-Twofish.html#method___construct">__construct()</a>
|
|
<span>
|
|
: 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>
|
|
: 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-Common-SymmetricKey.html#method_decrypt">decrypt()</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: mixed </span>
|
|
</dt>
|
|
<dd>Treat consecutive "packets" 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>
|
|
: mixed </span>
|
|
</dt>
|
|
<dd>Pad "packets".</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
|
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_enablePoly1305">enablePoly1305()</a>
|
|
<span>
|
|
: 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_encrypt">encrypt()</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: mixed </span>
|
|
</dt>
|
|
<dd>Sets additional authenticated data</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
|
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_setIV">setIV()</a>
|
|
<span>
|
|
: mixed </span>
|
|
</dt>
|
|
<dd>Sets the initialization vector.</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#method_setKey">setKey()</a>
|
|
<span>
|
|
: mixed </span>
|
|
</dt>
|
|
<dd>Sets the key.</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#method_setKeyLength">setKeyLength()</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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-Twofish.html#method_decryptBlock">decryptBlock()</a>
|
|
<span>
|
|
: string </span>
|
|
</dt>
|
|
<dd>Decrypts a block</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#method_encryptBlock">encryptBlock()</a>
|
|
<span>
|
|
: string </span>
|
|
</dt>
|
|
<dd>Encrypts a block</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
|
|
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getIV">getIV()</a>
|
|
<span>
|
|
: string </span>
|
|
</dt>
|
|
<dd>Get the IV</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
|
|
<a class="" href="classes/phpseclib3-Crypt-Twofish.html#method_initialize_static_variables">initialize_static_variables()</a>
|
|
<span>
|
|
: mixed </span>
|
|
</dt>
|
|
<dd>Initialize Static Variables</dd>
|
|
|
|
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
|
|
<a class="" href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_isValidEngineHelper">isValidEngineHelper()</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: string </span>
|
|
</dt>
|
|
<dd>phpseclib <-> 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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: string </span>
|
|
</dt>
|
|
<dd>eval()'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>
|
|
: 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-Common-SymmetricKey.html#method_setup">setup()</a>
|
|
<span>
|
|
: 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-Twofish.html#method_setupInlineCrypt">setupInlineCrypt()</a>
|
|
<span>
|
|
: 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-Twofish.html#method_setupKey">setupKey()</a>
|
|
<span>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: 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-Twofish.html#method_mdsrem">mdsrem()</a>
|
|
<span>
|
|
: array<string|int, mixed> </span>
|
|
</dt>
|
|
<dd>_mdsrem function using by the twofish cipher algorithm</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>
|
|
: 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>
|
|
: 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>
|
|
: 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>
|
|
: mixed </span>
|
|
</dt>
|
|
<dd>Sets up GCM parameters</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<section class="phpdocumentor-constants">
|
|
<h3 class="phpdocumentor-elements__header" id="constants">
|
|
Constants
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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 => 'PHP', self::ENGINE_EVAL => 'Eval', self::ENGINE_MCRYPT => 'mcrypt', self::ENGINE_OPENSSL => 'OpenSSL', self::ENGINE_LIBSODIUM => 'libsodium', self::ENGINE_OPENSSL_GCM => 'OpenSSL (GCM)']</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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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">['ctr' => self::MODE_CTR, 'ecb' => self::MODE_ECB, 'cbc' => self::MODE_CBC, 'cfb' => self::MODE_CFB, 'cfb8' => self::MODE_CFB8, 'ofb' => self::MODE_OFB, 'ofb8' => self::MODE_OFB8, 'gcm' => self::MODE_GCM, 'stream' => 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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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">''</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-Twofish.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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">63</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.63" class="phpdocumentor-element-found-in__source" data-line="63" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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">800</span></code>
|
|
|
|
|
|
|
|
|
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
|
Tags
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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\SymmetricKey::cfb_init_len">SymmetricKey::cfb_init_len</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-Twofish.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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">55</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.55" class="phpdocumentor-element-found-in__source" data-line="55" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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">'twofish'</span></code>
|
|
|
|
|
|
|
|
|
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
|
Tags
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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>
|
|
</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-Twofish.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-Twofish.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-Twofish.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-Twofish.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<string|int, mixed></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-Twofish.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 "sliding" 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-Twofish.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<string|int, mixed></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-Twofish.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 "sliding" 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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">353</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.353" class="phpdocumentor-element-found-in__source" data-line="353" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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>
|
|
|
|
|
|
|
|
|
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
|
Tags
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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\Crypt_Twofish::setKeyLength()">Crypt_Twofish::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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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 "safe" 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-Twofish.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_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-Twofish.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-Twofish.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_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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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_K">
|
|
$K
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_K" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">310</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.310" class="phpdocumentor-element-found-in__source" data-line="310" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">The Key Schedule Array</p>
|
|
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
<span class="phpdocumentor-signature__visibility">private</span>
|
|
<span class="phpdocumentor-signature__type">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$K</span>
|
|
= <span class="phpdocumentor-signature__default-value">[]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
"
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_kl">
|
|
$kl
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">345</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.345" class="phpdocumentor-element-found-in__source" data-line="345" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">Holds the last used key</p>
|
|
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
<span class="phpdocumentor-signature__visibility">private</span>
|
|
<span class="phpdocumentor-signature__type">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$kl</span>
|
|
</code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
-static "
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_m0">
|
|
$m0
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_m0" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">150</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.150" class="phpdocumentor-element-found-in__source" data-line="150" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">M-Table</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">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$m0</span>
|
|
= <span class="phpdocumentor-signature__default-value">[0xbcbc3275, 0xecec21f3, 0x202043c6, 0xb3b3c9f4, 0xdada03db, 0x2028b7b, 0xe2e22bfb, 0x9e9efac8, 0xc9c9ec4a, 0xd4d409d3, 0x18186be6, 0x1e1e9f6b, 0x98980e45, 0xb2b2387d, 0xa6a6d2e8, 0x2626b74b, 0x3c3c57d6, 0x93938a32, 0x8282eed8, 0x525298fd, 0x7b7bd437, 0xbbbb3771, 0x5b5b97f1, 0x474783e1, 0x24243c30, 0x5151e20f, 0xbabac6f8, 0x4a4af31b, 0xbfbf4887, 0xd0d70fa, 0xb0b0b306, 0x7575de3f, 0xd2d2fd5e, 0x7d7d20ba, 0x666631ae, 0x3a3aa35b, 0x59591c8a, 0x0, 0xcdcd93bc, 0x1a1ae09d, 0xaeae2c6d, 0x7f7fabc1, 0x2b2bc7b1, 0xbebeb90e, 0xe0e0a080, 0x8a8a105d, 0x3b3b52d2, 0x6464bad5, 0xd8d888a0, 0xe7e7a584, 0x5f5fe807, 0x1b1b1114, 0x2c2cc2b5, 0xfcfcb490, 0x3131272c, 0x808065a3, 0x73732ab2, 0xc0c8173, 0x79795f4c, 0x6b6b4154, 0x4b4b0292, 0x53536974, 0x94948f36, 0x83831f51, 0x2a2a3638, 0xc4c49cb0, 0x2222c8bd, 0xd5d5f85a, 0xbdbdc3fc, 0x48487860, 0xffffce62, 0x4c4c0796, 0x4141776c, 0xc7c7e642, 0xebeb24f7, 0x1c1c1410, 0x5d5d637c, 0x36362228, 0x6767c027, 0xe9e9af8c, 0x4444f913, 0x1414ea95, 0xf5f5bb9c, 0xcfcf18c7, 0x3f3f2d24, 0xc0c0e346, 0x7272db3b, 0x54546c70, 0x29294cca, 0xf0f035e3, 0x808fe85, 0xc6c617cb, 0xf3f34f11, 0x8c8ce4d0, 0xa4a45993, 0xcaca96b8, 0x68683ba6, 0xb8b84d83, 0x38382820, 0xe5e52eff, 0xadad569f, 0xb0b8477, 0xc8c81dc3, 0x9999ffcc, 0x5858ed03, 0x19199a6f, 0xe0e0a08, 0x95957ebf, 0x70705040, 0xf7f730e7, 0x6e6ecf2b, 0x1f1f6ee2, 0xb5b53d79, 0x9090f0c, 0x616134aa, 0x57571682, 0x9f9f0b41, 0x9d9d803a, 0x111164ea, 0x2525cdb9, 0xafafdde4, 0x4545089a, 0xdfdf8da4, 0xa3a35c97, 0xeaead57e, 0x353558da, 0xededd07a, 0x4343fc17, 0xf8f8cb66, 0xfbfbb194, 0x3737d3a1, 0xfafa401d, 0xc2c2683d, 0xb4b4ccf0, 0x32325dde, 0x9c9c71b3, 0x5656e70b, 0xe3e3da72, 0x878760a7, 0x15151b1c, 0xf9f93aef, 0x6363bfd1, 0x3434a953, 0x9a9a853e, 0xb1b1428f, 0x7c7cd133, 0x88889b26, 0x3d3da65f, 0xa1a1d7ec, 0xe4e4df76, 0x8181942a, 0x91910149, 0xf0ffb81, 0xeeeeaa88, 0x161661ee, 0xd7d77321, 0x9797f5c4, 0xa5a5a81a, 0xfefe3feb, 0x6d6db5d9, 0x7878aec5, 0xc5c56d39, 0x1d1de599, 0x7676a4cd, 0x3e3edcad, 0xcbcb6731, 0xb6b6478b, 0xefef5b01, 0x12121e18, 0x6060c523, 0x6a6ab0dd, 0x4d4df61f, 0xcecee94e, 0xdede7c2d, 0x55559df9, 0x7e7e5a48, 0x2121b24f, 0x3037af2, 0xa0a02665, 0x5e5e198e, 0x5a5a6678, 0x65654b5c, 0x62624e58, 0xfdfd4519, 0x606f48d, 0x404086e5, 0xf2f2be98, 0x3333ac57, 0x17179067, 0x5058e7f, 0xe8e85e05, 0x4f4f7d64, 0x89896aaf, 0x10109563, 0x74742fb6, 0xa0a75fe, 0x5c5c92f5, 0x9b9b74b7, 0x2d2d333c, 0x3030d6a5, 0x2e2e49ce, 0x494989e9, 0x46467268, 0x77775544, 0xa8a8d8e0, 0x9696044d, 0x2828bd43, 0xa9a92969, 0xd9d97929, 0x8686912e, 0xd1d187ac, 0xf4f44a15, 0x8d8d1559, 0xd6d682a8, 0xb9b9bc0a, 0x42420d9e, 0xf6f6c16e, 0x2f2fb847, 0xdddd06df, 0x23233934, 0xcccc6235, 0xf1f1c46a, 0xc1c112cf, 0x8585ebdc, 0x8f8f9e22, 0x7171a1c9, 0x9090f0c0, 0xaaaa539b, 0x101f189, 0x8b8be1d4, 0x4e4e8ced, 0x8e8e6fab, 0xababa212, 0x6f6f3ea2, 0xe6e6540d, 0xdbdbf252, 0x92927bbb, 0xb7b7b602, 0x6969ca2f, 0x3939d9a9, 0xd3d30cd7, 0xa7a72361, 0xa2a2ad1e, 0xc3c399b4, 0x6c6c4450, 0x7070504, 0x4047ff6, 0x272746c2, 0xacaca716, 0xd0d07625, 0x50501386, 0xdcdcf756, 0x84841a55, 0xe1e15109, 0x7a7a25be, 0x1313ef91]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
-static "
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_m1">
|
|
$m1
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_m1" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">190</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.190" class="phpdocumentor-element-found-in__source" data-line="190" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">M-Table</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">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$m1</span>
|
|
= <span class="phpdocumentor-signature__default-value">[0xa9d93939, 0x67901717, 0xb3719c9c, 0xe8d2a6a6, 0x4050707, 0xfd985252, 0xa3658080, 0x76dfe4e4, 0x9a084545, 0x92024b4b, 0x80a0e0e0, 0x78665a5a, 0xe4ddafaf, 0xddb06a6a, 0xd1bf6363, 0x38362a2a, 0xd54e6e6, 0xc6432020, 0x3562cccc, 0x98bef2f2, 0x181e1212, 0xf724ebeb, 0xecd7a1a1, 0x6c774141, 0x43bd2828, 0x7532bcbc, 0x37d47b7b, 0x269b8888, 0xfa700d0d, 0x13f94444, 0x94b1fbfb, 0x485a7e7e, 0xf27a0303, 0xd0e48c8c, 0x8b47b6b6, 0x303c2424, 0x84a5e7e7, 0x54416b6b, 0xdf06dddd, 0x23c56060, 0x1945fdfd, 0x5ba33a3a, 0x3d68c2c2, 0x59158d8d, 0xf321ecec, 0xae316666, 0xa23e6f6f, 0x82165757, 0x63951010, 0x15befef, 0x834db8b8, 0x2e918686, 0xd9b56d6d, 0x511f8383, 0x9b53aaaa, 0x7c635d5d, 0xa63b6868, 0xeb3ffefe, 0xa5d63030, 0xbe257a7a, 0x16a7acac, 0xc0f0909, 0xe335f0f0, 0x6123a7a7, 0xc0f09090, 0x8cafe9e9, 0x3a809d9d, 0xf5925c5c, 0x73810c0c, 0x2c273131, 0x2576d0d0, 0xbe75656, 0xbb7b9292, 0x4ee9cece, 0x89f10101, 0x6b9f1e1e, 0x53a93434, 0x6ac4f1f1, 0xb499c3c3, 0xf1975b5b, 0xe1834747, 0xe66b1818, 0xbdc82222, 0x450e9898, 0xe26e1f1f, 0xf4c9b3b3, 0xb62f7474, 0x66cbf8f8, 0xccff9999, 0x95ea1414, 0x3ed5858, 0x56f7dcdc, 0xd4e18b8b, 0x1c1b1515, 0x1eada2a2, 0xd70cd3d3, 0xfb2be2e2, 0xc31dc8c8, 0x8e195e5e, 0xb5c22c2c, 0xe9894949, 0xcf12c1c1, 0xbf7e9595, 0xba207d7d, 0xea641111, 0x77840b0b, 0x396dc5c5, 0xaf6a8989, 0x33d17c7c, 0xc9a17171, 0x62ceffff, 0x7137bbbb, 0x81fb0f0f, 0x793db5b5, 0x951e1e1, 0xaddc3e3e, 0x242d3f3f, 0xcda47676, 0xf99d5555, 0xd8ee8282, 0xe5864040, 0xc5ae7878, 0xb9cd2525, 0x4d049696, 0x44557777, 0x80a0e0e, 0x86135050, 0xe730f7f7, 0xa1d33737, 0x1d40fafa, 0xaa346161, 0xed8c4e4e, 0x6b3b0b0, 0x706c5454, 0xb22a7373, 0xd2523b3b, 0x410b9f9f, 0x7b8b0202, 0xa088d8d8, 0x114ff3f3, 0x3167cbcb, 0xc2462727, 0x27c06767, 0x90b4fcfc, 0x20283838, 0xf67f0404, 0x60784848, 0xff2ee5e5, 0x96074c4c, 0x5c4b6565, 0xb1c72b2b, 0xab6f8e8e, 0x9e0d4242, 0x9cbbf5f5, 0x52f2dbdb, 0x1bf34a4a, 0x5fa63d3d, 0x9359a4a4, 0xabcb9b9, 0xef3af9f9, 0x91ef1313, 0x85fe0808, 0x49019191, 0xee611616, 0x2d7cdede, 0x4fb22121, 0x8f42b1b1, 0x3bdb7272, 0x47b82f2f, 0x8748bfbf, 0x6d2caeae, 0x46e3c0c0, 0xd6573c3c, 0x3e859a9a, 0x6929a9a9, 0x647d4f4f, 0x2a948181, 0xce492e2e, 0xcb17c6c6, 0x2fca6969, 0xfcc3bdbd, 0x975ca3a3, 0x55ee8e8, 0x7ad0eded, 0xac87d1d1, 0x7f8e0505, 0xd5ba6464, 0x1aa8a5a5, 0x4bb72626, 0xeb9bebe, 0xa7608787, 0x5af8d5d5, 0x28223636, 0x14111b1b, 0x3fde7575, 0x2979d9d9, 0x88aaeeee, 0x3c332d2d, 0x4c5f7979, 0x2b6b7b7, 0xb896caca, 0xda583535, 0xb09cc4c4, 0x17fc4343, 0x551a8484, 0x1ff64d4d, 0x8a1c5959, 0x7d38b2b2, 0x57ac3333, 0xc718cfcf, 0x8df40606, 0x74695353, 0xb7749b9b, 0xc4f59797, 0x9f56adad, 0x72dae3e3, 0x7ed5eaea, 0x154af4f4, 0x229e8f8f, 0x12a2abab, 0x584e6262, 0x7e85f5f, 0x99e51d1d, 0x34392323, 0x6ec1f6f6, 0x50446c6c, 0xde5d3232, 0x68724646, 0x6526a0a0, 0xbc93cdcd, 0xdb03dada, 0xf8c6baba, 0xc8fa9e9e, 0xa882d6d6, 0x2bcf6e6e, 0x40507070, 0xdceb8585, 0xfe750a0a, 0x328a9393, 0xa48ddfdf, 0xca4c2929, 0x10141c1c, 0x2173d7d7, 0xf0ccb4b4, 0xd309d4d4, 0x5d108a8a, 0xfe25151, 0x0, 0x6f9a1919, 0x9de01a1a, 0x368f9494, 0x42e6c7c7, 0x4aecc9c9, 0x5efdd2d2, 0xc1ab7f7f, 0xe0d8a8a8]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
-static "
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_m2">
|
|
$m2
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_m2" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">230</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.230" class="phpdocumentor-element-found-in__source" data-line="230" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">M-Table</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">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$m2</span>
|
|
= <span class="phpdocumentor-signature__default-value">[0xbc75bc32, 0xecf3ec21, 0x20c62043, 0xb3f4b3c9, 0xdadbda03, 0x27b028b, 0xe2fbe22b, 0x9ec89efa, 0xc94ac9ec, 0xd4d3d409, 0x18e6186b, 0x1e6b1e9f, 0x9845980e, 0xb27db238, 0xa6e8a6d2, 0x264b26b7, 0x3cd63c57, 0x9332938a, 0x82d882ee, 0x52fd5298, 0x7b377bd4, 0xbb71bb37, 0x5bf15b97, 0x47e14783, 0x2430243c, 0x510f51e2, 0xbaf8bac6, 0x4a1b4af3, 0xbf87bf48, 0xdfa0d70, 0xb006b0b3, 0x753f75de, 0xd25ed2fd, 0x7dba7d20, 0x66ae6631, 0x3a5b3aa3, 0x598a591c, 0x0, 0xcdbccd93, 0x1a9d1ae0, 0xae6dae2c, 0x7fc17fab, 0x2bb12bc7, 0xbe0ebeb9, 0xe080e0a0, 0x8a5d8a10, 0x3bd23b52, 0x64d564ba, 0xd8a0d888, 0xe784e7a5, 0x5f075fe8, 0x1b141b11, 0x2cb52cc2, 0xfc90fcb4, 0x312c3127, 0x80a38065, 0x73b2732a, 0xc730c81, 0x794c795f, 0x6b546b41, 0x4b924b02, 0x53745369, 0x9436948f, 0x8351831f, 0x2a382a36, 0xc4b0c49c, 0x22bd22c8, 0xd55ad5f8, 0xbdfcbdc3, 0x48604878, 0xff62ffce, 0x4c964c07, 0x416c4177, 0xc742c7e6, 0xebf7eb24, 0x1c101c14, 0x5d7c5d63, 0x36283622, 0x672767c0, 0xe98ce9af, 0x441344f9, 0x149514ea, 0xf59cf5bb, 0xcfc7cf18, 0x3f243f2d, 0xc046c0e3, 0x723b72db, 0x5470546c, 0x29ca294c, 0xf0e3f035, 0x88508fe, 0xc6cbc617, 0xf311f34f, 0x8cd08ce4, 0xa493a459, 0xcab8ca96, 0x68a6683b, 0xb883b84d, 0x38203828, 0xe5ffe52e, 0xad9fad56, 0xb770b84, 0xc8c3c81d, 0x99cc99ff, 0x580358ed, 0x196f199a, 0xe080e0a, 0x95bf957e, 0x70407050, 0xf7e7f730, 0x6e2b6ecf, 0x1fe21f6e, 0xb579b53d, 0x90c090f, 0x61aa6134, 0x57825716, 0x9f419f0b, 0x9d3a9d80, 0x11ea1164, 0x25b925cd, 0xafe4afdd, 0x459a4508, 0xdfa4df8d, 0xa397a35c, 0xea7eead5, 0x35da3558, 0xed7aedd0, 0x431743fc, 0xf866f8cb, 0xfb94fbb1, 0x37a137d3, 0xfa1dfa40, 0xc23dc268, 0xb4f0b4cc, 0x32de325d, 0x9cb39c71, 0x560b56e7, 0xe372e3da, 0x87a78760, 0x151c151b, 0xf9eff93a, 0x63d163bf, 0x345334a9, 0x9a3e9a85, 0xb18fb142, 0x7c337cd1, 0x8826889b, 0x3d5f3da6, 0xa1eca1d7, 0xe476e4df, 0x812a8194, 0x91499101, 0xf810ffb, 0xee88eeaa, 0x16ee1661, 0xd721d773, 0x97c497f5, 0xa51aa5a8, 0xfeebfe3f, 0x6dd96db5, 0x78c578ae, 0xc539c56d, 0x1d991de5, 0x76cd76a4, 0x3ead3edc, 0xcb31cb67, 0xb68bb647, 0xef01ef5b, 0x1218121e, 0x602360c5, 0x6add6ab0, 0x4d1f4df6, 0xce4ecee9, 0xde2dde7c, 0x55f9559d, 0x7e487e5a, 0x214f21b2, 0x3f2037a, 0xa065a026, 0x5e8e5e19, 0x5a785a66, 0x655c654b, 0x6258624e, 0xfd19fd45, 0x68d06f4, 0x40e54086, 0xf298f2be, 0x335733ac, 0x17671790, 0x57f058e, 0xe805e85e, 0x4f644f7d, 0x89af896a, 0x10631095, 0x74b6742f, 0xafe0a75, 0x5cf55c92, 0x9bb79b74, 0x2d3c2d33, 0x30a530d6, 0x2ece2e49, 0x49e94989, 0x46684672, 0x77447755, 0xa8e0a8d8, 0x964d9604, 0x284328bd, 0xa969a929, 0xd929d979, 0x862e8691, 0xd1acd187, 0xf415f44a, 0x8d598d15, 0xd6a8d682, 0xb90ab9bc, 0x429e420d, 0xf66ef6c1, 0x2f472fb8, 0xdddfdd06, 0x23342339, 0xcc35cc62, 0xf16af1c4, 0xc1cfc112, 0x85dc85eb, 0x8f228f9e, 0x71c971a1, 0x90c090f0, 0xaa9baa53, 0x18901f1, 0x8bd48be1, 0x4eed4e8c, 0x8eab8e6f, 0xab12aba2, 0x6fa26f3e, 0xe60de654, 0xdb52dbf2, 0x92bb927b, 0xb702b7b6, 0x692f69ca, 0x39a939d9, 0xd3d7d30c, 0xa761a723, 0xa21ea2ad, 0xc3b4c399, 0x6c506c44, 0x7040705, 0x4f6047f, 0x27c22746, 0xac16aca7, 0xd025d076, 0x50865013, 0xdc56dcf7, 0x8455841a, 0xe109e151, 0x7abe7a25, 0x139113ef]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
-static "
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_m3">
|
|
$m3
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_m3" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">270</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.270" class="phpdocumentor-element-found-in__source" data-line="270" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">M-Table</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">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$m3</span>
|
|
= <span class="phpdocumentor-signature__default-value">[0xd939a9d9, 0x90176790, 0x719cb371, 0xd2a6e8d2, 0x5070405, 0x9852fd98, 0x6580a365, 0xdfe476df, 0x8459a08, 0x24b9202, 0xa0e080a0, 0x665a7866, 0xddafe4dd, 0xb06addb0, 0xbf63d1bf, 0x362a3836, 0x54e60d54, 0x4320c643, 0x62cc3562, 0xbef298be, 0x1e12181e, 0x24ebf724, 0xd7a1ecd7, 0x77416c77, 0xbd2843bd, 0x32bc7532, 0xd47b37d4, 0x9b88269b, 0x700dfa70, 0xf94413f9, 0xb1fb94b1, 0x5a7e485a, 0x7a03f27a, 0xe48cd0e4, 0x47b68b47, 0x3c24303c, 0xa5e784a5, 0x416b5441, 0x6dddf06, 0xc56023c5, 0x45fd1945, 0xa33a5ba3, 0x68c23d68, 0x158d5915, 0x21ecf321, 0x3166ae31, 0x3e6fa23e, 0x16578216, 0x95106395, 0x5bef015b, 0x4db8834d, 0x91862e91, 0xb56dd9b5, 0x1f83511f, 0x53aa9b53, 0x635d7c63, 0x3b68a63b, 0x3ffeeb3f, 0xd630a5d6, 0x257abe25, 0xa7ac16a7, 0xf090c0f, 0x35f0e335, 0x23a76123, 0xf090c0f0, 0xafe98caf, 0x809d3a80, 0x925cf592, 0x810c7381, 0x27312c27, 0x76d02576, 0xe7560be7, 0x7b92bb7b, 0xe9ce4ee9, 0xf10189f1, 0x9f1e6b9f, 0xa93453a9, 0xc4f16ac4, 0x99c3b499, 0x975bf197, 0x8347e183, 0x6b18e66b, 0xc822bdc8, 0xe98450e, 0x6e1fe26e, 0xc9b3f4c9, 0x2f74b62f, 0xcbf866cb, 0xff99ccff, 0xea1495ea, 0xed5803ed, 0xf7dc56f7, 0xe18bd4e1, 0x1b151c1b, 0xada21ead, 0xcd3d70c, 0x2be2fb2b, 0x1dc8c31d, 0x195e8e19, 0xc22cb5c2, 0x8949e989, 0x12c1cf12, 0x7e95bf7e, 0x207dba20, 0x6411ea64, 0x840b7784, 0x6dc5396d, 0x6a89af6a, 0xd17c33d1, 0xa171c9a1, 0xceff62ce, 0x37bb7137, 0xfb0f81fb, 0x3db5793d, 0x51e10951, 0xdc3eaddc, 0x2d3f242d, 0xa476cda4, 0x9d55f99d, 0xee82d8ee, 0x8640e586, 0xae78c5ae, 0xcd25b9cd, 0x4964d04, 0x55774455, 0xa0e080a, 0x13508613, 0x30f7e730, 0xd337a1d3, 0x40fa1d40, 0x3461aa34, 0x8c4eed8c, 0xb3b006b3, 0x6c54706c, 0x2a73b22a, 0x523bd252, 0xb9f410b, 0x8b027b8b, 0x88d8a088, 0x4ff3114f, 0x67cb3167, 0x4627c246, 0xc06727c0, 0xb4fc90b4, 0x28382028, 0x7f04f67f, 0x78486078, 0x2ee5ff2e, 0x74c9607, 0x4b655c4b, 0xc72bb1c7, 0x6f8eab6f, 0xd429e0d, 0xbbf59cbb, 0xf2db52f2, 0xf34a1bf3, 0xa63d5fa6, 0x59a49359, 0xbcb90abc, 0x3af9ef3a, 0xef1391ef, 0xfe0885fe, 0x1914901, 0x6116ee61, 0x7cde2d7c, 0xb2214fb2, 0x42b18f42, 0xdb723bdb, 0xb82f47b8, 0x48bf8748, 0x2cae6d2c, 0xe3c046e3, 0x573cd657, 0x859a3e85, 0x29a96929, 0x7d4f647d, 0x94812a94, 0x492ece49, 0x17c6cb17, 0xca692fca, 0xc3bdfcc3, 0x5ca3975c, 0x5ee8055e, 0xd0ed7ad0, 0x87d1ac87, 0x8e057f8e, 0xba64d5ba, 0xa8a51aa8, 0xb7264bb7, 0xb9be0eb9, 0x6087a760, 0xf8d55af8, 0x22362822, 0x111b1411, 0xde753fde, 0x79d92979, 0xaaee88aa, 0x332d3c33, 0x5f794c5f, 0xb6b702b6, 0x96cab896, 0x5835da58, 0x9cc4b09c, 0xfc4317fc, 0x1a84551a, 0xf64d1ff6, 0x1c598a1c, 0x38b27d38, 0xac3357ac, 0x18cfc718, 0xf4068df4, 0x69537469, 0x749bb774, 0xf597c4f5, 0x56ad9f56, 0xdae372da, 0xd5ea7ed5, 0x4af4154a, 0x9e8f229e, 0xa2ab12a2, 0x4e62584e, 0xe85f07e8, 0xe51d99e5, 0x39233439, 0xc1f66ec1, 0x446c5044, 0x5d32de5d, 0x72466872, 0x26a06526, 0x93cdbc93, 0x3dadb03, 0xc6baf8c6, 0xfa9ec8fa, 0x82d6a882, 0xcf6e2bcf, 0x50704050, 0xeb85dceb, 0x750afe75, 0x8a93328a, 0x8ddfa48d, 0x4c29ca4c, 0x141c1014, 0x73d72173, 0xccb4f0cc, 0x9d4d309, 0x108a5d10, 0xe2510fe2, 0x0, 0x9a196f9a, 0xe01a9de0, 0x8f94368f, 0xe6c742e6, 0xecc94aec, 0xfdd25efd, 0xab7fc1ab, 0xd8a8e0d8]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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">'phpseclib/salt'</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-Twofish.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-Twofish.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
|
|
-static "
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_q0">
|
|
$q0
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_q0" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">70</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.70" class="phpdocumentor-element-found-in__source" data-line="70" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">Q-Table</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">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$q0</span>
|
|
= <span class="phpdocumentor-signature__default-value">[0xa9, 0x67, 0xb3, 0xe8, 0x4, 0xfd, 0xa3, 0x76, 0x9a, 0x92, 0x80, 0x78, 0xe4, 0xdd, 0xd1, 0x38, 0xd, 0xc6, 0x35, 0x98, 0x18, 0xf7, 0xec, 0x6c, 0x43, 0x75, 0x37, 0x26, 0xfa, 0x13, 0x94, 0x48, 0xf2, 0xd0, 0x8b, 0x30, 0x84, 0x54, 0xdf, 0x23, 0x19, 0x5b, 0x3d, 0x59, 0xf3, 0xae, 0xa2, 0x82, 0x63, 0x1, 0x83, 0x2e, 0xd9, 0x51, 0x9b, 0x7c, 0xa6, 0xeb, 0xa5, 0xbe, 0x16, 0xc, 0xe3, 0x61, 0xc0, 0x8c, 0x3a, 0xf5, 0x73, 0x2c, 0x25, 0xb, 0xbb, 0x4e, 0x89, 0x6b, 0x53, 0x6a, 0xb4, 0xf1, 0xe1, 0xe6, 0xbd, 0x45, 0xe2, 0xf4, 0xb6, 0x66, 0xcc, 0x95, 0x3, 0x56, 0xd4, 0x1c, 0x1e, 0xd7, 0xfb, 0xc3, 0x8e, 0xb5, 0xe9, 0xcf, 0xbf, 0xba, 0xea, 0x77, 0x39, 0xaf, 0x33, 0xc9, 0x62, 0x71, 0x81, 0x79, 0x9, 0xad, 0x24, 0xcd, 0xf9, 0xd8, 0xe5, 0xc5, 0xb9, 0x4d, 0x44, 0x8, 0x86, 0xe7, 0xa1, 0x1d, 0xaa, 0xed, 0x6, 0x70, 0xb2, 0xd2, 0x41, 0x7b, 0xa0, 0x11, 0x31, 0xc2, 0x27, 0x90, 0x20, 0xf6, 0x60, 0xff, 0x96, 0x5c, 0xb1, 0xab, 0x9e, 0x9c, 0x52, 0x1b, 0x5f, 0x93, 0xa, 0xef, 0x91, 0x85, 0x49, 0xee, 0x2d, 0x4f, 0x8f, 0x3b, 0x47, 0x87, 0x6d, 0x46, 0xd6, 0x3e, 0x69, 0x64, 0x2a, 0xce, 0xcb, 0x2f, 0xfc, 0x97, 0x5, 0x7a, 0xac, 0x7f, 0xd5, 0x1a, 0x4b, 0xe, 0xa7, 0x5a, 0x28, 0x14, 0x3f, 0x29, 0x88, 0x3c, 0x4c, 0x2, 0xb8, 0xda, 0xb0, 0x17, 0x55, 0x1f, 0x8a, 0x7d, 0x57, 0xc7, 0x8d, 0x74, 0xb7, 0xc4, 0x9f, 0x72, 0x7e, 0x15, 0x22, 0x12, 0x58, 0x7, 0x99, 0x34, 0x6e, 0x50, 0xde, 0x68, 0x65, 0xbc, 0xdb, 0xf8, 0xc8, 0xa8, 0x2b, 0x40, 0xdc, 0xfe, 0x32, 0xa4, 0xca, 0x10, 0x21, 0xf0, 0xd3, 0x5d, 0xf, 0x0, 0x6f, 0x9d, 0x36, 0x42, 0x4a, 0x5e, 0xc1, 0xe0]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
-static "
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_q1">
|
|
$q1
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_q1" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">110</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.110" class="phpdocumentor-element-found-in__source" data-line="110" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">Q-Table</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">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$q1</span>
|
|
= <span class="phpdocumentor-signature__default-value">[0x75, 0xf3, 0xc6, 0xf4, 0xdb, 0x7b, 0xfb, 0xc8, 0x4a, 0xd3, 0xe6, 0x6b, 0x45, 0x7d, 0xe8, 0x4b, 0xd6, 0x32, 0xd8, 0xfd, 0x37, 0x71, 0xf1, 0xe1, 0x30, 0xf, 0xf8, 0x1b, 0x87, 0xfa, 0x6, 0x3f, 0x5e, 0xba, 0xae, 0x5b, 0x8a, 0x0, 0xbc, 0x9d, 0x6d, 0xc1, 0xb1, 0xe, 0x80, 0x5d, 0xd2, 0xd5, 0xa0, 0x84, 0x7, 0x14, 0xb5, 0x90, 0x2c, 0xa3, 0xb2, 0x73, 0x4c, 0x54, 0x92, 0x74, 0x36, 0x51, 0x38, 0xb0, 0xbd, 0x5a, 0xfc, 0x60, 0x62, 0x96, 0x6c, 0x42, 0xf7, 0x10, 0x7c, 0x28, 0x27, 0x8c, 0x13, 0x95, 0x9c, 0xc7, 0x24, 0x46, 0x3b, 0x70, 0xca, 0xe3, 0x85, 0xcb, 0x11, 0xd0, 0x93, 0xb8, 0xa6, 0x83, 0x20, 0xff, 0x9f, 0x77, 0xc3, 0xcc, 0x3, 0x6f, 0x8, 0xbf, 0x40, 0xe7, 0x2b, 0xe2, 0x79, 0xc, 0xaa, 0x82, 0x41, 0x3a, 0xea, 0xb9, 0xe4, 0x9a, 0xa4, 0x97, 0x7e, 0xda, 0x7a, 0x17, 0x66, 0x94, 0xa1, 0x1d, 0x3d, 0xf0, 0xde, 0xb3, 0xb, 0x72, 0xa7, 0x1c, 0xef, 0xd1, 0x53, 0x3e, 0x8f, 0x33, 0x26, 0x5f, 0xec, 0x76, 0x2a, 0x49, 0x81, 0x88, 0xee, 0x21, 0xc4, 0x1a, 0xeb, 0xd9, 0xc5, 0x39, 0x99, 0xcd, 0xad, 0x31, 0x8b, 0x1, 0x18, 0x23, 0xdd, 0x1f, 0x4e, 0x2d, 0xf9, 0x48, 0x4f, 0xf2, 0x65, 0x8e, 0x78, 0x5c, 0x58, 0x19, 0x8d, 0xe5, 0x98, 0x57, 0x67, 0x7f, 0x5, 0x64, 0xaf, 0x63, 0xb6, 0xfe, 0xf5, 0xb7, 0x3c, 0xa5, 0xce, 0xe9, 0x68, 0x44, 0xe0, 0x4d, 0x43, 0x69, 0x29, 0x2e, 0xac, 0x15, 0x59, 0xa8, 0xa, 0x9e, 0x6e, 0x47, 0xdf, 0x34, 0x35, 0x6a, 0xcf, 0xdc, 0x22, 0xc9, 0xc0, 0x9b, 0x89, 0xd4, 0xed, 0xab, 0x12, 0xa2, 0xd, 0x52, 0xbb, 0x2, 0x2f, 0xa9, 0xd7, 0x61, 0x1e, 0xb4, 0x50, 0x4, 0xf6, 0xc2, 0x16, 0x25, 0x86, 0x56, 0x55, 0x9, 0xbe, 0x91]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
"
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_S0">
|
|
$S0
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_S0" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">317</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.317" class="phpdocumentor-element-found-in__source" data-line="317" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">The Key depended S-Table 0</p>
|
|
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
<span class="phpdocumentor-signature__visibility">private</span>
|
|
<span class="phpdocumentor-signature__type">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$S0</span>
|
|
= <span class="phpdocumentor-signature__default-value">[]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
"
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_S1">
|
|
$S1
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_S1" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">324</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.324" class="phpdocumentor-element-found-in__source" data-line="324" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">The Key depended S-Table 1</p>
|
|
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
<span class="phpdocumentor-signature__visibility">private</span>
|
|
<span class="phpdocumentor-signature__type">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$S1</span>
|
|
= <span class="phpdocumentor-signature__default-value">[]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
"
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_S2">
|
|
$S2
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_S2" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">331</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.331" class="phpdocumentor-element-found-in__source" data-line="331" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">The Key depended S-Table 2</p>
|
|
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
<span class="phpdocumentor-signature__visibility">private</span>
|
|
<span class="phpdocumentor-signature__type">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$S2</span>
|
|
= <span class="phpdocumentor-signature__default-value">[]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
<article
|
|
class="
|
|
phpdocumentor-element
|
|
-property
|
|
-private
|
|
"
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="property_S3">
|
|
$S3
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#property_S3" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">338</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.338" class="phpdocumentor-element-found-in__source" data-line="338" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">The Key depended S-Table 3</p>
|
|
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
<span class="phpdocumentor-signature__visibility">private</span>
|
|
<span class="phpdocumentor-signature__type">array<string|int, mixed></span>
|
|
<span class="phpdocumentor-signature__name">$S3</span>
|
|
= <span class="phpdocumentor-signature__default-value">[]</span></code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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-Twofish.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'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>
|
|
</section>
|
|
|
|
<section class="phpdocumentor-methods">
|
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
|
Methods
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">361</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.361" class="phpdocumentor-element-found-in__source" data-line="361" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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 </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-Twofish.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"><a href="classes/phpseclib3-Exception-BadModeException.html"><abbr title="\phpseclib3\Exception\BadModeException">BadModeException</abbr></a></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-Twofish.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-Common-SymmetricKey.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/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">1526</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.1526" class="phpdocumentor-element-found-in__source" data-line="1526" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.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 </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>
|
|
|
|
<section class="phpdocumentor-description"><p>If strlen($ciphertext) is not a multiple of the block size, null bytes will be added to the end of the string until
|
|
it is.</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">$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-Common-SymmetricKey.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\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 we're inside a block cipher and the ciphertext 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 class="phpdocumentor-description"><p>$plaintext</p>
|
|
</section>
|
|
|
|
</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-Twofish.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-Twofish.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-Twofish.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 "packets" 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-Twofish.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 "packets".</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->]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 "packets" 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-Twofish.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-Common-SymmetricKey.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/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">1146</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.1146" class="phpdocumentor-element-found-in__source" data-line="1146" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.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 </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>
|
|
|
|
<section class="phpdocumentor-description"><p>$plaintext will be padded with additional bytes such that it's length is a multiple of the block size. Other cipher
|
|
implementations may or may not pad in the same manner. Other common approaches to padding and the reasons why it's
|
|
necessary are discussed in the following
|
|
URL:</p>
|
|
<p><a href="http://www.di-mgt.com.au/cryptopad.html">http://www.di-mgt.com.au/cryptopad.html</a></p>
|
|
<p>An alternative to padding is to, separately, send the length of the file. This is what SSH, in fact, does.
|
|
strlen($plaintext) will still need to be a multiple of the block size, however, arbitrary values can be added to make it that
|
|
length.</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>
|
|
</dl>
|
|
|
|
|
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
|
Tags
|
|
<a href="classes/phpseclib3-Crypt-Common-SymmetricKey.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\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 class="phpdocumentor-description"><p>$ciphertext</p>
|
|
</section>
|
|
|
|
</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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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-Twofish.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 </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-Twofish.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 </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-Twofish.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 </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_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-Twofish.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 </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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">417</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.417" class="phpdocumentor-element-found-in__source" data-line="417" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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 </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-Twofish.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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">394</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.394" class="phpdocumentor-element-found-in__source" data-line="394" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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 </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, 192 or 256 bits</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_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-Twofish.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 </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-Twofish.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 </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 </span><span class="phpdocumentor-signature__argument__name">$method</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">'pbkdf2'</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|string </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">'pbkdf2'</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-Twofish.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 </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-Twofish.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 </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-Twofish.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 </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-Twofish.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-Twofish.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-Twofish.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<string|int, mixed> </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->]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' => (string) '', // optional
|
|
'init_encrypt' => (string) '', // optional
|
|
'init_decrypt' => (string) '', // optional
|
|
'encrypt_block' => (string) '', // required
|
|
'decrypt_block' => (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<string|int, mixed></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>
|
|
—
|
|
<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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">651</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.651" class="phpdocumentor-element-found-in__source" data-line="651" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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 </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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">596</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.596" class="phpdocumentor-element-found-in__source" data-line="596" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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 </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_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-Twofish.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 </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
|
|
-static "
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="method_initialize_static_variables">
|
|
initialize_static_variables()
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">373</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.373" class="phpdocumentor-element-found-in__source" data-line="373" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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-Common-SymmetricKey.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/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">2239</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.2239" class="phpdocumentor-element-found-in__source" data-line="2239" 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">protected</span>
|
|
<span class="phpdocumentor-signature__name">isValidEngineHelper</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int </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">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_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"><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
|
|
-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-Twofish.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 </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-Twofish.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 <-> 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-Twofish.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 </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->block_size - (strlen($text) % $this->block_size) bytes are added, each of which is equal to
|
|
chr($this->block_size - (strlen($text) % $this->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-Twofish.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 </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-Twofish.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 </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-Twofish.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()'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-Twofish.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-Common-SymmetricKey.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/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">2455</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.2455" class="phpdocumentor-element-found-in__source" data-line="2455" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.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-Common-SymmetricKey.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\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
|
|
-method
|
|
-protected
|
|
"
|
|
>
|
|
<h4 class="phpdocumentor-element__name" id="method_setupInlineCrypt">
|
|
setupInlineCrypt()
|
|
<a href="classes/phpseclib3-Crypt-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">705</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.705" class="phpdocumentor-element-found-in__source" data-line="705" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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-Twofish.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-Twofish.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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">436</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.436" class="phpdocumentor-element-found-in__source" data-line="436" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.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-Twofish.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"><abbr title="\phpseclib3\Crypt\Common\SymmetricKey::_setupKey()">SymmetricKey::_setupKey()</abbr></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-Twofish.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 </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-Twofish.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 </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-Twofish.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 </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_mdsrem">
|
|
mdsrem()
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#method_mdsrem" 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/Twofish.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-twofish.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php">Twofish.php</abbr></a></abbr>
|
|
:
|
|
<span class="phpdocumentor-element-found-in__line">550</span>
|
|
|
|
<a href="classes/phpseclib3-Crypt-Twofish.html#source-view.550" class="phpdocumentor-element-found-in__source" data-line="550" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php.txt"></a>
|
|
</aside>
|
|
|
|
<p class="phpdocumentor-summary">_mdsrem function using by the twofish cipher algorithm</p>
|
|
|
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
|
<span class="phpdocumentor-signature__visibility">private</span>
|
|
<span class="phpdocumentor-signature__name">mdsrem</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string </span><span class="phpdocumentor-signature__argument__name">$A</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string </span><span class="phpdocumentor-signature__argument__name">$B</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string|int, 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">$A</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">$B</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">array<string|int, mixed></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-Twofish.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 </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 </span><span class="phpdocumentor-signature__argument__reference-operator">&</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<string|int, mixed> </span><span class="phpdocumentor-signature__argument__reference-operator">&</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<string|int, mixed></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-Twofish.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 </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 </span><span class="phpdocumentor-signature__argument__reference-operator">&</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<string|int, mixed> </span><span class="phpdocumentor-signature__argument__reference-operator">&</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<string|int, mixed></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-Twofish.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 </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> </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 </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 </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 </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>
|
|
—
|
|
<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-Twofish.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>
|
|
</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/Twofish.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
|
</div>
|
|
<button data-exit-button class="phpdocumentor-modal__close">×</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-Twofish.html#toc-constants">Constants</a></li>
|
|
<li><a href="classes/phpseclib3-Crypt-Twofish.html#toc-properties">Properties</a></li>
|
|
<li><a href="classes/phpseclib3-Crypt-Twofish.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-Twofish.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-Twofish.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-Twofish.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-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-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-Twofish.html#property_K">$K</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_kl">$kl</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_m0">$m0</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_m1">$m1</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_m2">$m2</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_m3">$m3</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-Twofish.html#property_q0">$q0</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_q1">$q1</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_S0">$S0</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_S1">$S1</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_S2">$S2</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#property_S3">$S3</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#property_skip_key_adjustment">$skip_key_adjustment</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-Twofish.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-Common-SymmetricKey.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-Common-SymmetricKey.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-Common-SymmetricKey.html#method_setIV">setIV()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#method_setKey">setKey()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.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-Twofish.html#method_decryptBlock">decryptBlock()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#method_encryptBlock">encryptBlock()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.html#method_getIV">getIV()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#method_initialize_static_variables">initialize_static_variables()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Common-SymmetricKey.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-Common-SymmetricKey.html#method_setup">setup()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.html#method_setupInlineCrypt">setupInlineCrypt()</a></li>
|
|
<li class=""><a href="classes/phpseclib3-Crypt-Twofish.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-Twofish.html#method_mdsrem">mdsrem()</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>
|
|
</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-Twofish.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>
|