mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
fix bad merge
This commit is contained in:
parent
450a961785
commit
1e10a6ab7a
@ -59,7 +59,7 @@
|
||||
*
|
||||
* This explains 3 of the 4 _encryptBlock() implementations. the last _encryptBlock()
|
||||
* implementation can best be understood by doing Ctrl + F and searching for where
|
||||
* CRYPT_BASE_USE_SAFE_INTVAL is defined.
|
||||
* self::$use_reg_intval is defined.
|
||||
*
|
||||
* # phpseclib's three different _setupKey() implementations
|
||||
*
|
||||
@ -710,7 +710,7 @@ class Blowfish extends BlockCipher
|
||||
$l = $in[1];
|
||||
$r = $in[2];
|
||||
|
||||
list($r, $l) = CRYPT_BASE_USE_SAFE_INTVAL ?
|
||||
list($r, $l) = self::$use_reg_intval ?
|
||||
self::encryptBlockHelperFast($l, $r, $sb_0, $sb_1, $sb_2, $sb_3, $p) :
|
||||
self::encryptBlockHelperSlow($l, $r, $sb_0, $sb_1, $sb_2, $sb_3, $p);
|
||||
|
||||
|
@ -3207,7 +3207,7 @@ abstract class SymmetricKey
|
||||
*/
|
||||
protected static function safe_intval($x)
|
||||
{
|
||||
if ($use_reg_intval || is_int($x)) {
|
||||
if (self::$use_reg_intval || is_int($x)) {
|
||||
return $x;
|
||||
}
|
||||
return (fmod($x, 0x80000000) & 0x7FFFFFFF) |
|
||||
|
@ -1274,7 +1274,7 @@ LrIZULwMa4nI4Y+RkFftEponSYw=
|
||||
-----END OPENSSH PRIVATE KEY-----
|
||||
';
|
||||
|
||||
$key = PublicKeyLoader($key, 'test');
|
||||
$key = PublicKeyLoader::load($key, 'test');
|
||||
$this->assertInstanceOf(PrivateKey::class, $key);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user