ParagonIE_Sodium_Core32_Util

Extends\ParagonIE_Sodium_Core_Util

Class ParagonIE_Sodium_Core_Util

package

Default

Methods

abs

abs(integer $integer,integer $size): integer
inheritedstatic

Arguments

$integer

integer

$size

integer

(16, 32, 64)

Response

integer

If a variable does not match a given type, throw a TypeError.

declareScalarType(mixed &$mixedVar = null,string $type = 'void',integer $argumentIndex): void
inheritedstatic
Throws
\TypeError
\SodiumException

Arguments

$mixedVar

mixed

$type

string

$argumentIndex

integer

Catch hash_update() failures and throw instead of silently proceeding

hash_update( &$hs,string $data): void
inheritedstatic
psalm-suppress

PossiblyInvalidArgument

Throws
\SodiumException

Arguments

$hs

$data

string

Evaluate whether or not two strings are equal (in constant-time)

hashEquals(string $left,string $right): boolean
inheritedstatic
Throws
\SodiumException
\TypeError

Arguments

$left

string

$right

string

Response

boolean