ParagonIE_Sodium_Crypto::keyExchange() public WP 1.0
Libsodium's crypto_kx().
{} It's a method of the class: ParagonIE_Sodium_Crypto{}
No Hooks.
Return
String
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Crypto::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_Crypto::keyExchange() ParagonIE Sodium Crypto::keyExchange WP 5.7
public static function keyExchange($my_sk, $their_pk, $client_pk, $server_pk)
{
return ParagonIE_Sodium_Compat::crypto_generichash(
ParagonIE_Sodium_Compat::crypto_scalarmult($my_sk, $their_pk) .
$client_pk .
$server_pk
);
}