SSH2: Blowfish: typo... block_size adjustment

Changed: Blowfish block_size = 8
re: https://github.com/phpseclib/phpseclib/pull/100
This commit is contained in:
Hans-Jürgen Petrich 2013-05-08 13:52:18 +07:00
parent c89db52e39
commit fe0cc95265

View File

@ -1355,7 +1355,7 @@ class Net_SSH2 {
break;
case 'blowfish-cbc':
$this->encrypt = new Crypt_Blowfish();
$this->encrypt_block_size = 16;
$this->encrypt_block_size = 8;
break;
case 'blowfish-ctr':
$this->encrypt = new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR);
@ -1408,7 +1408,7 @@ class Net_SSH2 {
break;
case 'blowfish-ctr':
$this->decrypt = new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR);
$this->decrypt_block_size = 16;
$this->decrypt_block_size = 8;
break;
case 'twofish128-cbc':
case 'twofish192-cbc':
@ -3311,4 +3311,4 @@ class Net_SSH2 {
}
return $this->exit_status;
}
}
}