Tighten up CertificateSigningRequestParams.from_der() sig AlgorithmIdentifier params validation

オープン
#461 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
cryptography

調査の方向性

Start in CertificateSigningRequestParams::from_der() under the x509-parser feature, where SignatureAlgorithm::supports_oid is called on the signature algorithm OID. Read the x509-parser AlgorithmIdentifier parameters handling and the linked PR #459 discussion before deciding how NULL parameters should be enforced. Done means the parameters are checked for algorithms that require NULL and RSA-PSS parameters are handled explicitly, with tests covering both cases.

索引モデルが issue の本文から書いたものです。

説明

next-major-release

When building a CertificateSigningRequestParams from CertificateSigningRequestDer with the x509-parser feature enabled we check SignatureAlgorithm::supports_oid(&sig_alg_oid) but this only compares by OID and doesn't consider the x509-parser AlgorithmIdentifier type's parameters. For many algorithms the parameters MUST be NULL and we should enforce that. For RSA-PSS support in particular we'll need to consider the explicit parameters beyond enforcing encoding.

See https://github.com/rustls/rcgen/pull/459#discussion_r4574500586

主要言語
Rust
スター
516
フォーク
160
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rustls/rcgen のほかの issue

rustls/rcgen の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。