diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index 9670c01a..cd116b56 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -2423,7 +2423,7 @@ class RSA $db = $maskedDB ^ $dbMask; $lHash2 = substr($db, 0, $this->hLen); $m = substr($db, $this->hLen); - if ($lHash != $lHash2) { + if (!$this->_equals($lHash, $lHash2)) { user_error('Decryption error'); return false; }