Class ParagonIE_Sodium_Core_BLAKE2b

Based on the work of Devi Mandiri in devi/salt.

package WordPress
inherited_from \ParagonIE_Sodium_Core_BLAKE2b

 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

 Properties

 

$iv

$iv : \SplFixedArray

Default

Static
 

array<int, int>>

$sigma : \array<int,

Default

array(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15), array(14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3), array(11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4), array(7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8), array(9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13), array(2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9), array(12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11), array(13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10), array(6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5), array(10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0), array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15), array(14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3))
Static

 Constants

 

BLOCKBYTES

BLOCKBYTES = 128 
 

KEYBYTES

KEYBYTES = 64 
 

OUTBYTES

OUTBYTES = 64