sodium_crypto_secretstream_xchacha20poly1305_push

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

WordPress Version: 6.1

/**
 * @param string $state
 * @param string $message
 * @param string $additional_data
 * @param int $tag
 * @return string
 * @throws SodiumException
 */
function sodium_crypto_secretstream_xchacha20poly1305_push(&$state, $message, $additional_data = '', $tag = 0)
{
    return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push($state, $message, $additional_data, $tag);
}

WordPress Version: 3.1

/**
 * @param string $state
 * @param string $msg
 * @param string $aad
 * @param int $tag
 * @return string
 * @throws SodiumException
 */
function sodium_crypto_secretstream_xchacha20poly1305_push(&$state, $msg, $aad = '', $tag = 0)
{
    return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push($state, $msg, $aad, $tag);
}