openwallet-foundation / openwallet-foundation/askar

Support for Diffie-Hellman KEM for HPKE

Open
#463 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.