sodium_crypto_kx_server_session_keys
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_kx_server_session_keys — Calculate the server-side session keys.
Descrição
sodium_crypto_kx_server_session_keys(#[\SensitiveParameter] string
$server_key_pair
, string $client_key
): arrayCalculate the server-side session keys, using the X25519 + BLAKE2b key-exchange method.
Parâmetros
server_key_pair
-
A crypto_kx keypair, such as one generated by sodium_crypto_kx_keypair().
client_key
-
A crypto_kx public key.
Valor Retornado
An array consisting of two strings. The first should be used for receiving data from the client. The second should be used for sending data to the client.