mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-24 15:48:26 +00:00
- updated to use latest TripleDES.php
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@5 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
parent
df0fe2386a
commit
8be1b1bb5c
@ -65,7 +65,7 @@
|
|||||||
* @author Jim Wigginton <terrafrost@php.net>
|
* @author Jim Wigginton <terrafrost@php.net>
|
||||||
* @copyright MMVII Jim Wigginton
|
* @copyright MMVII Jim Wigginton
|
||||||
* @license http://www.gnu.org/licenses/lgpl.txt
|
* @license http://www.gnu.org/licenses/lgpl.txt
|
||||||
* @version $Id: SSH1.php,v 1.1 2007-07-02 04:19:47 terrafrost Exp $
|
* @version $Id: SSH1.php,v 1.2 2007-07-25 02:33:43 terrafrost Exp $
|
||||||
* @link http://pear.php.net/package/Net_SSH1
|
* @link http://pear.php.net/package/Net_SSH1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -513,7 +513,9 @@ class Net_SSH1 {
|
|||||||
$this->crypto->setKey(substr($session_key, 0, 8));
|
$this->crypto->setKey(substr($session_key, 0, 8));
|
||||||
break;
|
break;
|
||||||
case NET_SSH1_CIPHER_3DES:
|
case NET_SSH1_CIPHER_3DES:
|
||||||
$this->crypto = new Crypt_TripleDES(CRYPT_DES_MODE_SSH);
|
$this->crypto = new Crypt_TripleDES(CRYPT_DES_MODE_3CBC);
|
||||||
|
$this->crypto->disablePadding();
|
||||||
|
$this->crypto->enableContinuousBuffer();
|
||||||
$this->crypto->setKey(substr($session_key, 0, 24));
|
$this->crypto->setKey(substr($session_key, 0, 24));
|
||||||
break;
|
break;
|
||||||
//case NET_SSH1_CIPHER_RC4:
|
//case NET_SSH1_CIPHER_RC4:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user