`RsaPrivateKey::validate()` does not ensure `precompute()` won't fail
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- cryptography
調査の方向性
Start with RsaPrivateKey::validate(), RsaPrivateKey::from_components(), and the precompute() call described in the issue. Check whether valid keys can fail during precomputation and whether the error is currently discarded. Done means validation and construction handle precompute failures consistently, with relevant tests covering the failure path.
索引モデルが issue の本文から書いたものです。
説明
In RsaPrivateKey::from_components(), precompute() errors are ignored because it is claimed that the previous call to validate() guarantees it succeeds.
First of all, this is not the case - there can be bugs in precompute itself. I bumped into it while working on #506. In
let q_mod_p = BoxedMontyForm::new(q_mod_p, p_params.clone());
where I accidentally typed q_params instead of p_params, so the subsequent inversion failed.
Second, what are we even achieving by ignoring the errors there? Are there valid keys for which the values cannot be precomputed? from_components() already returns a Result, we might as well just forward the precompute() error to it.
- 主要言語
- Rust
- スター
- 673
- フォーク
- 190
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/RSA のほかの issue
-
Bump MSRV to 1.89 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RustCrypto/RSA#707 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 半日 初心者へのやさしさ 74/100
RustCrypto/RSA#703 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
RustCrypto/RSA#686 · コメント 4 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
RustCrypto/RSA#647 · コメント 9 件 · リアクション 1 件 ·
-
broken rust docs オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
RustCrypto/RSA#641 · リアクション 3 件 ·
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
bug core
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW オープンfuzz
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ClickHouse/ClickHouse#122114 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
linebender/vello_svg#90 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100