Skip to content

Commit

Permalink
Add caution about using the same DH params in openssl_dh_compute_key (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka authored Sep 28, 2024
1 parent 7fd8e59 commit 296d45d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reference/openssl/functions/openssl-dh-compute-key.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
often used as an encryption key to secretly communicate with a remote party.
This is known as the Diffie-Hellman key exchange.
</para>
<caution>
<para>
It is important to use the same DH parameters for remote and local key pairs; otherwise, the
generated secret between the two parties will not match.
</para>
</caution>
<note>
<simpara>
ECDH is only supported as of PHP 8.1.0 <emphasis>and</emphasis> OpenSSL 3.0.0.
Expand Down

0 comments on commit 296d45d

Please sign in to comment.