`trait ValidatedRsaPrivateComponents` over `struct RsaPrivateKey`
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- cryptography
調査の方向性
Start by reviewing the current RsaPrivateKey representation and the no-alloc work referenced in pull request #636. Determine whether a ValidatedRsaPrivateComponents trait can replace the existing struct while supporting borrowed PKCS#8 data and the proposed variants. Done would require a settled design and explicit scope, which this issue does not currently define.
索引モデルが issue の本文から書いたものです。
説明
The current RsaPrivateKey is just a validated construct essentially.
Are there any reasons on
a) why it can't be just expressed as a trait benefiting no-alloc impl ? e.g. why do we need hold copies ?
b) why that can't be handed over to end-user e.g. hazmat unchecked or validating PKCS#8 wrapper ?
Given no-alloc will require memory efficient representation for it
type PKCS8Rsa impl VerifiedRsaPrivateKey
type [..]: Unsigned // Can be optimised across exp & modulus over largest variant of say just one generic `U`
..
Pros:
- hazmat End-users can provide unchecked / checked construct as-is without specialised API surface
- Generalize impls around that in no-alloc and alloc
- Could provide conditional for Multi Prime (MP-RSA)
- Could provide conditional for precomputed
- Optimised memory pressure given usage-scenario/s
- Direct PKCS#8 (or other containers) borrowed layout into validated type
- Associated types can be optimized for it's intended use in algorithms
Cons:
- Complexity ?
- Harder ?
- .. ?
- 主要言語
- 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時間 初心者へのやさしさ 75/100
TheLarkInn/aipm#2413 ·
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
todo:ticket
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
taikoxyz/taiko-mono#22168 · コメント 1 件 ·