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.php156 $privatekey = EC::loadFormat('libsodium', sodium_crypto_sign_secretkey($kp));
159 $privatekey->curveName = 'Ed25519';
162 return $privatekey;
165 $privatekey = new PrivateKey();
187 $privatekey->dA = $dA = $arr['dA'];
188 $privatekey->secret = $arr['secret'];
190 $privatekey->dA = $dA = $curve->createRandomMultiplier();
196 $privatekey->QA = [$curve->convertInteger(new BigInteger(strrev($QA), 256))];
198 $privatekey->QA = $curve->multiplyPoint($curve->getBasePoint(), $dA);
200 $privatekey->curve = $curve;
[all …]
H A DRSA.php413 $privatekey = new PrivateKey();
414 $privatekey->modulus = $n;
415 $privatekey->k = $bits >> 3;
416 $privatekey->publicExponent = $e;
417 $privatekey->exponent = $d;
418 $privatekey->primes = $primes;
419 $privatekey->exponents = $exponents;
420 $privatekey->coefficients = $coefficients;
431 return $privatekey;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSSH2.php2679 * @param PrivateKey $privatekey
2683 private function privatekey_login($username, PrivateKey $privatekey) argument
2685 $publickey = $privatekey->getPublicKey();
2688 $privatekey = $privatekey->withPadding(RSA::SIGNATURE_PKCS1);
2709 $privatekey = $privatekey->withSignatureFormat('SSH2');
2710 $curveName = $privatekey->getCurve();
2735 $privatekey = $privatekey->withSignatureFormat('SSH2');
2768 return $this->privatekey_login($username, $privatekey);
2784 $privatekey = $privatekey->withHash($hash);
2785 $signature = $privatekey->sign(Strings::packSSH2('s', $this->session_id) . $packet);