(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_kx_client_session_keysCalculate the client-side session keys.


sodium_crypto_kx_client_session_keys(#[\SensitiveParameter] string $client_key_pair, string $server_key): array

Calculate the client-side session keys, using the X25519 + BLAKE2b key-exchange method.

Bağımsız Değişkenler


A crypto_kx keypair, such as one generated by sodium_crypto_kx_keypair().


A crypto_kx public key.

Dönen Değerler

An array consisting of two strings. The first should be used for receiving data from the server. The second should be used for sending data to the server.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top