1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-04 02:28:06 +01:00

Crypt/Base: sodium_increment uses the opposite endianness

This commit is contained in:
terrafrost 2022-02-18 01:45:29 -06:00
parent 1ba024df94
commit 7ce96d9337

View File

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