Home
last modified time | relevance | path

Searched refs:privatekey (Results 1 – 3 of 3) sorted by relevance

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DEC.php209 $privatekey = new PrivateKey();
214 $privatekey->dA = $dA = $arr['dA'];
215 $privatekey->secret = $arr['secret'];
217 $privatekey->dA = $dA = $curve->createRandomMultiplier();
219 $privatekey->curve = $curve;
220 $privatekey->curveName = $curveName;
221 $privatekey->QA = $curve->multiplyPoint($curve->getBasePoint(), $dA);
229 if ($privatekey->curve instanceof TwistedEdwardsCurve) {
230 return $privatekey->withHash($curve::HASH);
233 return $privatekey;
[all …]
H A DRSA.php407 $privatekey = new PrivateKey();
408 $privatekey->modulus = $n;
409 $privatekey->k = $bits >> 3;
410 $privatekey->publicExponent = $e;
411 $privatekey->exponent = $d;
412 $privatekey->primes = $primes;
413 $privatekey->exponents = $exponents;
414 $privatekey->coefficients = $coefficients;
425 return $privatekey;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSSH2.php2684 * @param PrivateKey $privatekey
2688 private function privatekey_login($username, PrivateKey $privatekey) argument
2690 $publickey = $privatekey->getPublicKey();
2693 $privatekey = $privatekey->withPadding(RSA::SIGNATURE_PKCS1);
2714 $privatekey = $privatekey->withSignatureFormat('SSH2');
2715 $curveName = $privatekey->getCurve();
2740 $privatekey = $privatekey->withSignatureFormat('SSH2');
2773 return $this->privatekey_login($username, $privatekey);
2789 $privatekey = $privatekey->withHash($hash);
2790 $signature = $privatekey->sign(Strings::packSSH2('s', $this->session_id) . $packet);