Lines Matching refs:encrypt

456     private $encrypt = false;  variable in phpseclib3\\Net\\SSH2
1687 …$encrypt = self::array_intersect_first($c2s_encryption_algorithms, $this->encryption_algorithms_cl…
1688 $encryptKeyLength = $this->encryption_algorithm_to_key_size($encrypt);
1929 $this->encrypt = self::encryption_algorithm_to_crypt_instance($encrypt);
1930 if ($this->encrypt) {
1932 $this->encrypt->setPreferredEngine(self::$crypto_engine);
1934 if ($this->encrypt->getBlockLengthInBytes()) {
1935 $this->encrypt_block_size = $this->encrypt->getBlockLengthInBytes();
1937 $this->encrypt->disablePadding();
1939 if ($this->encrypt->usesIV()) {
1944 $this->encrypt->setIV(substr($iv, 0, $this->encrypt_block_size));
1947 switch ($encrypt) {
1957 $this->encrypt->enableContinuousBuffer();
1964 switch ($encrypt) {
1967 $this->lengthEncrypt = self::encryption_algorithm_to_crypt_instance($encrypt);
1970 $this->encrypt->setKey(substr($key, 0, $encryptKeyLength));
1971 $this->encryptName = $encrypt;
2027 if ($encrypt == 'arcfour128' || $encrypt == 'arcfour256') {
2028 $this->encrypt->encrypt(str_repeat("\0", 1536));
2034 if (!$this->encrypt->usesNonce()) {
3379 $this->decrypt = $this->encrypt = false;
3509 $this->decrypt->encrypt(str_repeat("\0", 32))
4198 if ($this->encrypt && $this->encrypt->usesNonce()) {
4206 case $this->encrypt && $this->encrypt->usesNonce():
4227 if ($this->encrypt) {
4231 $this->encrypt->setNonce(
4236 $this->encrypt->setAAD($temp = ($packet & "\xFF\xFF\xFF\xFF"));
4237 $packet = $temp . $this->encrypt->encrypt(substr($packet, 4));
4241 if (!($this->encrypt instanceof ChaCha20)) {
4247 $this->encrypt->setNonce($nonce);
4250 $length = $this->lengthEncrypt->encrypt($packet & "\xFF\xFF\xFF\xFF");
4252 $this->encrypt->setCounter(0);
4256 $this->encrypt->setPoly1305Key(
4257 $this->encrypt->encrypt(str_repeat("\0", 32))
4259 $this->encrypt->setAAD($length);
4260 $this->encrypt->setCounter(1);
4261 $packet = $length . $this->encrypt->encrypt(substr($packet, 4));
4265 … ($packet & "\xFF\xFF\xFF\xFF") . $this->encrypt->encrypt(substr($packet, 4)) :
4266 $this->encrypt->encrypt($packet);
4281 $packet .= $this->encrypt && $this->encrypt->usesNonce() ? $this->encrypt->getTag() : $hmac;