略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: sodium_crypto_kx_server_session_keys

2024-12-21

sodium_crypto_kx_server_session_keys

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_kx_server_session_keysCalculate the server-side session keys.

说明

sodium_crypto_kx_server_session_keys(string $server_key_pair, string $client_key): array

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

参数

server_key_pair

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

client_key

A crypto_kx public key.

返回值

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.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.sodium-crypto-kx-server-session-keys.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3