WordPress at a glance
function is not described

ParagonIE_Sodium_Core_XSalsa20::xsalsa20() public WP 1.0

Expand a key and nonce into an xsalsa20 keystream.

{} It's a method of the class: ParagonIE_Sodium_Core_XSalsa20{}

No Hooks.


String. Null. Nothing.


$result = ParagonIE_Sodium_Core_XSalsa20::xsalsa20( $len, $nonce, $key );
$len(int) (required)
$nonce(string) (required)
$key(string) (required)

Code of ParagonIE_Sodium_Core_XSalsa20::xsalsa20() WP 5.7

public static function xsalsa20($len, $nonce, $key)
    $ret = self::salsa20(
        self::substr($nonce, 16, 8),
        self::hsalsa20($nonce, $key)
    return $ret;