Methods
abs
abs(integer $integer,integer $size): integer
inheritedstatic
Arguments
$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
Catch hash_update() failures and throw instead of silently proceeding
hash_update( &$hs,string $data): void
inheritedstatic
psalm-suppress
|
PossiblyInvalidArgument |
Throws |
- \SodiumException
|
Arguments
Evaluate whether or not two strings are equal (in constant-time)
hashEquals(string $left,string $right): boolean
inheritedstatic
Throws |
- \SodiumException
- \TypeError
|
Arguments
Response
boolean
hChaCha20
hChaCha20(string $in = '',string $key = '',string|null $c = null): string
inheritedstatic
Arguments
Response
string
hChaCha20Bytes
hChaCha20Bytes(array $ctx): string
inheritedstatic
Arguments
Response
string