mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 16:15:52 +00:00
SSH2: rm code that is never called
This commit is contained in:
parent
d26850e56f
commit
ee2ac9f818
@ -2009,13 +2009,11 @@ class Net_SSH2
|
|||||||
include_once 'Crypt/TripleDES.php';
|
include_once 'Crypt/TripleDES.php';
|
||||||
}
|
}
|
||||||
return new Crypt_TripleDES();
|
return new Crypt_TripleDES();
|
||||||
break;
|
|
||||||
case '3des-ctr':
|
case '3des-ctr':
|
||||||
if (!class_exists('Crypt_TripleDES')) {
|
if (!class_exists('Crypt_TripleDES')) {
|
||||||
include_once 'Crypt/TripleDES.php';
|
include_once 'Crypt/TripleDES.php';
|
||||||
}
|
}
|
||||||
return new Crypt_TripleDES(CRYPT_DES_MODE_CTR);
|
return new Crypt_TripleDES(CRYPT_DES_MODE_CTR);
|
||||||
break;
|
|
||||||
case 'aes256-cbc':
|
case 'aes256-cbc':
|
||||||
case 'aes192-cbc':
|
case 'aes192-cbc':
|
||||||
case 'aes128-cbc':
|
case 'aes128-cbc':
|
||||||
@ -2023,7 +2021,6 @@ class Net_SSH2
|
|||||||
include_once 'Crypt/Rijndael.php';
|
include_once 'Crypt/Rijndael.php';
|
||||||
}
|
}
|
||||||
return new Crypt_Rijndael();
|
return new Crypt_Rijndael();
|
||||||
break;
|
|
||||||
case 'aes256-ctr':
|
case 'aes256-ctr':
|
||||||
case 'aes192-ctr':
|
case 'aes192-ctr':
|
||||||
case 'aes128-ctr':
|
case 'aes128-ctr':
|
||||||
@ -2031,20 +2028,16 @@ class Net_SSH2
|
|||||||
include_once 'Crypt/Rijndael.php';
|
include_once 'Crypt/Rijndael.php';
|
||||||
}
|
}
|
||||||
return new Crypt_Rijndael(CRYPT_RIJNDAEL_MODE_CTR);
|
return new Crypt_Rijndael(CRYPT_RIJNDAEL_MODE_CTR);
|
||||||
$this->encrypt_block_size = 16; // eg. 128 / 8
|
|
||||||
break;
|
|
||||||
case 'blowfish-cbc':
|
case 'blowfish-cbc':
|
||||||
if (!class_exists('Crypt_Blowfish')) {
|
if (!class_exists('Crypt_Blowfish')) {
|
||||||
include_once 'Crypt/Blowfish.php';
|
include_once 'Crypt/Blowfish.php';
|
||||||
}
|
}
|
||||||
return new Crypt_Blowfish();
|
return new Crypt_Blowfish();
|
||||||
break;
|
|
||||||
case 'blowfish-ctr':
|
case 'blowfish-ctr':
|
||||||
if (!class_exists('Crypt_Blowfish')) {
|
if (!class_exists('Crypt_Blowfish')) {
|
||||||
include_once 'Crypt/Blowfish.php';
|
include_once 'Crypt/Blowfish.php';
|
||||||
}
|
}
|
||||||
return new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR);
|
return new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR);
|
||||||
break;
|
|
||||||
case 'twofish128-cbc':
|
case 'twofish128-cbc':
|
||||||
case 'twofish192-cbc':
|
case 'twofish192-cbc':
|
||||||
case 'twofish256-cbc':
|
case 'twofish256-cbc':
|
||||||
@ -2053,7 +2046,6 @@ class Net_SSH2
|
|||||||
include_once 'Crypt/Twofish.php';
|
include_once 'Crypt/Twofish.php';
|
||||||
}
|
}
|
||||||
return new Crypt_Twofish();
|
return new Crypt_Twofish();
|
||||||
break;
|
|
||||||
case 'twofish128-ctr':
|
case 'twofish128-ctr':
|
||||||
case 'twofish192-ctr':
|
case 'twofish192-ctr':
|
||||||
case 'twofish256-ctr':
|
case 'twofish256-ctr':
|
||||||
@ -2061,7 +2053,6 @@ class Net_SSH2
|
|||||||
include_once 'Crypt/Twofish.php';
|
include_once 'Crypt/Twofish.php';
|
||||||
}
|
}
|
||||||
return new Crypt_Twofish(CRYPT_TWOFISH_MODE_CTR);
|
return new Crypt_Twofish(CRYPT_TWOFISH_MODE_CTR);
|
||||||
break;
|
|
||||||
case 'arcfour':
|
case 'arcfour':
|
||||||
case 'arcfour128':
|
case 'arcfour128':
|
||||||
case 'arcfour256':
|
case 'arcfour256':
|
||||||
@ -2069,7 +2060,6 @@ class Net_SSH2
|
|||||||
include_once 'Crypt/RC4.php';
|
include_once 'Crypt/RC4.php';
|
||||||
}
|
}
|
||||||
return new Crypt_RC4();
|
return new Crypt_RC4();
|
||||||
break;
|
|
||||||
case 'none':
|
case 'none':
|
||||||
//return new Crypt_Null();
|
//return new Crypt_Null();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user