ParagonIE_Sodium_Crypto32::keyExchange

Advertisement

Summery Summery

Libsodium’s crypto_kx().

Syntax Syntax

ParagonIE_Sodium_Crypto32::keyExchange( string $my_sk, string $their_pk, string $client_pk, string $server_pk )

Parameters Parameters

$my_sk

(Required)

$their_pk

(Required)

$client_pk

(Required)

$server_pk

(Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Crypto32.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
        );
    }

Advertisement

Advertisement

Leave a Reply