mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-30 04:39:02 +01: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>
|
||||
* @copyright MMVII Jim Wigginton
|
||||
* @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
|
||||
*/
|
||||
|
||||
@ -513,7 +513,9 @@ class Net_SSH1 {
|
||||
$this->crypto->setKey(substr($session_key, 0, 8));
|
||||
break;
|
||||
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));
|
||||
break;
|
||||
//case NET_SSH1_CIPHER_RC4:
|
||||
|
Loading…
Reference in New Issue
Block a user