array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.sodium-crypto-sign-ed25519-pk-to-curve25519.php', 1 => 'sodium_crypto_sign_ed25519_pk_to_curve25519', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium Functions', ), 'prev' => array ( 0 => 'function.sodium-crypto-sign-detached.php', 1 => 'sodium_crypto_sign_detached', ), 'next' => array ( 0 => 'function.sodium-crypto-sign-ed25519-sk-to-curve25519.php', 1 => 'sodium_crypto_sign_ed25519_sk_to_curve25519', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sodium/functions/sodium-crypto-sign-ed25519-pk-to-curve25519.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign_ed25519_pk_to_curve25519 — Convert an Ed25519 public key to a Curve25519 public key
Given an Ed25519 public key, calculate the birationally equivalent X25519 public key.
public_key
Public key suitable for the crypto_sign functions.
Public key suitable for the crypto_box functions.