<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Computes shared secret for public value of remote DH key and local DH key</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-decrypt.html">openssl_decrypt</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-digest.html">openssl_digest</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.openssl-dh-compute-key" class="refentry"> <div class="refnamediv"> <h1 class="refname">openssl_dh_compute_key</h1> <p class="verinfo">(PHP 5 >= 5.3.11)</p><p class="refpurpose"><span class="refname">openssl_dh_compute_key</span> — <span class="dc-title">Computes shared secret for public value of remote DH key and local DH key</span></p> </div> <div class="refsect1 description" id="refsect1-function.openssl-dh-compute-key-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><strong>openssl_dh_compute_key</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$pub_key</code></span> , <span class="methodparam"><span class="type">resource</span> <code class="parameter">$dh_key</code></span> )</div> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is currently not documented; only its argument list is available. </p></div> </div> <div class="refsect1 parameters" id="refsect1-function.openssl-dh-compute-key-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">pub_key</code></em></span> <dd> <p class="para"> Public key </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">dh_key</code></em></span> <dd> <p class="para"> DH key </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.openssl-dh-compute-key-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns computed key on success or <strong><code>FALSE</code></strong> on failure. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-decrypt.html">openssl_decrypt</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-digest.html">openssl_digest</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>