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

3131 lines
165 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MainWP Child Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/base.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/template.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
<script src="js/template.js"></script>
<script src="js/search.js"></script>
<script defer src="js/searchIndex.js"></script>
</head>
<body id="top">
<header class="phpdocumentor-header phpdocumentor-section">
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">MainWP Child Documentation</a></h1>
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
<label class="phpdocumentor-header__menu-icon" for="menu-button">
<i class="fas fa-bars"></i>
</label>
<section data-search-form class="phpdocumentor-search">
<label>
<span class="visually-hidden">Search for</span>
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
</svg>
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
</label>
</section>
<nav class="phpdocumentor-topnav">
<ul class="phpdocumentor-topnav__menu">
</ul>
</nav>
</header>
<main class="phpdocumentor">
<div class="phpdocumentor-section">
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
Menu
</label>
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category -namespaces">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/mainwp.html" class="">MainWP</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/mainwp-child.html" class="">Child</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/paragonie.html" class="">ParagonIE</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/paragonie-constanttime.html" class="">ConstantTime</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/phpseclib3.html" class="">phpseclib3</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="namespaces/phpseclib3-common.html" class="">Common</a>
</li>
<li>
<a href="namespaces/phpseclib3-crypt.html" class="">Crypt</a>
</li>
<li>
<a href="namespaces/phpseclib3-exception.html" class="">Exception</a>
</li>
<li>
<a href="namespaces/phpseclib3-file.html" class="">File</a>
</li>
<li>
<a href="namespaces/phpseclib3-math.html" class="">Math</a>
</li>
<li>
<a href="namespaces/phpseclib3-net.html" class="">Net</a>
</li>
<li>
<a href="namespaces/phpseclib3-system.html" class="">System</a>
</li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category -packages">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/MainWP.html" class="">MainWP</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="packages/MainWP-Child.html" class="">Child</a>
</li>
<li>
<a href="packages/MainWP-ChildCreditsPlugin.html" class="">ChildCreditsPlugin</a>
</li>
<li>
<a href="packages/MainWP-Dashboard.html" class="">Dashboard</a>
</li>
</ul>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/MainWPChild.html" class="">MainWPChild</a>
</h4>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/ParagonIE.html" class="">ParagonIE</a>
</h4>
<ul class="phpdocumentor-list">
<li>
<a href="packages/ParagonIE-ConstantTime.html" class="">ConstantTime</a>
</li>
</ul>
</section>
<section class="phpdocumentor-sidebar__category -reports">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="graphs/classes.html">Class Diagram</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>
<section class="phpdocumentor-sidebar__category -indices">
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
</aside>
<div class="phpdocumentor-column -nine phpdocumentor-content">
<section>
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="namespaces/phpseclib3.html">phpseclib3</a></li>
<li class="phpdocumentor-breadcrumb"><a href="namespaces/phpseclib3-crypt.html">Crypt</a></li>
<li class="phpdocumentor-breadcrumb"><a href="namespaces/phpseclib3-crypt-dh.html">DH</a></li>
</ul>
<article class="phpdocumentor-element -class">
<h2 class="phpdocumentor-content__title">
PrivateKey
<span class="phpdocumentor-element__extends">
extends <a href="classes/phpseclib3-Crypt-DH.html"><abbr title="\phpseclib3\Crypt\DH">DH</abbr></a>
</span>
<div class="phpdocumentor-element__package">
in package
<ul class="phpdocumentor-breadcrumbs">
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP.html">MainWP</a></li>
<li class="phpdocumentor-breadcrumb"><a href="packages/MainWP-Child.html">Child</a></li>
</ul>
</div>
<span class="phpdocumentor-element__extends">
uses
<a href="classes/phpseclib3-Crypt-Common-Traits-PasswordProtected.html"><abbr title="\phpseclib3\Crypt\Common\Traits\PasswordProtected">PasswordProtected</abbr></a> </span>
</h2>
<div class="phpdocumentor-label-line">
<div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
</div>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh-privatekey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php">PrivateKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">22</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.22" class="phpdocumentor-element-found-in__source" data-line="22" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">DH Private Key</p>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">author</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<section class="phpdocumentor-description"><p>Jim Wigginton <a href="mailto:terrafrost@php.net">terrafrost@php.net</a></p>
</section>
</dd>
</dl>
<h3 id="toc">
Table of Contents
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
</h3>
<h4 id="toc-constants">
Constants
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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-DH.html#constant_ALGORITHM">ALGORITHM</a>
<span>
&nbsp;= &#039;DH&#039; </span>
</dt>
<dd>Algorithm Name</dd>
</dl>
<h4 id="toc-properties">
Properties
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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-DH.html#property_base">$base</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a> </span>
</dt>
<dd>DH Base</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_engines">$engines</a>
<span>
&nbsp;: array&lt;string|int, bool&gt; </span>
</dt>
<dd>Available Engines</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_format">$format</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Format of the loaded key</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_hash">$hash</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Hash.html"><abbr title="\phpseclib3\Crypt\Hash">Hash</abbr></a> </span>
</dt>
<dd>Hash function</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_one">$one</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a> </span>
</dt>
<dd>Precomputed One</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-DH.html#property_prime">$prime</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a> </span>
</dt>
<dd>DH prime</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-DH-PrivateKey.html#property_privateKey">$privateKey</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a> </span>
</dt>
<dd>Private Key</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-DH-PrivateKey.html#property_publicKey">$publicKey</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a> </span>
</dt>
<dd>Public Key</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_zero">$zero</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a> </span>
</dt>
<dd>Precomputed Zero</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_comment">$comment</a>
<span>
&nbsp;: null|string </span>
</dt>
<dd>Key Comment</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_hmac">$hmac</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Hash.html"><abbr title="\phpseclib3\Crypt\Hash">Hash</abbr></a> </span>
</dt>
<dd>HMAC function</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_invisiblePlugins">$invisiblePlugins</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Invisible plugins</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-Traits-PasswordProtected.html#property_password">$password</a>
<span>
&nbsp;: string|bool </span>
</dt>
<dd>Password</dd>
<dt class="phpdocumentor-table-of-contents__entry -property -private">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_plugins">$plugins</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Supported plugins (lower case)</dd>
</dl>
<h4 id="toc-methods">
Methods
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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-Common-AsymmetricKey.html#method___toString">__toString()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>__toString() magic method</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_addFileFormat">addFileFormat()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>Add a fileformat plugin</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_computeSecret">computeSecret()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Compute Shared Secret</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_createKey">createKey()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-DH-PrivateKey.html"><abbr title="\phpseclib3\Crypt\DH\PrivateKey">PrivateKey</abbr></a> </span>
</dt>
<dd>Create public / private key pair.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_createParameters">createParameters()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-DH-Parameters.html"><abbr title="\phpseclib3\Crypt\DH\Parameters">Parameters</abbr></a> </span>
</dt>
<dd>Create DH parameters</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getComment">getComment()</a>
<span>
&nbsp;: null|string </span>
</dt>
<dd>Returns the key&#039;s comment</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_getHash">getHash()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Returns the hash algorithm currently being used</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getLoadedFormat">getLoadedFormat()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Returns the format of the loaded key.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_getParameters">getParameters()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Returns the parameters</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH-PrivateKey.html#method_getPublicKey">getPublicKey()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-DH-PublicKey.html"><abbr title="\phpseclib3\Crypt\DH\PublicKey">PublicKey</abbr></a> </span>
</dt>
<dd>Returns the public key</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getSupportedKeyFormats">getSupportedKeyFormats()</a>
<span>
&nbsp;: array&lt;string|int, mixed&gt; </span>
</dt>
<dd>Returns a list of supported formats.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_load">load()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a> </span>
</dt>
<dd>Load the key</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadFormat">loadFormat()</a>
<span>
&nbsp;: static </span>
</dt>
<dd>Load the key, assuming a specific format</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadParameters">loadParameters()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a> </span>
</dt>
<dd>Loads parameters</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadParametersFormat">loadParametersFormat()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a> </span>
</dt>
<dd>Loads parameters</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPrivateKey">loadPrivateKey()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Common-PrivateKey.html"><abbr title="\phpseclib3\Crypt\Common\PrivateKey">PrivateKey</abbr></a> </span>
</dt>
<dd>Loads a private key</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPrivateKeyFormat">loadPrivateKeyFormat()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Common-PrivateKey.html"><abbr title="\phpseclib3\Crypt\Common\PrivateKey">PrivateKey</abbr></a> </span>
</dt>
<dd>Loads a private key</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPublicKey">loadPublicKey()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Common-PublicKey.html"><abbr title="\phpseclib3\Crypt\Common\PublicKey">PublicKey</abbr></a> </span>
</dt>
<dd>Loads a public key</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPublicKeyFormat">loadPublicKeyFormat()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Crypt-Common-PublicKey.html"><abbr title="\phpseclib3\Crypt\Common\PublicKey">PublicKey</abbr></a> </span>
</dt>
<dd>Loads a public key</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH-PrivateKey.html#method_toString">toString()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Returns the private key</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_useBestEngine">useBestEngine()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Tests engine validity</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_useInternalEngine">useInternalEngine()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Flag to use internal engine only (useful for unit testing)</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_withHash">withHash()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Determines which hashing function should be used</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a class="" href="classes/phpseclib3-Crypt-Common-Traits-PasswordProtected.html#method_withPassword">withPassword()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Sets the password</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method___construct">__construct()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>The constructor</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_bits2int">bits2int()</a>
<span>
&nbsp;: <a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a> </span>
</dt>
<dd>Bit String to Integer</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_computek">computek()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Compute the pseudorandom k for signature generation,
using the process specified for deterministic DSA.</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_initialize_static_variables">initialize_static_variables()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Initialize static variables</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-DH.html#method_onLoad">onLoad()</a>
<span>
&nbsp;: bool </span>
</dt>
<dd>OnLoad Handler</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -protected">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_validatePlugin">validatePlugin()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Validate Plugin</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_bits2octets">bits2octets()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Bit String to Octet String</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_int2octets">int2octets()</a>
<span>
&nbsp;: string </span>
</dt>
<dd>Integer to Octet String</dd>
<dt class="phpdocumentor-table-of-contents__entry -method -private">
<a class="" href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPlugins">loadPlugins()</a>
<span>
&nbsp;: mixed </span>
</dt>
<dd>Load Plugins</dd>
</dl>
<section class="phpdocumentor-constants">
<h3 class="phpdocumentor-elements__header" id="constants">
Constants
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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_ALGORITHM">
ALGORITHM
<a href="classes/phpseclib3-Crypt-DH.html#constant_ALGORITHM" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">47</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Algorithm Name</p>
<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">string</span>
<span class="phpdocumentor-signature__name">ALGORITHM</span>
= <span class="phpdocumentor-signature__default-value">&#039;DH&#039;</span>
</code>
</article>
</section>
<section class="phpdocumentor-properties">
<h3 class="phpdocumentor-elements__header" id="properties">
Properties
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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_base">
$base
<a href="classes/phpseclib3-Crypt-DH.html#property_base" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">63</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">DH Base</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></span>
<span class="phpdocumentor-signature__name">$base</span>
</code>
<section class="phpdocumentor-description"><p>Prime divisor of p-1</p>
</section>
</article>
<article
class="
phpdocumentor-element
-property
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="property_engines">
$engines
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_engines" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">86</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.86" class="phpdocumentor-element-found-in__source" data-line="86" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Available Engines</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">array&lt;string|int, bool&gt;</span>
<span class="phpdocumentor-signature__name">$engines</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_format">
$format
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_format" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">49</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.49" class="phpdocumentor-element-found-in__source" data-line="49" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Format of the loaded 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">$format</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_hash">
$hash
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_hash" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">56</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.56" class="phpdocumentor-element-found-in__source" data-line="56" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Hash function</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Crypt-Hash.html"><abbr title="\phpseclib3\Crypt\Hash">Hash</abbr></a></span>
<span class="phpdocumentor-signature__name">$hash</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="property_one">
$one
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_one" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">42</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.42" class="phpdocumentor-element-found-in__source" data-line="42" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Precomputed One</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"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></span>
<span class="phpdocumentor-signature__name">$one</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_prime">
$prime
<a href="classes/phpseclib3-Crypt-DH.html#property_prime" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">54</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.54" class="phpdocumentor-element-found-in__source" data-line="54" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">DH prime</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></span>
<span class="phpdocumentor-signature__name">$prime</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_privateKey">
$privateKey
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#property_privateKey" 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/DH/PrivateKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh-privatekey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php">PrivateKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">31</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.31" class="phpdocumentor-element-found-in__source" data-line="31" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Private Key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></span>
<span class="phpdocumentor-signature__name">$privateKey</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
"
>
<h4 class="phpdocumentor-element__name" id="property_publicKey">
$publicKey
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#property_publicKey" 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/DH/PrivateKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh-privatekey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php">PrivateKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">38</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.38" class="phpdocumentor-element-found-in__source" data-line="38" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Public Key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></span>
<span class="phpdocumentor-signature__name">$publicKey</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="property_zero">
$zero
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_zero" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">35</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.35" class="phpdocumentor-element-found-in__source" data-line="35" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Precomputed Zero</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"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></span>
<span class="phpdocumentor-signature__name">$zero</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_comment">
$comment
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_comment" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">93</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.93" class="phpdocumentor-element-found-in__source" data-line="93" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Key Comment</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">null|string</span>
<span class="phpdocumentor-signature__name">$comment</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_hmac">
$hmac
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_hmac" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">63</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">HMAC function</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type"><a href="classes/phpseclib3-Crypt-Hash.html"><abbr title="\phpseclib3\Crypt\Hash">Hash</abbr></a></span>
<span class="phpdocumentor-signature__name">$hmac</span>
</code>
</article>
<article
class="
phpdocumentor-element
-property
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="property_invisiblePlugins">
$invisiblePlugins
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_invisiblePlugins" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">79</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.79" class="phpdocumentor-element-found-in__source" data-line="79" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Invisible plugins</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&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$invisiblePlugins</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_invisiblePlugins#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
-private
"
>
<h4 class="phpdocumentor-element__name" id="property_password">
$password
<a href="classes/phpseclib3-Crypt-Common-Traits-PasswordProtected.html#property_password" 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/Traits/PasswordProtected.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-traits-passwordprotected.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Traits/PasswordProtected.php">PasswordProtected.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">28</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.28" class="phpdocumentor-element-found-in__source" data-line="28" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Traits/PasswordProtected.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Password</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__type">string|bool</span>
<span class="phpdocumentor-signature__name">$password</span>
= <span class="phpdocumentor-signature__default-value">false</span></code>
</article>
<article
class="
phpdocumentor-element
-property
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="property_plugins">
$plugins
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_plugins" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">71</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.71" class="phpdocumentor-element-found-in__source" data-line="71" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Supported plugins (lower case)</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&lt;string|int, mixed&gt;</span>
<span class="phpdocumentor-signature__name">$plugins</span>
= <span class="phpdocumentor-signature__default-value">[]</span></code>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_plugins#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>
</section>
<section class="phpdocumentor-methods">
<h3 class="phpdocumentor-elements__header" id="methods">
Methods
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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___toString">
__toString()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method___toString" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">457</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.457" class="phpdocumentor-element-found-in__source" data-line="457" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">__toString() magic method</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">__toString</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
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_addFileFormat">
addFileFormat()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_addFileFormat" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">376</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.376" class="phpdocumentor-element-found-in__source" data-line="376" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Add a fileformat plugin</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">addFileFormat</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fullname</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>The plugin needs to either already be loaded or be auto-loadable.
Loading a plugin whose shortname overwrite an existing shortname will overwrite the old plugin.</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">$fullname</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-AsymmetricKey.html#method_addFileFormat#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::load()">self::load()</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
-static "
>
<h4 class="phpdocumentor-element__name" id="method_computeSecret">
computeSecret()
<a href="classes/phpseclib3-Crypt-DH.html#method_computeSecret" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">278</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Compute Shared Secret</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">computeSecret</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html"><abbr title="\phpseclib3\Crypt\DH\PrivateKey">PrivateKey</abbr></a>|<a href="classes/phpseclib3-Crypt-EC.html"><abbr title="\phpseclib3\Crypt\EC">EC</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$private</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-DH-PublicKey.html"><abbr title="\phpseclib3\Crypt\DH\PublicKey">PublicKey</abbr></a>|<a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a>|string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$public</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">$private</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html"><abbr title="\phpseclib3\Crypt\DH\PrivateKey">PrivateKey</abbr></a>|<a href="classes/phpseclib3-Crypt-EC.html"><abbr title="\phpseclib3\Crypt\EC">EC</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$public</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-DH-PublicKey.html"><abbr title="\phpseclib3\Crypt\DH\PublicKey">PublicKey</abbr></a>|<a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a>|string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_createKey">
createKey()
<a href="classes/phpseclib3-Crypt-DH.html#method_createKey" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">248</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.248" class="phpdocumentor-element-found-in__source" data-line="248" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Create public / private key pair.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">createKey</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-DH-Parameters.html"><abbr title="\phpseclib3\Crypt\DH\Parameters">Parameters</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$length</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">0</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html"><abbr title="\phpseclib3\Crypt\DH\PrivateKey">PrivateKey</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>The rationale for the second parameter is described in http://tools.ietf.org/html/rfc4419#section-6.2 :</p>
<p>&quot;To increase the speed of the key exchange, both client and server may
reduce the size of their private exponents. It should be at least
twice as long as the key material that is generated from the shared
secret. For more details, see the paper by van Oorschot and Wiener
[VAN-OORSCHOT].&quot;</p>
<p>$length is in 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">$params</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Crypt-DH-Parameters.html"><abbr title="\phpseclib3\Crypt\DH\Parameters">Parameters</abbr></a></span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<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">0</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html"><abbr title="\phpseclib3\Crypt\DH\PrivateKey">PrivateKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_createParameters">
createParameters()
<a href="classes/phpseclib3-Crypt-DH.html#method_createParameters" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">82</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Create DH parameters</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">createParameters</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__variadic-operator">...</span><span class="phpdocumentor-signature__argument__name">$args</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-DH-Parameters.html"><abbr title="\phpseclib3\Crypt\DH\Parameters">Parameters</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>This method is a bit polymorphic. It can take any of the following:</p>
<ul>
<li>two BigInteger's (prime and base)</li>
<li>an integer representing the size of the prime in bits (the base is assumed to be 2)</li>
<li>a string (eg. diffie-hellman-group14-sha1)</li>
</ul>
</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">$args</span>
: <span class="phpdocumentor-signature__argument__return-type">mixed</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"><a href="classes/phpseclib3-Crypt-DH-Parameters.html"><abbr title="\phpseclib3\Crypt\DH\Parameters">Parameters</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getComment">
getComment()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getComment" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">416</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.416" class="phpdocumentor-element-found-in__source" data-line="416" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the key&#039;s comment</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getComment</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">null|string</span></code>
<div class="phpdocumentor-label-line">
</div>
<section class="phpdocumentor-description"><p>Not all key formats support comments. If you want to set a comment use toString()</p>
</section>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">null|string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getHash">
getHash()
<a href="classes/phpseclib3-Crypt-DH.html#method_getHash" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">384</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.384" class="phpdocumentor-element-found-in__source" data-line="384" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the hash algorithm currently being used</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getHash</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
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getLoadedFormat">
getLoadedFormat()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getLoadedFormat" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">399</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.399" class="phpdocumentor-element-found-in__source" data-line="399" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the format of the loaded key.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getLoadedFormat</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>If the key that was loaded wasn't in a valid or if the key was auto-generated
with RSA::createKey() then this will throw an exception.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getLoadedFormat#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::load()">self::load()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getParameters">
getParameters()
<a href="classes/phpseclib3-Crypt-DH.html#method_getParameters" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">398</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.398" class="phpdocumentor-element-found-in__source" data-line="398" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the parameters</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getParameters</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>A public / private key is only returned if the currently loaded &quot;key&quot; contains an x or y
value.</p>
</section>
<h5 class="phpdocumentor-tag-list__heading" id="tags">
Tags
<a href="classes/phpseclib3-Crypt-DH.html#method_getParameters#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
<dt class="phpdocumentor-tag-list__entry">
<span class="phpdocumentor-tag__name">see</span>
</dt>
<dd class="phpdocumentor-tag-list__definition">
<span class="phpdocumentor-tag-link"><abbr title="\phpseclib3\Crypt\self::getPublicKey()">self::getPublicKey()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_getPublicKey">
getPublicKey()
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#method_getPublicKey" 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/DH/PrivateKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh-privatekey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php">PrivateKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">45</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.45" class="phpdocumentor-element-found-in__source" data-line="45" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the public key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">getPublicKey</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-DH-PublicKey.html"><abbr title="\phpseclib3\Crypt\DH\PublicKey">PublicKey</abbr></a></span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-DH-PublicKey.html"><abbr title="\phpseclib3\Crypt\DH\PublicKey">PublicKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_getSupportedKeyFormats">
getSupportedKeyFormats()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getSupportedKeyFormats" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">359</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.359" class="phpdocumentor-element-found-in__source" data-line="359" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns a list of supported formats.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getSupportedKeyFormats</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
<div class="phpdocumentor-label-line">
</div>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_load">
load()
<a href="classes/phpseclib3-Crypt-DH.html#method_load" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">332</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.332" class="phpdocumentor-element-found-in__source" data-line="332" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Load the key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">load</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$password</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a></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">$key</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">$password</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadFormat">
loadFormat()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadFormat" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">228</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.228" class="phpdocumentor-element-found-in__source" data-line="228" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Load the key, assuming a specific format</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">loadFormat</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$password</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</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">$type</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">$key</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">$password</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">static</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadParameters">
loadParameters()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadParameters" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">211</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.211" class="phpdocumentor-element-found-in__source" data-line="211" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Loads parameters</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">loadParameters</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a></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">$key</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;</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"><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadParametersFormat">
loadParametersFormat()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadParametersFormat" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">293</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.293" class="phpdocumentor-element-found-in__source" data-line="293" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Loads parameters</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">loadParametersFormat</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a></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">$type</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">$key</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;</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"><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html"><abbr title="\phpseclib3\Crypt\Common\AsymmetricKey">AsymmetricKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadPrivateKey">
loadPrivateKey()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPrivateKey" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">181</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Loads a private key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">loadPrivateKey</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$password</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-PrivateKey.html"><abbr title="\phpseclib3\Crypt\Common\PrivateKey">PrivateKey</abbr></a></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">$key</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$password</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-PrivateKey.html"><abbr title="\phpseclib3\Crypt\Common\PrivateKey">PrivateKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadPrivateKeyFormat">
loadPrivateKeyFormat()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPrivateKeyFormat" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">261</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.261" class="phpdocumentor-element-found-in__source" data-line="261" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Loads a private key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">loadPrivateKeyFormat</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$password</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-PrivateKey.html"><abbr title="\phpseclib3\Crypt\Common\PrivateKey">PrivateKey</abbr></a></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">$type</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">$key</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">$password</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
= <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-PrivateKey.html"><abbr title="\phpseclib3\Crypt\Common\PrivateKey">PrivateKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadPublicKey">
loadPublicKey()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPublicKey" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">196</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.196" class="phpdocumentor-element-found-in__source" data-line="196" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Loads a public key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">loadPublicKey</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-PublicKey.html"><abbr title="\phpseclib3\Crypt\Common\PublicKey">PublicKey</abbr></a></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">$key</span>
: <span class="phpdocumentor-signature__argument__return-type">string|array&lt;string|int, mixed&gt;</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"><a href="classes/phpseclib3-Crypt-Common-PublicKey.html"><abbr title="\phpseclib3\Crypt\Common\PublicKey">PublicKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadPublicKeyFormat">
loadPublicKeyFormat()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPublicKeyFormat" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">277</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.277" class="phpdocumentor-element-found-in__source" data-line="277" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Loads a public key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">loadPublicKeyFormat</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Crypt-Common-PublicKey.html"><abbr title="\phpseclib3\Crypt\Common\PublicKey">PublicKey</abbr></a></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">$type</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">$key</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"><a href="classes/phpseclib3-Crypt-Common-PublicKey.html"><abbr title="\phpseclib3\Crypt\Common\PublicKey">PublicKey</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_toString">
toString()
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#method_toString" 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/DH/PrivateKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh-privatekey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php">PrivateKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">65</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.65" class="phpdocumentor-element-found-in__source" data-line="65" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/PrivateKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Returns the private key</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">toString</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">[]</span><span> ]</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">$type</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">$options</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
= <span class="phpdocumentor-signature__argument__default-value">[]</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</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
-static "
>
<h4 class="phpdocumentor-element__name" id="method_useBestEngine">
useBestEngine()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_useBestEngine" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">425</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.425" class="phpdocumentor-element-found-in__source" data-line="425" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Tests engine validity</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">useBestEngine</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
-public
-static "
>
<h4 class="phpdocumentor-element__name" id="method_useInternalEngine">
useInternalEngine()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_useInternalEngine" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">443</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.443" class="phpdocumentor-element-found-in__source" data-line="443" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Flag to use internal engine only (useful for unit testing)</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">useInternalEngine</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
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_withHash">
withHash()
<a href="classes/phpseclib3-Crypt-DH.html#method_withHash" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">375</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Determines which hashing function should be used</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__name">withHash</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$hash</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">$hash</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-public
"
>
<h4 class="phpdocumentor-element__name" id="method_withPassword">
withPassword()
<a href="classes/phpseclib3-Crypt-Common-Traits-PasswordProtected.html#method_withPassword" 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/Traits/PasswordProtected.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-traits-passwordprotected.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Traits/PasswordProtected.php">PasswordProtected.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">40</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.40" class="phpdocumentor-element-found-in__source" data-line="40" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Traits/PasswordProtected.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">withPassword</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string|bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$password</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</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>Private keys can be encrypted with a password. To unset the password, pass in the empty string or false.
Or rather, pass in $password such that empty($password) &amp;&amp; !is_string($password) is true.</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">$password</span>
: <span class="phpdocumentor-signature__argument__return-type">string|bool</span>
= <span class="phpdocumentor-signature__argument__default-value">false</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-Traits-PasswordProtected.html#method_withPassword#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\Traits\self::createKey()">self::createKey()</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\Traits\self::load()">self::load()</abbr></span>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method___construct">
__construct()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.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/Common/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">104</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">The constructor</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">__construct</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_bits2int">
bits2int()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_bits2int" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">556</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.556" class="phpdocumentor-element-found-in__source" data-line="556" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Bit String to Integer</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">bits2int</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$in</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></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"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
"
>
<h4 class="phpdocumentor-element__name" id="method_computek">
computek()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_computek" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">493</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.493" class="phpdocumentor-element-found-in__source" data-line="493" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Compute the pseudorandom k for signature generation,
using the process specified for deterministic DSA.</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">protected</span>
<span class="phpdocumentor-signature__name">computek</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$h1</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">$h1</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
-static "
>
<h4 class="phpdocumentor-element__name" id="method_initialize_static_variables">
initialize_static_variables()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_initialize_static_variables" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">115</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.115" class="phpdocumentor-element-found-in__source" data-line="115" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.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
-static "
>
<h4 class="phpdocumentor-element__name" id="method_onLoad">
onLoad()
<a href="classes/phpseclib3-Crypt-DH.html#method_onLoad" 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/DH.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-dh.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php">DH.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">347</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.347" class="phpdocumentor-element-found-in__source" data-line="347" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">OnLoad Handler</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">onLoad</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$components</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">$components</span>
: <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</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">bool</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-protected
-static "
>
<h4 class="phpdocumentor-element__name" id="method_validatePlugin">
validatePlugin()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_validatePlugin" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">310</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.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/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Validate Plugin</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">validatePlugin</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$format</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$method</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><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-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$format</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">$type</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">null</span> </dt>
<dd class="phpdocumentor-argument-list__definition">
<section class="phpdocumentor-description"><p>optional</p>
</section>
</dd>
</dl>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_bits2octets">
bits2octets()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_bits2octets" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">573</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.573" class="phpdocumentor-element-found-in__source" data-line="573" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Bit String to Octet String</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">bits2octets</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$in</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
<div class="phpdocumentor-label-line">
</div>
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
<span class="phpdocumentor-signature__argument__name">$in</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
</section>
</article>
<article
class="phpdocumentor-element
-method
-private
"
>
<h4 class="phpdocumentor-element__name" id="method_int2octets">
int2octets()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_int2octets" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">537</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.537" class="phpdocumentor-element-found-in__source" data-line="537" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Integer to Octet String</p>
<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">private</span>
<span class="phpdocumentor-signature__name">int2octets</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$v</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">$v</span>
: <span class="phpdocumentor-signature__argument__return-type"><a href="classes/phpseclib3-Math-BigInteger.html"><abbr title="\phpseclib3\Math\BigInteger">BigInteger</abbr></a></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
-private
-static "
>
<h4 class="phpdocumentor-element__name" id="method_loadPlugins">
loadPlugins()
<a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPlugins" 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/AsymmetricKey.php"><a href="files/libs-phpseclib-vendor-phpseclib-phpseclib-phpseclib-crypt-common-asymmetrickey.html"><abbr title="libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php">AsymmetricKey.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">329</span>
<a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#source-view.329" class="phpdocumentor-element-found-in__source" data-line="329" data-modal="source-view" data-src="files/libs/phpseclib/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php.txt"></a>
</aside>
<p class="phpdocumentor-summary">Load Plugins</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">loadPlugins</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$format</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">$format</span>
: <span class="phpdocumentor-signature__argument__return-type">string</span>
</dt>
<dd class="phpdocumentor-argument-list__definition">
</dd>
</dl>
</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/DH/PrivateKey.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
</div>
<button data-exit-button class="phpdocumentor-modal__close">&times;</button>
</div>
</div>
<script type="text/javascript">
(function () {
function loadExternalCodeSnippet(el, url, line) {
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
const language = 'php';
const code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
pre.setAttribute('data-line', line)
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) {
return;
}
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
return;
}
if (xhr.status === 404) {
code.textContent = '✖ Error: File could not be found';
return;
}
if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
return;
}
code.textContent = '✖ Error: An unknown error occurred';
};
xhr.send(null);
});
}
const modalButtons = document.querySelectorAll("[data-modal]");
const openedAsLocalFile = window.location.protocol === 'file:';
if (modalButtons.length > 0 && openedAsLocalFile) {
console.warn(
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
'browsers block XHR requests when a page is opened this way'
);
}
modalButtons.forEach(function (trigger) {
if (openedAsLocalFile) {
trigger.setAttribute("hidden", "hidden");
}
trigger.addEventListener("click", function (event) {
event.preventDefault();
const modal = document.getElementById(trigger.dataset.modal);
if (!modal) {
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
return;
}
modal.classList.add("phpdocumentor-modal__open");
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
const exits = modal.querySelectorAll("[data-exit-button]");
exits.forEach(function (exit) {
exit.addEventListener("click", function (event) {
event.preventDefault();
modal.classList.remove("phpdocumentor-modal__open");
});
});
});
});
})();
</script>
</article>
</section>
<section class="phpdocumentor-on-this-page__sidebar">
<section class="phpdocumentor-on-this-page__content">
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
<ul class="phpdocumentor-list -clean">
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#toc-constants">Constants</a></li>
<li><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#toc-properties">Properties</a></li>
<li><a href="classes/phpseclib3-Crypt-DH-PrivateKey.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-DH.html#constant_ALGORITHM">ALGORITHM</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-DH.html#property_base">$base</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_engines">$engines</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_format">$format</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_hash">$hash</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_one">$one</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#property_prime">$prime</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#property_privateKey">$privateKey</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#property_publicKey">$publicKey</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_zero">$zero</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_comment">$comment</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_hmac">$hmac</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_invisiblePlugins">$invisiblePlugins</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-Traits-PasswordProtected.html#property_password">$password</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#property_plugins">$plugins</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-Common-AsymmetricKey.html#method___toString">__toString()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_addFileFormat">addFileFormat()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_computeSecret">computeSecret()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_createKey">createKey()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_createParameters">createParameters()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getComment">getComment()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_getHash">getHash()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getLoadedFormat">getLoadedFormat()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_getParameters">getParameters()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#method_getPublicKey">getPublicKey()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_getSupportedKeyFormats">getSupportedKeyFormats()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_load">load()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadFormat">loadFormat()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadParameters">loadParameters()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadParametersFormat">loadParametersFormat()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPrivateKey">loadPrivateKey()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPrivateKeyFormat">loadPrivateKeyFormat()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPublicKey">loadPublicKey()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPublicKeyFormat">loadPublicKeyFormat()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH-PrivateKey.html#method_toString">toString()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_useBestEngine">useBestEngine()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_useInternalEngine">useInternalEngine()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_withHash">withHash()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-Traits-PasswordProtected.html#method_withPassword">withPassword()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method___construct">__construct()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_bits2int">bits2int()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_computek">computek()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_initialize_static_variables">initialize_static_variables()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-DH.html#method_onLoad">onLoad()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_validatePlugin">validatePlugin()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_bits2octets">bits2octets()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_int2octets">int2octets()</a></li>
<li class=""><a href="classes/phpseclib3-Crypt-Common-AsymmetricKey.html#method_loadPlugins">loadPlugins()</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-DH-PrivateKey.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>