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.

Return

String. Null. Nothing.

Usage

$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

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