mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-05 05:18:28 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
7a0b96ecfa
@ -2078,6 +2078,11 @@ abstract class Base
|
||||
*/
|
||||
function _increment_str(&$var)
|
||||
{
|
||||
if (function_exists('sodium_increment')) {
|
||||
sodium_increment($var);
|
||||
return;
|
||||
}
|
||||
|
||||
for ($i = 4; $i <= strlen($var); $i+= 4) {
|
||||
$temp = substr($var, -$i, 4);
|
||||
switch ($temp) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user