crypto_kx

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

WordPress Version: 7.3

/**
 * @see ParagonIE_Sodium_Compat::crypto_kx()
 * @param string $my_secret
 * @param string $their_public
 * @param string $client_public
 * @param string $server_public
 * @return string
 * @throws \SodiumException
 * @throws \TypeError
 */
function crypto_kx($my_secret, $their_public, $client_public, $server_public)
{
    return ParagonIE_Sodium_Compat::crypto_kx($my_secret, $their_public, $client_public, $server_public, true);
}

WordPress Version: 7.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_kx()
 * @param string $my_secret
 * @param string $their_public
 * @param string $client_public
 * @param string $server_public
 * @return string
 * @throws \SodiumException
 * @throws \TypeError
 */
function crypto_kx($my_secret, $their_public, $client_public, $server_public)
{
    return ParagonIE_Sodium_Compat::crypto_kx($my_secret, $their_public, $client_public, $server_public);
}

WordPress Version: .10

/**
 * @see ParagonIE_Sodium_Compat::crypto_kx()
 * @param string $my_secret
 * @param string $their_public
 * @param string $client_public
 * @param string $server_public
 * @return string
 * @throws \SodiumException
 * @throws \TypeError
 */
function crypto_kx($my_secret, $their_public, $client_public, $server_public)
{
    return ParagonIE_Sodium_Compat::crypto_kx($my_secret, $their_public, $client_public, $server_public, true);
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_kx()
 * @param string $my_secret
 * @param string $their_public
 * @param string $client_public
 * @param string $server_public
 * @return string
 * @throws \SodiumException
 * @throws \TypeError
 */
function crypto_kx($my_secret, $their_public, $client_public, $server_public)
{
    return ParagonIE_Sodium_Compat::crypto_kx($my_secret, $their_public, $client_public, $server_public);
}