Skip to content

Commit 296d45d

Browse files
authored
Add caution about using the same DH params in openssl_dh_compute_key (#3788)
1 parent 7fd8e59 commit 296d45d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/openssl/functions/openssl-dh-compute-key.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
often used as an encryption key to secretly communicate with a remote party.
1919
This is known as the Diffie-Hellman key exchange.
2020
</para>
21+
<caution>
22+
<para>
23+
It is important to use the same DH parameters for remote and local key pairs; otherwise, the
24+
generated secret between the two parties will not match.
25+
</para>
26+
</caution>
2127
<note>
2228
<simpara>
2329
ECDH is only supported as of PHP 8.1.0 <emphasis>and</emphasis> OpenSSL 3.0.0.

0 commit comments

Comments
 (0)