IetfCtx

Extends\ParagonIE_Sodium_Core_ChaCha20_IetfCtx

Class ParagonIE_Sodium_Core_ChaCha20_IetfCtx

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

offsetExists

offsetExists( $offset)
inherited

Arguments

$offset

offsetGet

offsetGet( $offset)
inherited

Arguments

$offset

offsetSet

offsetSet( $offset, $value)
inherited

Arguments

$offset

$value

offsetUnset

offsetUnset( $offset)
inherited

Arguments

$offset

Properties

internally, <int, int>

container :\SplFixedArray
inherited
var

internally, <int, int>

Type(s)

\SplFixedArray