Skip to content

Commit e6105df

Browse files
committed
Add caution about using the same DH params in openssl_dh_compute_key
php/doc-en@296d45d
1 parent ac2b3a9 commit e6105df

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 5bc68add3da3cd18c40f851e944b15095d3a26aa Maintainer: satoruyoshida Status: ready -->
3+
<!-- EN-Revision: 296d45da275cca752dd920738fd119e55fbbde97 Maintainer: satoruyoshida Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="function.openssl-dh-compute-key" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -20,6 +20,12 @@
2020
リモート側と秘密の通信をするための暗号鍵としてよく使われます。
2121
これはディフィー・ヘルマン鍵共有として知られています。
2222
</para>
23+
<caution>
24+
<para>
25+
リモートとローカルのキーペアに同じ DH パラメータを使用することが重要です。
26+
そうしないと、両者の間で生成されたシークレットが一致しなくなります。
27+
</para>
28+
</caution>
2329
<note>
2430
<simpara>
2531
ECDH は、PHP 8.1.0 以降、<emphasis>かつ</emphasis>

0 commit comments

Comments
 (0)