RustCrypto / RustCrypto/formats
Tracking issue for generic (e.g. key) types and owned/ref aliases
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 338
- Forks
- 188
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 15
Description
In the latest release of spki it was changed to have generic AlgorithmIdentifier and SubjectPublicKeyInfo, along with *Owned and *Ref type aliases. This allows either zero-copy decoding with a lifetime, or decoding to an owned type with no lifetime (which enables e.g. on-the-fly 1-pass PEM decoding, since you can't borrow bytes from a PEM input).
However, other crates in this repo didn't receive a similar treatment. This is a tracking issue for those.
-
pkcs1-
OtherPrimeInfo -
RsaOaepParams -
RsaPrivateKey -
RsaPssParams -
RsaPublicKey
-
-
pkcs5https://github.com/RustCrypto/formats/pull/1195-
pbes2::kdf::Kdf -
pbes2::EncryptionScheme -
pbes2::Parameters -
EncryptionScheme
-
-
pkcs8https://github.com/RustCrypto/formats/pull/1483-
PrivateKeyInfo -
EncryptedPrivateKeyInfo
-
-
sec1-
EcPrivateKey
-
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the generic AlgorithmIdentifier and SubjectPublicKeyInfo treatment in spki, then review the unchecked types listed under pkcs1 and sec1. Done means the remaining listed types support the corresponding generic and *Owned/*Ref treatment, with the tracking checklist updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100