theupdateframework / theupdateframework/rust-tuf
RSA and ECDSA keys should be encoded as a PEM string
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 198
- Forks
- 39
- Avg merge
- 9h 19m
- Merged PRs (30d)
- 2
Description
According to the spec section 4.2, "rsa" and "ecdsa" keys, as defined by:
{ "keytype" : "rsa",
"scheme" : "rsassa-pss-sha256",
"keyval" : {"public" : PUBLIC}
}
{ "keytype" : "ecdsa-sha2-nistp256",
"scheme" : "ecdsa-sha2-nistp256",
"keyval" : {"public" : PUBLIC}
}
The public portion of the key should be encoded as a PEM string, not base64(spki(key)).
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 reading the key serialization code and existing tests for RSA and ECDSA public keys, then compare their output with section 4.2 of the linked TUF specification. Done means both key types encode their public portion as a PEM string rather than base64-encoded SPKI, with tests covering the expected representation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100