RSA: use hash_equals if available

This commit is contained in:
terrafrost 2019-03-23 20:17:43 -05:00
parent f111bf94b6
commit b5b763b3f2

View File

@ -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;
}