Class ParagonIE_Sodium_Core_HChaCha20

package WordPress
inherited_from \ParagonIE_Sodium_Core_HChaCha20

 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

hChaCha20()

hChaCha20(string $in = '', string $key = '', string|null $c = null) : string
InheritedStatic

Parameters

$in

string

$key

string

$c

stringnull

Exceptions

\TypeError

Returns

string

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

hChaCha20Bytes()

hChaCha20Bytes(array $ctx) : string
InheritedStatic

Parameters

$ctx

array

Exceptions

\TypeError

Returns

string