PHP Conference Japan 2024

sodium_crypto_scalarmult

(PHP 7 >= 7.2.0,PHP 8)

sodium_crypto_scalarmult計算給定使用者私鑰和另一個使用者公鑰的共享密鑰

描述

sodium_crypto_scalarmult(string $n, string $p): string

橢圓曲線迪菲-赫爾曼。計算橢圓曲線上標量 n 乘以點 p 的結果。

參數

n

標量,通常是私鑰

p

點(x 坐標),通常是公鑰

回傳值

一個 32 位元組的隨機字串。

新增筆記

使用者貢獻的筆記

此頁面沒有使用者貢獻的筆記。
To Top