mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 18:48:24 +01:00
Crypt/Base: sodium_increment uses the opposite endianness
This commit is contained in:
parent
1ba024df94
commit
7ce96d9337
@ -2008,7 +2008,9 @@ class Crypt_Base
|
|||||||
function _increment_str(&$var)
|
function _increment_str(&$var)
|
||||||
{
|
{
|
||||||
if (function_exists('sodium_increment')) {
|
if (function_exists('sodium_increment')) {
|
||||||
|
$var = strrev($var);
|
||||||
sodium_increment($var);
|
sodium_increment($var);
|
||||||
|
$var = strrev($var);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user