openwallet-foundation / openwallet-foundation/askar
Support for Diffie-Hellman KEM for HPKE
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 86
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
We are currently working on adding ISO/IEC 18013-7 Annex C to our Digital Credentials API for Expo and afterwards in Credo. For this Annex, we need to add support for HPKE in credo, which requires are KMS backend to support Diffie-Hellman KEM.
We were wondering how much effort it would be to extend askar in order to support This new key encapsulation mechanism, specifically for P256, P384, P521. Since Askar relies on RustCrypto for most of its ECC, using RustCrypto KEM should make this rather straightforward, we think.
@andrewwhitehead Any thoughts on the scope of this ticket? Is this something you think fits within Askar?
Contributor guide
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 reviewing Askar's KMS backend and the HPKE RFC 9180 requirements, then compare the RustCrypto KEM dhkem implementation for P256, P384, and P521. Done means Askar supports Diffie-Hellman KEM for those curves and can meet the Digital Credentials API and Credo use case described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100