`RSAPrivateKey::from_components` builder state pattern over Vararg

Open
#560 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
cryptography

Research direction

Start by inspecting the existing RSAPrivateKey::from_components API and its callers. The issue does not name files, tests, or acceptance criteria; clarify the builder-state design and what compatibility and validation behavior should count as done.

Written by the indexing model from the issue text.

Description

Would be feasible to add builder-state pattern over vararg for the from_components

It's kinda pain to remember n/e/d/primes placement and the type/lengths somewhat limit the footgun but regardless

Would be nicer to have

RSAPrivateKey::from_components()
 .n(..)
 .e(..)
 .d(..)
 .primes(..)
Dominant language
Rust
Stars
673
Forks
190
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustCrypto/RSA

All issues in RustCrypto/RSA

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.