Class ParagonIE_SodiumCompat_Core_SipHash

Only uses 32-bit arithmetic, while the original SipHash used 64-bit integers

package WordPress
inherited_from \ParagonIE_Sodium_Core_SipHash

 Methods

abs()

abs(integer $integer, integer $size = 0) : integer
InheritedStatic

Parameters

$integer

integer

$size

integer

(16, 32, 64)

Returns

integer

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

declareScalarType(mixed $mixedVar = null, string $type = 'void', integer $argumentIndex = 0) : void
InheritedStatic

Parameters

$mixedVar

mixed

$type

string

$argumentIndex

integer

Exceptions

\TypeError
\SodiumException

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

hashEquals(string $left, string $right) : boolean
InheritedStatic

Parameters

$left

string

$right

string

Exceptions

\SodiumException
\TypeError

Returns

boolean