sodium_crypto_secretstream_xchacha20poly1305_pull

The timeline below displays how wordpress function sodium_crypto_secretstream_xchacha20poly1305_pull 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 $ciphertext
 * @param string $additional_data
 * @return bool|array{0: string, 1: int}
 * @throws SodiumException
 */
function sodium_crypto_secretstream_xchacha20poly1305_pull(&$state, $ciphertext, $additional_data = '')
{
    return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull($state, $ciphertext, $additional_data);
}

WordPress Version: 3.1

/**
 * @param string $state
 * @param string $cipher
 * @param string $aad
 * @return bool|array{0: string, 1: int}
 * @throws SodiumException
 */
function sodium_crypto_secretstream_xchacha20poly1305_pull(&$state, $cipher, $aad = '')
{
    return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull($state, $cipher, $aad);
}