ParagonIE_Sodium_Core_Util
class ParagonIE_Sodium_Core_Util
// Constructor: function Object() { [native code] } Class ParagonIE_Sodium_Core_Util
Methods 29 methods
| Method / Return | Description |
|---|---|
| abs() int | No description available.
Parameters: $integer: mixed, $size: mixed |
| andStrings() string | No description available.
Parameters: $a: mixed, $b: mixed |
| bin2hex() string | Convert a binary string into a hexadecimal string without cache-timing
Parameters: $binaryString: mixed |
| bin2hexUpper() string | Convert a binary string into a hexadecimal string without cache-timing
Parameters: $bin_string: mixed |
| chrToInt() int | Cache-timing-safe variant of ord()
Parameters: $chr: mixed |
| compare() int | Compares two strings.
Parameters: $left: mixed, $right: mixed, $len: mixed |
| declareScalarType() void | If a variable does not match a given type, throw a TypeError.
Parameters: $mixedVar: mixed, $type: mixed, $argumentIndex: mixed |
| hashEquals() bool | Evaluate whether or not two strings are equal (in constant-time)
Parameters: $left: mixed, $right: mixed |
| hash_update() void | Catch hash_update() failures and throw instead of silently proceeding
Parameters: $hs: mixed, $data: mixed |
| hex2bin() string | Convert a hexadecimal string into a binary string without cache-timing
Parameters: $hexString: mixed, $ignore: mixed, $strictPadding: mixed |
| intArrayToString() string | Turn an array of integers into a string
Parameters: $ints: array |
| intToChr() string | Cache-timing-safe variant of ord()
Parameters: $int: mixed |
| load_3() int | Load a 3 character substring into an integer
Parameters: $string: mixed |
| load_4() int | Load a 4 character substring into an integer
Parameters: $string: mixed |
| load64_le() int | Load a 8 character substring into an integer
Parameters: $string: mixed |
| memcmp() int | No description available.
Parameters: $left: mixed, $right: mixed |
| mul() int | Multiply two integers in constant-time
Parameters: $a: mixed, $b: mixed, $size: mixed |
| numericTo64BitInteger() array<int, | Convert any arbitrary numbers into two 32-bit integers that represent
Parameters: $num: mixed |
| store_3() string | Store a 24-bit integer into a string, treating it as big-endian.
Parameters: $int: mixed |
| store32_le() string | Store a 32-bit integer into a string, treating it as little-endian.
Parameters: $int: mixed |
| store_4() string | Store a 32-bit integer into a string, treating it as big-endian.
Parameters: $int: mixed |
| store64_le() string | Stores a 64-bit integer as an string, treating it as little-endian.
Parameters: $int: mixed |
| strlen() int | Safe string length
Parameters: $str: mixed |
| stringToIntArray() array<int, | Turn a string into an array of integers
Parameters: $string: mixed |
| substr() string | Safe substring
Parameters: $str: mixed, $start: mixed, $length: mixed |
| verify_16() bool | Compare a 16-character byte string in constant time.
Parameters: $a: mixed, $b: mixed |
| verify_32() bool | Compare a 32-character byte string in constant time.
Parameters: $a: mixed, $b: mixed |
| xorStrings() string | Calculate $a ^ $b for two strings.
Parameters: $a: mixed, $b: mixed |
| isMbStringOverride() bool | Returns whether or not mbstring.func_overload is in effect. |