diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index 3be36c88..1a35a274 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -2301,6 +2301,10 @@ class Crypt_RSA */ function _equals($x, $y) { + if (function_exists('hash_equals')) { + return hash_equals($x, $y); + } + if (strlen($x) != strlen($y)) { return false; }