cfw_sodium_installed()
cfw_sodium_installed() : bool
cfw_sodium_str(string $fn, int $at, string $name, mixed $v) : string
A string argument as the base64 the host reads, coerced the way an internal function coerces it.
| string | $fn | The function name, for the message. |
| int | $at | The argument's zero-based position. |
| string | $name | The parameter name. |
| mixed | $v | What the caller passed. |
cfw_sodium_int(string $fn, int $at, string $name, mixed $v) : string
An int argument as the decimal string the host reads.
| string | $fn | The function name, for the message. |
| int | $at | The argument's zero-based position. |
| string | $name | The parameter name. |
| mixed | $v | What the caller passed. |
cfw_sodium_ref(string $fn, int $at, string $name, mixed $v) : string
A by-reference state argument; anything but a string is not a state.
| string | $fn | The function name, for the message. |
| int | $at | The argument's zero-based position. |
| string | $name | The parameter name. |
| mixed | $v | What the caller passed. |
cfw_sodium_go(string $fn, array$args) : mixed
Runs one wrapper's call: coerces each argument by its declared kind, crosses the bridge, and writes back any by-reference state.
| string | $fn | The sodium function, from FUNCTION. |
| array |
$args | The wrapper's arguments, by reference where the function takes a state. |