sodium_crypto_stream

The timeline below displays how wordpress function sodium_crypto_stream has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * @see ParagonIE_Sodium_Compat::crypto_stream()
 * @param int $length
 * @param string $nonce
 * @param string $key
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_stream($length, $nonce, $key)
{
    return ParagonIE_Sodium_Compat::crypto_stream($length, $nonce, $key);
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_stream()
 * @param int $len
 * @param string $nonce
 * @param string $key
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_stream($len, $nonce, $key)
{
    return ParagonIE_Sodium_Compat::crypto_stream($len, $nonce, $key);
}