sodium_crypto_sign_ed25519_sk_to_curve25519

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_ed25519_sk_to_curve25519Ed25519 秘密鍵を、Curve25519 秘密鍵に変換する

説明

sodium_crypto_sign_ed25519_sk_to_curve25519(string $secret_key): string

指定された Ed25519 形式の秘密鍵から、 双有理同値な X25519 形式の秘密鍵を計算します。

パラメータ

secret_key

crypto_sign 関数に適合する秘密鍵

戻り値

crypto_box 関数に適合する秘密鍵を返します。

関連キーワード:  変換, crypto, sodium, 関数, 適合, 形式, key, secret, string, Sodium