mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 04:57:53 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
337d115179
@ -2217,6 +2217,10 @@ class RSA
|
|||||||
*/
|
*/
|
||||||
function _equals($x, $y)
|
function _equals($x, $y)
|
||||||
{
|
{
|
||||||
|
if (function_exists('hash_equals')) {
|
||||||
|
return hash_equals($x, $y);
|
||||||
|
}
|
||||||
|
|
||||||
if (strlen($x) != strlen($y)) {
|
if (strlen($x) != strlen($y)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user