sodium_crypto_kx_client_session_keys

The timeline below displays how wordpress function sodium_crypto_kx_client_session_keys 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 $client_key_pair
 * @param string $server_key
 * @return array{0: string, 1: string}
 * @throws SodiumException
 */
function sodium_crypto_kx_client_session_keys($client_key_pair, $server_key)
{
    return ParagonIE_Sodium_Compat::crypto_kx_client_session_keys($client_key_pair, $server_key);
}

WordPress Version: 3.1

/**
 * @param string $keypair
 * @param string $serverPublicKey
 * @return array{0: string, 1: string}
 * @throws SodiumException
 */
function sodium_crypto_kx_client_session_keys($keypair, $serverPublicKey)
{
    return ParagonIE_Sodium_Compat::crypto_kx_client_session_keys($keypair, $serverPublicKey);
}