wp-includes/sodium_compat/src/Core/XSalsa20.php:46Encrypt a string with XSalsa20. Doesn't provide integrity.
$messagestring$noncestring$keystringstring public static function xsalsa20_xor($message, $nonce, $key) { return self::xorStrings( $message, self::xsalsa20( self::strlen($message), $nonce, $key ) ); }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/sodium_compat/src/Core/XSalsa20.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.