Add support for parsing RSA keys out of pkcs8 files with RSA-PSS key

Open
#177 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the EncodePublicKey and DecodePublicKey implementations and trace how plain RSA keys are represented in DER. Identify the required RSASSA-PSS and RSAEP-OAEP key forms, then evaluate the proposed PublicKey/PaddingScheme result while considering the noted Signed/Verifier and digest dependencies. Done means encoding and decoding these keys is supported without relying on unspecified dependencies.

Written by the indexing model from the issue text.

Description

enhancement

EncodePublicKey/DecodePublicKey implementations are limited to plain RSA keys only. Add support for encoding and decoding RSASSA-PSS (and RSAEP-OAEP) keys to/from DER data. Additional notice: ideally the code should be able to use newly Signed/Verifier keys, however this would bring additional complexities and addtional dependencies on digests. So, the first naïve attempt would be to return PublicKey/PaddingScheme pair when decoding the DER.

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.