From 984d03fc2d5f1fb9b7644c18efc293c9de027e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sun, 27 Sep 2026 12:31:19 +0900 Subject: [PATCH] =?UTF-8?q?openssl=20=E3=82=92=E5=8E=9F=E6=96=87=E3=81=AE?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=81=AB=E8=BF=BD=E5=BE=93=20(4=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit openssl の 4 ファイルを原文の変更に追従しました。これで openssl モジュールの未訳・要更新はなくなります。 原文では php/doc-en@8396376(php/doc-en#5878)で次の変更がありました。 - `openssl_sign()` と `openssl_verify()` の `algorithm` に、ダイジェストアルゴリズムを受け付けない署名アルゴリズムでは `0` を指定すること(OpenSSL 3.0 以降)が追記されました - `openssl_csr_new()` の `digest_alg` オプションに、同じ場合に特別な値 `"null"` を使うことが追記されました - 定数ページの節見出しが "Signature Algorithms" から "Digest Algorithms" に変わりました(`openssl_sign()`・`openssl_verify()` からのリンクの文言も同じ) ## 対象ファイル reference/openssl/ (4) — constants.xml, functions/openssl-csr-new.xml, functions/openssl-sign.xml, functions/openssl-verify.xml --- reference/openssl/constants.xml | 4 ++-- reference/openssl/functions/openssl-csr-new.xml | 4 +++- reference/openssl/functions/openssl-sign.xml | 10 ++++++---- reference/openssl/functions/openssl-verify.xml | 10 ++++++---- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/reference/openssl/constants.xml b/reference/openssl/constants.xml index 0bd6691dd1..bd600da0c7 100644 --- a/reference/openssl/constants.xml +++ b/reference/openssl/constants.xml @@ -1,6 +1,6 @@ - + &reftitle.constants; @@ -595,7 +595,7 @@
- 署名アルゴリズム + ダイジェストアルゴリズム diff --git a/reference/openssl/functions/openssl-csr-new.xml b/reference/openssl/functions/openssl-csr-new.xml index 51c070de9d..14aa72b5e3 100644 --- a/reference/openssl/functions/openssl-csr-new.xml +++ b/reference/openssl/functions/openssl-csr-new.xml @@ -1,6 +1,6 @@ - + @@ -82,6 +82,8 @@ ダイジェストメソッド、または署名のハッシュ。 通常は openssl_get_md_methods 関数のリストのうちのひとつです。 + ダイジェストアルゴリズムをパラメータとして受け付けない署名アルゴリズムには、 + 特別な値 "null" を指定します。 diff --git a/reference/openssl/functions/openssl-sign.xml b/reference/openssl/functions/openssl-sign.xml index 3bdce98377..8b3e365450 100644 --- a/reference/openssl/functions/openssl-sign.xml +++ b/reference/openssl/functions/openssl-sign.xml @@ -1,6 +1,6 @@ - + @@ -60,9 +60,11 @@ algorithm - - int - いずれかの 署名アルゴリズム。 - + + int - いずれかの ダイジェストアルゴリズム。 + ダイジェストアルゴリズムをパラメータとして受け付けない署名アルゴリズムでは 0 を指定します。 + 0 が使えるのは、PHP をコンパイルする際に OpenSSL 3.0 以降を使ったときだけです。 + string - openssl_get_md_methods が返す文字列 ("sha256WithRSAEncryption" や "sha384" など)。 diff --git a/reference/openssl/functions/openssl-verify.xml b/reference/openssl/functions/openssl-verify.xml index edea7b9e11..b21eaddb54 100644 --- a/reference/openssl/functions/openssl-verify.xml +++ b/reference/openssl/functions/openssl-verify.xml @@ -1,6 +1,6 @@ - + @@ -63,9 +63,11 @@ MIIBCgK... など)。 algorithm - - int - いずれかの 署名アルゴリズム。 - + + int - いずれかの ダイジェストアルゴリズム。 + ダイジェストアルゴリズムをパラメータとして受け付けない署名アルゴリズムでは 0 を指定します。 + 0 が使えるのは、PHP をコンパイルする際に OpenSSL 3.0 以降を使ったときだけです。 + string - openssl_get_md_methods が返す文字列 ("sha1WithRSAEncryption" や "sha512" など)。