Summery Summery
Expand a key and nonce into an xsalsa20 keystream.
Syntax Syntax
Parameters Parameters
- $len
-
(Required)
- $nonce
-
(Required)
- $key
-
(Required)
Return Return
(string)
Source Source
File: wp-includes/sodium_compat/src/Core32/XSalsa20.php
public static function xsalsa20($len, $nonce, $key) { $ret = self::salsa20( $len, self::substr($nonce, 16, 8), self::hsalsa20($nonce, $key) ); return $ret; }