Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`trait ValidatedRsaPrivateComponents` over `struct RsaPrivateKey`

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

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

評価

難易度
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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

RustCrypto/RSA のほかの issue

RustCrypto/RSA の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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