Lines Matching defs:new

13  *    $ssh = new \phpseclib3\Net\SSH2('www.domain.tld');
29 * $ssh = new \phpseclib3\Net\SSH2('www.domain.tld');
1349 throw new UnableToConnectException(rtrim("Cannot connect to $host. Error $errno. $errstr"));
1356 throw new \RuntimeException('Connection timed out whilst attempting to open socket connection');
1380 throw new \RuntimeException('Connection timed out whilst receiving server identification string');
1388 throw new \RuntimeException('Connection timed out whilst receiving server identification string');
1396 throw new \RuntimeException('Error reading from socket');
1422 throw new ConnectionClosedException('Connection closed by server');
1439 throw new UnableToConnectException("Cannot connect to SSH $matches[3] servers");
1463 throw new \UnexpectedValueException('Expected SSH_MSG_KEXINIT');
1617 throw new \UnexpectedValueException('Expected SSH_MSG_KEXINIT');
1642 throw new \UnexpectedValueException('Possible Terrapin Attack detected');
1660 throw new NoSupportedAlgorithmsException('No compatible server to client encryption algorithms found');
1667 throw new NoSupportedAlgorithmsException('No compatible client to server encryption algorithms found');
1674 throw new NoSupportedAlgorithmsException('No compatible key exchange algorithms found');
1680 throw new NoSupportedAlgorithmsException('No compatible server host key algorithms found');
1686 throw new NoSupportedAlgorithmsException('No compatible client to server message authentication algorithms found');
1692 throw new NoSupportedAlgorithmsException('No compatible server to client message authentication algorithms found');
1704 throw new NoSupportedAlgorithmsException('No compatible server to client compression algorithms found');
1711 throw new NoSupportedAlgorithmsException('No compatible client to server compression algorithms found');
1721 $kexHash = new Hash('sha512');
1724 $kexHash = new Hash('sha384');
1731 $kexHash = new Hash('sha256');
1734 $kexHash = new Hash('sha1');
1770 throw new \UnexpectedValueException('Expected SSH_MSG_KEX_DH_GEX_GROUP');
1773 $prime = new BigInteger($primeBytes, -256);
1774 $g = new BigInteger($gBytes, -256);
1821 throw new \UnexpectedValueException("Expected $serverKexReplyMessage");
1834 throw new \LengthException('The signature needs at least four bytes');
1883 throw new \RuntimeException('Server Host Key Algorithm Mismatch (' . $this->signature_format . ' vs ' . $server_host_key_algorithm . ')');
1894 throw new ConnectionClosedException('Connection closed by server');
1900 throw new \UnexpectedValueException('Expected SSH_MSG_NEWKEYS');
2017 $this->hmac_create = new \stdClass();
2037 $this->hmac_check = new \stdClass();
2116 return new TripleDES('cbc');
2118 return new TripleDES('ctr');
2122 return new Rijndael('cbc');
2126 return new Rijndael('ctr');
2128 return new Blowfish('cbc');
2130 return new Blowfish('ctr');
2135 return new Twofish('cbc');
2139 return new Twofish('ctr');
2143 return new RC4();
2146 return new Rijndael('gcm');
2148 return new ChaCha20();
2165 return [new Hash('umac-64'), 16];
2168 return [new Hash('umac-128'), 16];
2171 return [new Hash('sha512'), 64];
2174 return [new Hash('sha256'), 32];
2177 return [new Hash('sha1'), 20];
2179 return [new Hash('sha1-96'), 20];
2181 return [new Hash('md5'), 16];
2183 return [new Hash('md5-96'), 16];
2257 throw new \UnexpectedValueException('A PublicKey object was passed to the login method instead of a PrivateKey object');
2264 throw new \UnexpectedValueException('$password needs to either be an instance of \phpseclib3\Crypt\Common\PrivateKey, \System\SSH\Agent, an array or a string');
2382 throw new \UnexpectedValueException('Expected SSH_MSG_SERVICE_ACCEPT');
2694 throw new UnsupportedCurveException('Specified Curves are not supported by SSH2');
2696 throw new UnsupportedCurveException('Named Curve of ' . $curveName . ' is not supported by phpseclib3\'s SSH2 implementation');
2703 throw new UnsupportedAlgorithmException('Please use either an RSA key, an EC one or a DSA key');
2743 throw new ConnectionClosedException('Unexpected response to publickey authentication pt 1');
2771 throw new ConnectionClosedException('Unexpected response to publickey authentication pt 2');
2840 // throw new \RuntimeException('If you want to run multiple exec()\'s you will need to disable (and re-enable if appropriate) a PTY for each one.');
2866 throw new \RuntimeException('Unable to request pseudo-terminal');
2943 throw new \RuntimeException('Please close the channel (' . $channel . ') before trying to open it again');
2949 throw new \RuntimeException("Ubuntu's OpenSSH from 5.8 to 6.9 doesn't work with multiple channels");
2994 throw new InsufficientSetupException('Operation disallowed prior to login()');
3019 throw new \RuntimeException('Unable to request pty');
3033 throw new \RuntimeException('Unable to request shell');
3151 throw new InsufficientSetupException('Operation disallowed prior to login()');
3163 throw new InsufficientSetupException('Data is not available on channel');
3165 throw new \RuntimeException('Unable to initiate an interactive shell session');
3212 throw new InsufficientSetupException('Operation disallowed prior to login()');
3221 throw new InsufficientSetupException('Data is not available on channel');
3223 throw new \RuntimeException('Unable to initiate an interactive shell session');
3235 * To support multiple subsystem's of the same name maybe it'd be best if startSubsystem() generated a new channel id and
3362 throw new \InvalidArgumentException('$level must be 0, 1 or 2');
3508 throw new \InvalidArgumentException('fsock is not a resource.');
3560 throw new ConnectionClosedException($str);
3573 throw new ConnectionClosedException('No data received from server');
3602 throw new \LogicException('$this->decrypt is not a ' . ChaCha20::class);
3652 throw new \RuntimeException('Plaintext is too short');
3680 throw new \RuntimeException('Error reading socket');
3690 throw new \RuntimeException('Invalid UMAC');
3695 throw new \RuntimeException('Invalid HMAC');
3786 throw new \RuntimeException('Invalid size');
3798 throw new \RuntimeException('Error reading from socket');
4084 throw new ConnectionClosedException('Connection closed by server');
4184 throw new \RuntimeException('Unable to open channel');
4188 throw new \RuntimeException('Unexpected response to open request');
4205 throw new \RuntimeException('Unable to fulfill channel request');
4263 throw new \RuntimeException("Error reading channel data ($type)");
4282 throw new ConnectionClosedException('Connection closed prematurely');
4354 throw new \LogicException('$this->encrypt is not a ' . ChaCha20::class);
4413 throw new \RuntimeException($message);
5160 throw new UnsupportedAlgorithmException(implode(', ', $diff) . $msg);
5259 throw new NoSupportedAlgorithmsException('Unsupported signature format');
5397 * @param string $new
5399 private function updateLogHistory($old, $new)
5404 $new,