« sodium_crypto_kx_publickey
sodium_crypto_kx_seed_keypair »

sodium_crypto_kx_secretkey

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_kx_secretkey — crypto_kx 鍵ペアから、秘密鍵を取り出す

説明

function sodium_crypto_kx_secretkey(#[\SensitiveParameter] string $key_pair): string

crypto_kx 鍵ペアから、秘密鍵を取り出します。

パラメータ

key_pair

X25519 形式の鍵ペア。 たとえば、 sodium_crypto_kx_keypair() から生成されたものです。

戻り値

X25519 形式の秘密鍵を返します。

関連キーワード:
crypto   sodium   ペア   秘密   secretkey   keypair   pair   publickey   seed   Sodium   SensitiveParameter
関連する関数・ページ:
function.sodium-crypto-box-secretkey   function.sodium-crypto-sign-secretkey   function.sodium-crypto-kx-publickey   function.sodium-crypto-box-publickey   function.sodium-crypto-kx-keypair   function.sodium-crypto-box-keypair-from-secretkey-and-publickey