Lines Matching defs:key
35 * methods phpseclib looks for to perform public key authentication.
55 private $key;
109 * @param \phpseclib3\Crypt\Common\PublicKey $key
111 public function withPublicKey(PublicKey $key)
113 if ($key instanceof EC) {
114 if (is_array($key->getCurve()) || !isset(self::$curveAliases[$key->getCurve()])) {
120 $new->key = $key;
127 * Called by \phpseclib3\System\SSH\Agent::requestIdentities(). The key blob could be extracted from $this->key
142 * Wrapper for $this->key->getPublicKey()
149 return $this->key;
163 if ($this->key instanceof RSA) {
178 if ($this->key instanceof EC) {
179 switch ($this->key->getCurve()) {
192 throw new UnsupportedAlgorithmException('The only supported hash for ' . self::$curveAliases[$this->key->getCurve()] . ' is ' . $expectedHash);
195 if ($this->key instanceof DSA) {
212 if (!$this->key instanceof RSA) {
230 if ($this->key instanceof RSA) {
249 if (!$this->key instanceof EC) {
253 return $this->key->getCurve();
259 * See "2.6.2 Protocol 2 private key signature request"
289 if (!$this->key instanceof RSA) {
299 * Returns the private key
307 throw new \RuntimeException('ssh-agent does not provide a mechanism to get the private key');
318 throw new \RuntimeException('ssh-agent does not provide a mechanism to get the private key');