PHP - Manual: sodium_crypto_scalarmult_ristretto255
2025-10-24
(PHP 8 >= 8.1.1)
sodium_crypto_scalarmult_ristretto255 — Computes a shared secret
Calculates scalar n times point p.
Available as of libsodium 1.0.18.
本函数还未编写文档,仅有参数列表。
nA scalar, which is typically a secret key.
pA point (x-coordinate), which is typically a public key.
Returns a 32-byte random string.
官方地址:https://www.php.net/manual/en/function.sodium-crypto-scalarmult-ristretto255.php