cms: `OtherRevocationInfoFormat.other_format` should be an OBJECT IDENTIFIER
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- cryptography
調査の方向性
まず、cms crate 内の OtherRevocationInfoFormat の定義とデコードテストを読みます。issue には変更する公開フィールドが示されており、RevocationInfoChoice::Other の DER 再現例が含まれています。再現例が報告された予期しないタグで失敗することを確認し、その後フィールドの型を ObjectIdentifier に変更して、例が正常にデコードされることを確認します。
索引モデルが issue の本文から書いたものです。
説明
OtherRevocationInfoFormat declares other_format: AlgorithmIdentifierOwned, but
RFC 5652 §10.2.1 defines it as
OtherRevocationInfoFormat ::= SEQUENCE {
otherRevInfoFormat OTHER-REVOK-INFO.&id({SupportedOtherRevokInfo}),
otherRevInfo OTHER-REVOK-INFO.&Type({SupportedOtherRevokInfo}{@otherRevInfoFormat}) }
i.e. an OBJECT IDENTIFIER followed by the value, as RFC 5940 §3 uses it for
id-ri-ocsp-response and id-ri-scvp. So a RevocationInfoChoice::Other holding an
OCSP response does not decode:
use cms::revocation::RevocationInfoChoice;
use der::Decode;
// [1] { id-ri-ocsp-response, OCSPResponse { responseStatus tryLater } }
let der = hex_literal::hex!("a10f" "06082b06010505071002" "3003" "0a0103");
RevocationInfoChoice::from_der(&der).unwrap();
// Err: TagUnexpected { expected: SEQUENCE, actual: OBJECT IDENTIFIER }
Versions: cms 0.3.0-rc.2 and master 715d277d. Since this changes a public field's
type, it would be good to fix before 0.3.0 (#2430). The fix is to make other_format an ObjectIdentifier.
Found and analyzed with AI assistance; the reproducers and results above were run on the versions stated.
- 主要言語
- Rust
- スター
- 347
- フォーク
- 200
- 平均マージ
- 15時間 53分
- マージ済み PR(30日)
- 34
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/formats のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
RustCrypto/formats#2544 ·
メンテナーはふだん 1 日以内に返信
-
cms: CHOICE types in `SET OF` are ordered as `SEQUENCE OF INTEGER`, not by their bytes対応中かも @brother-z が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
RustCrypto/formats#2538 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
pem-rfc7468: a lone CR before -----BEGIN is refused as Error::Preamble, so a CR-terminated multi-certificate PEM fails load_pem_chain (RFC 7468 eol = CRLF / CR / LF)対応中かも @choksi2212 が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
RustCrypto/formats#2486 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
IssuingDistributionPoint has the wrong AssociatedOid (id-pe-subjectInfoAccess)対応中かも @eyusd が 103 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
RustCrypto/formats#2389 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RustCrypto/formats#2366 ·
メンテナーはふだん 1 日以内に返信
RustCrypto/formats の issue をすべて見る
似ている issue
-
priority middle
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
KATO-Hiro/AtCoderClans#13029 ·
メンテナーはふだん 1 日以内に返信
-
bug ui
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
userFRM/egui-charts#3363 ·
メンテナーはふだん 1 日以内に返信
-
ada documentation mobile report
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
physicsdolphin/nv-uefi-unlocker#254 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kindraywind/rustnarok-client#1382 ·
メンテナーはふだん 1 日以内に返信
-
area:accessibility bug good first issue help wanted priority:p3-low size:small
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NecturaLabs/Canopy#209 ·