From 29fabaaa18c340fb41f9900df911a68eda6e4546 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 5 Oct 2017 05:31:19 -0500 Subject: [PATCH] RSA: replace != with !$this->_equals --- phpseclib/Crypt/RSA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index b734c9f8..0f7f8aa2 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -2512,7 +2512,7 @@ class Crypt_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; }