diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index c2f4a801..bf1a58f2 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -1791,7 +1791,7 @@ class Crypt_RSA { */ function _equals($x, $y) { - if (count($x) != count($y)) { + if (strlen($x) != strlen($y)) { return false; }