sodium_crypto_sign_ed25519_pk_to_curve25519
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign_ed25519_pk_to_curve25519 — Convert an Ed25519 public key to a Curve25519 public key
Description
Given an Ed25519 public key, calculate the birationally equivalent X25519 public key.
Parameters
public_key
Public key suitable for the crypto_sign functions.
Return Values
Public key suitable for the crypto_box functions.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
