WordPress at a glance
function is not described

ParagonIE_Sodium_Crypto32::keyExchange() public WP 1.0

Libsodium's crypto_kx().

{} It's a method of the class: ParagonIE_Sodium_Crypto32{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Crypto32::keyExchange( $my_sk, $their_pk, $client_pk, $server_pk );
$my_sk(string) (required)
-
$their_pk(string) (required)
-
$client_pk(string) (required)
-
$server_pk(string) (required)
-

Code of ParagonIE_Sodium_Crypto32::keyExchange() WP 5.7

<?php
public static function keyExchange($my_sk, $their_pk, $client_pk, $server_pk)
{
    return self::generichash(
        self::scalarmult($my_sk, $their_pk) .
        $client_pk .
        $server_pk
    );
}