codecamp

PHP8 sodium_crypto_sign_ed25519_sk_to_curve25519

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_ed25519_sk_to_curve25519 — 将 Ed25519 密钥转换为 Curve25519 密钥

说明

sodium_crypto_sign_ed25519_sk_to_curve25519(string $secret_key): string

给定一个 Ed25519 密钥,计算双理等效的 X25519 密钥。

参数 

secret_key

适用于crypto_sign功能的密钥。

返回值 

适用于crypto_box功能的密钥。


PHP8 sodium_crypto_sign_ed25519_pk_to_curve25519
PHP8 sodium_crypto_sign_keypair_from_secretkey_and_publickey
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定