Skip to content

Commit

Permalink
Update phpseclib to 1.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazoyer committed Feb 8, 2016
1 parent bf2d821 commit c37f1e6
Show file tree
Hide file tree
Showing 25 changed files with 2,197 additions and 2,057 deletions.
2 changes: 1 addition & 1 deletion auth/authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

ini_set('include_path', ini_get('include_path').':./libs/phpseclib-1.0.0');
ini_set('include_path', ini_get('include_path').':./libs/phpseclib-1.0.1');

require_once('ssh.php');
require_once('telnet.php');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
* just a wrapper to Rijndael.php you may consider using Rijndael.php instead of
* to save one include_once().
*
* If {@link Crypt_AES::setKeyLength() setKeyLength()} isn't called, it'll be calculated from
* {@link Crypt_AES::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's 136-bits
* it'll be null-padded to 192-bits and 192 bits will be the key length until {@link Crypt_AES::setKey() setKey()}
* If {@link self::setKeyLength() setKeyLength()} isn't called, it'll be calculated from
* {@link self::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's 136-bits
* it'll be null-padded to 192-bits and 192 bits will be the key length until {@link self::setKey() setKey()}
* is called, again, at which point, it'll be recalculated.
*
* Since Crypt_AES extends Crypt_Rijndael, some functions are available to be called that, in the context of AES, don't
* make a whole lot of sense. {@link Crypt_AES::setBlockLength() setBlockLength()}, for instance. Calling that function,
* make a whole lot of sense. {@link self::setBlockLength() setBlockLength()}, for instance. Calling that function,
* however possible, won't do anything (AES has a fixed block length whereas Rijndael has a variable one).
*
* Here's a short example of how to use this library:
Expand Down Expand Up @@ -74,8 +74,8 @@

/**#@+
* @access public
* @see Crypt_AES::encrypt()
* @see Crypt_AES::decrypt()
* @see self::encrypt()
* @see self::decrypt()
*/
/**
* Encrypt / decrypt using the Counter mode.
Expand Down Expand Up @@ -124,7 +124,7 @@ class Crypt_AES extends Crypt_Rijndael
* The namespace used by the cipher for its constants.
*
* @see Crypt_Base::const_namespace
* @var String
* @var string
* @access private
*/
var $const_namespace = 'AES';
Expand All @@ -136,7 +136,7 @@ class Crypt_AES extends Crypt_Rijndael
*
* @see Crypt_Rijndael::setBlockLength()
* @access public
* @param Integer $length
* @param int $length
*/
function setBlockLength($length)
{
Expand All @@ -151,7 +151,7 @@ function setBlockLength($length)
*
* @see Crypt_Rijndael:setKeyLength()
* @access public
* @param Integer $length
* @param int $length
*/
function setKeyLength($length)
{
Expand All @@ -173,7 +173,7 @@ function setKeyLength($length)
* @see Crypt_Rijndael:setKey()
* @see setKeyLength()
* @access public
* @param String $key
* @param string $key
*/
function setKey($key)
{
Expand All @@ -183,13 +183,13 @@ function setKey($key)
$length = strlen($key);
switch (true) {
case $length <= 16:
$this->key_size = 16;
$this->key_length = 16;
break;
case $length <= 24:
$this->key_size = 24;
$this->key_length = 24;
break;
default:
$this->key_size = 32;
$this->key_length = 32;
}
$this->_setEngine();
}
Expand Down
Loading

0 comments on commit c37f1e6

Please sign in to comment.